Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
QuestionWindowsApp and Website Share One Database Pin
ali_heidari_19-Aug-13 23:15
ali_heidari_19-Aug-13 23:15 
AnswerRe: WindowsApp and Website Share One Database Pin
Eddy Vluggen20-Aug-13 0:50
professionalEddy Vluggen20-Aug-13 0:50 
GeneralRe: WindowsApp and Website Share One Database Pin
ali_heidari_21-Aug-13 23:17
ali_heidari_21-Aug-13 23:17 
AnswerRe: WindowsApp and Website Share One Database Pin
SaqibRasheed20-Aug-13 12:37
SaqibRasheed20-Aug-13 12:37 
QuestionRDLC Report Designer Pin
cdpsource19-Aug-13 22:10
cdpsource19-Aug-13 22:10 
QuestionBest way to declaring multiple objects Pin
rfresh19-Aug-13 18:06
rfresh19-Aug-13 18:06 
AnswerRe: Best way to declaring multiple objects Pin
Abhinav S19-Aug-13 19:01
Abhinav S19-Aug-13 19:01 
AnswerRe: Best way to declaring multiple objects Pin
OriginalGriff19-Aug-13 20:55
mveOriginalGriff19-Aug-13 20:55 
As Abhinav suggests, a collection is the easiest way to go: declare it as class level as a private List and you can do what you want with it:
C#
private List<Car> myCars = new List<Car>();
...
Car car = new Car();
car.Color = blue;
car.Fuel = Fuels.Diesel;
myCars.Add(car);
...
myCars.Remove(car);
...
foreach (Car car in myCars)
   {
   car.Respray(Color.Red);
   }

This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

GeneralRe: Best way to declaring multiple objects Pin
rfresh20-Aug-13 8:14
rfresh20-Aug-13 8:14 
GeneralRe: Best way to declaring multiple objects Pin
OriginalGriff20-Aug-13 8:41
mveOriginalGriff20-Aug-13 8:41 
QuestionC# Iframe WebBrowser Automation Pin
Abhinav Chitre19-Aug-13 9:41
Abhinav Chitre19-Aug-13 9:41 
AnswerRe: C# Iframe WebBrowser Automation Pin
Richard MacCutchan19-Aug-13 20:51
mveRichard MacCutchan19-Aug-13 20:51 
QuestionC Code Inside Visual Studio 2010? Pin
Member 944713619-Aug-13 5:14
Member 944713619-Aug-13 5:14 
AnswerRe: C Code Inside Visual Studio 2010? Pin
DaveyM6919-Aug-13 5:28
professionalDaveyM6919-Aug-13 5:28 
QuestionWinforms, Console, IPC and stuff Pin
Member 965483119-Aug-13 0:10
Member 965483119-Aug-13 0:10 
SuggestionRe: Winforms, Console, IPC and stuff PinPopular
Richard MacCutchan19-Aug-13 2:07
mveRichard MacCutchan19-Aug-13 2:07 
QuestionHow to make random Reflection for a ball with c # code? Pin
Member 1020541618-Aug-13 20:11
Member 1020541618-Aug-13 20:11 
AnswerRe: How to make random Reflection for a ball with c # code? Pin
Pete O'Hanlon18-Aug-13 20:40
mvePete O'Hanlon18-Aug-13 20:40 
AnswerRe: How to make random Reflection for a ball with c # code? Pin
Mycroft Holmes18-Aug-13 21:21
professionalMycroft Holmes18-Aug-13 21:21 
QuestionListbox suggestion from textbox Pin
dudz artiaga18-Aug-13 5:33
dudz artiaga18-Aug-13 5:33 
AnswerRe: Listbox suggestion from textbox Pin
Abhinav S18-Aug-13 6:18
Abhinav S18-Aug-13 6:18 
GeneralRe: Listbox suggestion from textbox Pin
dudz artiaga18-Aug-13 15:19
dudz artiaga18-Aug-13 15:19 
AnswerRe: Listbox suggestion from textbox Pin
SaqibRasheed18-Aug-13 11:18
SaqibRasheed18-Aug-13 11:18 
GeneralRe: Listbox suggestion from textbox Pin
dudz artiaga18-Aug-13 15:25
dudz artiaga18-Aug-13 15:25 
GeneralRe: Listbox suggestion from textbox Pin
SaqibRasheed19-Aug-13 2:45
SaqibRasheed19-Aug-13 2:45 

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.