|
More site info...
C-Sharp Programming | Forum profile
|
|
Forum profile page for C-Sharp Programming on http://www.codeguru.com.
This report page is the aggregated overview from a single forum: C-Sharp Programming, located on the Message Board at http://www.codeguru.com.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "C-Sharp Programming" on the Message Board at http://www.codeguru.com is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on C-Sharp Programming:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
108
|
344
|
1,113
|
|
Post:
|
241
|
791
|
2,864
|
|
|
C-Sharp Programming Posting activity graph:
|
Top authors during last week:
user's latest post:
Struct within a class... on stack?
Published (2009-11-19 13:19:00)
Quote: Originally Posted by Grofit Good idea but im not sure if doing pool lookups and resizing the pool would just work out as inefficient in another area due to me looping lots of times, so each loop would require multiple pool lookups. Its definatly worth looking into though... I just thought that structs were pretty much designed for this sort of scenario, creating and destroying many small (12-16 bytes) objects frequently... First,...
user's latest post:
Parsing a Flat File
Published (2009-11-18 16:26:00)
Here is a sample of one row that is in the database so far: 17768 01 1770 003 2009-11-01 00:00:00 5065.14 NULL NULL Each spaced section is taken from a part of the .dat file, but being manually keyed in for now. My job is to automate the reading of the file, and writing it to the SQL database.
user's latest post:
C# system information
Published (2009-11-20 02:07:00)
Describe what's not working? Are you seeing only the last property value? That is because you're overwriting the text in the two textboxes. Code: textBox1.Text = ("Name: " + cdrom.GetPropertyValue("Name").ToString()); textBox2.Text = ("Name: " + model.GetPropertyValue("Model").ToString()); Maybe you mean: Code: textBox1.Text += ("Name: " +...
user's latest post:
Picturebox keeping Image file open?
Published (2009-11-22 17:11:00)
Using a stream maybe neater. I am in the 'get it working' phase at the moment, I'll try that on my first refactor... Thanks to both for the ideas.
user's latest post:
ImageList
Published (2009-11-24 08:01:00)
Quote: Originally Posted by Rachel888s IDoes Image Img = MyImageList.Images[ID] construct a new Image No, it just return the reference to it.
user's latest post:
Nearest Neighbour Quadtree Check?
Published (2009-11-23 04:05:00)
Hey, Ive currently got a simple quadtree implementation and i need to find the nearest neighbour to a given point within the tree... I could simple just search a given radius around the area and just find which returned entities are closest, although im not sure if there is some simpler or faster implementation i should look at. Also in this case if i was to just check a given radius like 100 units from the given position it may not find...
user's latest post:
Minimize all open windows
Published (2009-11-24 01:58:00)
Easiest way yet, without using APIs, is to make use of the Shell32 class directly Set a reference to Microsoft Shell Controls And Automation , to do this follow these steps : Click Project Click Add Reference Click the COM tab Scroll down and select Microsoft Shell Controls And Automation Click OK Add a Button and give it the Text : Show Desktop Switch to code View, add the following using statement : Code: using Shell32; Just above your...
user's latest post:
Huge problem with sql!
Published (2009-11-22 15:12:00)
thanks, i managed to do it i'll search about password encryption
user's latest post:
WinForms and Controls
Published (2009-11-24 05:14:00)
Quote: Originally Posted by bhushan1980 That is the problem...We do not have a Read only property for check box...At least I did not find one... You are correct, a checkbox does not have a ReadOnly property. Quote: Originally Posted by boudino You also can handle the CheckedChanged event and revert the state to negation of actual That would be a good option to solve. But if you use it, make sure to unattache the change event before changing...
|
|
|
|
Latest active threads on C-Sharp Programming::
Started 2 days, 18 hours ago (2009-11-24 09:49:00)
by devilonline
thanks it worked.
now how can i save the button colors.
i mean. i press the button and then it turn to red. then i want to save that color , when i close and open the program that button is red.
thanks
Started 3 days, 4 hours ago (2009-11-23 23:59:00)
by vcdebugger
Instead of actual Image Data ( Access 2007 ) try to store the location of the access file in the database table field and try manipulating with it outside using OLE concept.
Started 2 days, 20 hours ago (2009-11-24 08:01:00)
by boudino
Quote:
Originally Posted by Rachel888s
IDoes Image Img = MyImageList.Images[ID] construct a new Image
No, it just return the reference to it.
Started 3 days, 22 hours ago (2009-11-23 06:04:00)
by MNovy
This is easy.
Use the string split method to put whole sentence into single words in an array,
then just go through the array in 2-steps and pick up your words and use them as you like.
Started 3 days, 1 hour ago (2009-11-24 02:52:00)
by boudino
Make them read-only is the best way, I would say. You also can handle the CheckedChanged event and revert the state to negation of actual, or derive your own descandant from check box.
Started 3 days ago (2009-11-24 04:30:00)
by boudino
Validating email address is best with regex .
Started 3 days ago (2009-11-24 04:28:00)
by boudino
Make sure that, you close the stream after you load all data from it. Also don't forget, that working directory of IDE is different from working directory from debugged app, so file which you are able access from application may not be accessible from IDE. Maybe IDE is trying to instantinate the object to inspect, if so, it calls the constructor which try to load the file for which it looks in ...
Started 3 days, 5 hours ago (2009-11-23 22:44:00)
by BobS0327
Have you considered using a Image Map Control ?
|
|
Hot threads for last week on C-Sharp Programming::
Started 1 week ago (2009-11-19 11:31:00)
by Arjay
How about using using like this?
Code:
IPHostEntry hostadd = Dns.GetHostEntry(server);
IPEndPoint EPhost = new IPEndPoint(hostadd.AddressList[0], 123);
using ( Socket socket = new Socket( EPhost.Address.AddressFamily, SocketType.Dgram, ProtocolType. Udp ) )
{
// etc.
}
Started 1 week ago (2009-11-19 11:21:00)
by Arjay
Check out LockWindowUpdate. See http://social. msdn.microsoft.com/For...-b72064ce5a eb/
Call LockWindowUpdate, add your listview entries and then call UnlockWindowUpdate.
Started 1 week, 1 day ago (2009-11-18 12:47:00)
by BigEd781
I don't believe that the spec guarantees anything about equivalence between anonymous methods, so if you need to unsubscribe you should just use the standard approach (example 1) or use a variable to hold the delegate:
Code:
var myDelegate = delegate(){Console.WriteLine("Called some event");};
Started 3 days, 16 hours ago (2009-11-23 11:49:00)
by HanneSThEGreaT
Include this ontop of your class :
Code:
using System.Runtime.InteropServices; //For APIs
Add the following 2 APIs, with their Constants :
Code:
[DllImport(" user32.dll", EntryPoint = "FindWindow", SetLastError = true)]
static extern IntPtr FindWindow(string lpClassName, string lpWindowName); //Find A Window
[DllImport("user32.dll", EntryPoint = "...
Started 4 weeks, 1 day ago (2009-10-28 08:34:00)
by Grofit
Hey,
Just want to confirm something... if i have a struct, lets say a point within a class. Would that point live within the stack, even though the class is a reference type...
Im pretty sure that it would live in the stack whereas everything else would point to the heap... im basically looking at turning a class that gets created and deleted ALOT into a struct, to improve performance, ...
Started 3 days, 1 hour ago (2009-11-24 02:52:00)
by boudino
Make them read-only is the best way, I would say. You also can handle the CheckedChanged event and revert the state to negation of actual, or derive your own descandant from check box.
Started 6 days, 23 hours ago (2009-11-20 05:35:00)
by dannystommen
If it is a network, it should start with double backslash: \\10.0.0.1\my_share
in C# it means that there will be four backslashes
try
Code:
dirlistbox.path= "\\\\ip\\sharename";
Started 1 week, 1 day ago (2009-11-18 17:10:00)
by BigEd781
Create your own control, override OnPaint( ), draw the control yourself using the supplied Graphics object (e.Graphics).
Started 2 weeks, 1 day ago (2009-11-12 00:43:00)
by Saeed's Avatar
WebBrowser is an Active X control that can display an HTML document within a form.
Code:
webBrowser1.Navigate(HTMLfile);
and to print it
Code:
webBrowser1.Print();
Due to various reasons , Active X controls can not be allowed in this project and I am trying to find a replacement without losing too much quality that would get the Job done.
One way is to call ...
Started 1 week, 1 day ago (2009-11-18 05:50:00)
by boudino
You can use #if compiler pragma in AssemblyInfo.cs too.
Something like
Code:
#if DEBUG
[assembly: AssemblyTitle("Debug build of application")]
#else
[assembly: AssemblyTitle("Application")]
#endif
should be possible. But keep in mind, that it has not to be compatible with some tasks for msbuild.
|
|