Click here to Skip to main content
15,914,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: Display Tooltips in StatusBar Pin
bwinfrey20-Mar-05 9:14
bwinfrey20-Mar-05 9:14 
GeneralRe: Display Tooltips in StatusBar Pin
Luis Alonso Ramos20-Mar-05 18:31
Luis Alonso Ramos20-Mar-05 18:31 
GeneralArgumentNullException error ,remoting Pin
Adnan Siddiqi19-Mar-05 11:52
Adnan Siddiqi19-Mar-05 11:52 
GeneralRe: ArgumentNullException error ,remoting Pin
mav.northwind20-Mar-05 0:24
mav.northwind20-Mar-05 0:24 
Generalcombobox datasource... Pin
Tugbay Sahin19-Mar-05 10:23
Tugbay Sahin19-Mar-05 10:23 
GeneralRe: combobox datasource... Pin
Luis Alonso Ramos19-Mar-05 10:58
Luis Alonso Ramos19-Mar-05 10:58 
QuestionAccessing controls by reference ? Pin
fracalifa19-Mar-05 9:55
fracalifa19-Mar-05 9:55 
AnswerRe: Accessing controls by reference ? Pin
Rei Miyasaka21-Mar-05 0:50
Rei Miyasaka21-Mar-05 0:50 
You really only want to use ref for ValueTypes -- int, double, float, byte, enum etc., as well as structs, and you only want to use it on rare occasions. C# makes the distinction between passing by reference and passing by value by distinguishing classes and structs/ValueTypes. Classes automatically get passed to functions by reference.

As for making structs and classes, it's really awkward at first especially if you've just come from C++, but the basic guideline is to use a struct if the object represents some sort of value -- colors, pixels, time etc., and use classes for objects that operate on values within itself. It's also good to try to keep structs under 16 bytes, according to Microsoft.

Hope this helps.
GeneralRe: Accessing controls by reference ? Pin
fracalifa25-Apr-05 0:33
fracalifa25-Apr-05 0:33 
GeneralRe: Accessing controls by reference ? Pin
Rei Miyasaka25-Apr-05 0:57
Rei Miyasaka25-Apr-05 0:57 
GeneralEncrypting Pin
Clickok19-Mar-05 8:46
Clickok19-Mar-05 8:46 
GeneralRe: Encrypting Pin
mav.northwind20-Mar-05 0:17
mav.northwind20-Mar-05 0:17 
GeneralCalling ZeroMemory Pin
PaleyX19-Mar-05 8:30
PaleyX19-Mar-05 8:30 
GeneralRe: Calling ZeroMemory Pin
Mike Dimmick19-Mar-05 22:56
Mike Dimmick19-Mar-05 22:56 
GeneralRe: Calling ZeroMemory Pin
PaleyX19-Mar-05 23:52
PaleyX19-Mar-05 23:52 
GeneralRe: Calling ZeroMemory [EDITED] Pin
Dave Kreskowiak20-Mar-05 5:56
mveDave Kreskowiak20-Mar-05 5:56 
GeneralRe: Calling ZeroMemory [EDITED] Pin
PaleyX20-Mar-05 6:09
PaleyX20-Mar-05 6:09 
GeneralRe: Calling ZeroMemory [EDITED] Pin
leppie20-Mar-05 7:12
leppie20-Mar-05 7:12 
GeneralRe: Calling ZeroMemory [EDITED] Pin
PaleyX20-Mar-05 13:56
PaleyX20-Mar-05 13:56 
GeneralRe: Calling ZeroMemory [EDITED] Pin
Dave Kreskowiak20-Mar-05 14:07
mveDave Kreskowiak20-Mar-05 14:07 
GeneralRe: Calling ZeroMemory [EDITED] Pin
PaleyX20-Mar-05 14:11
PaleyX20-Mar-05 14:11 
GeneralQuickly loading jpg thumbs Pin
Travelster19-Mar-05 6:28
Travelster19-Mar-05 6:28 
GeneralRe: Quickly loading jpg thumbs Pin
Dave Kreskowiak19-Mar-05 14:00
mveDave Kreskowiak19-Mar-05 14:00 
GeneralAutomatic create SelectCommand, InsertCommand, DeleteCommand and Paremeters like Server Explorer in vs.net Pin
god4k19-Mar-05 2:00
god4k19-Mar-05 2:00 
GeneralRe: Automatic create SelectCommand, InsertCommand, DeleteCommand and Paremeters like Server Explorer in vs.net Pin
sreejith ss nair19-Mar-05 19:33
sreejith ss nair19-Mar-05 19:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.