Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
QuestionInternal buffer(I/O) size of serialport Pin
Shivarudrayya H27-Nov-08 18:00
Shivarudrayya H27-Nov-08 18:00 
AnswerRe: Internal buffer(I/O) size of serialport Pin
Mbah Dhaim27-Nov-08 19:43
Mbah Dhaim27-Nov-08 19:43 
Questioncreating ssis package on the fly using C# Pin
l.laxmikant27-Nov-08 17:43
l.laxmikant27-Nov-08 17:43 
Question[HELP] Attempted to access an element as a type incompatible with the array Pin
dnlmarshall27-Nov-08 15:38
dnlmarshall27-Nov-08 15:38 
AnswerRe: [HELP] Attempted to access an element as a type incompatible with the array Pin
Christian Graus27-Nov-08 15:40
protectorChristian Graus27-Nov-08 15:40 
GeneralRe: [HELP] Attempted to access an element as a type incompatible with the array Pin
dnlmarshall27-Nov-08 15:46
dnlmarshall27-Nov-08 15:46 
GeneralRe: [HELP] Attempted to access an element as a type incompatible with the array Pin
Christian Graus27-Nov-08 15:55
protectorChristian Graus27-Nov-08 15:55 
GeneralRe: [HELP] Attempted to access an element as a type incompatible with the array Pin
dnlmarshall27-Nov-08 16:04
dnlmarshall27-Nov-08 16:04 
QuestionCAS problem Pin
_anil_27-Nov-08 14:18
_anil_27-Nov-08 14:18 
AnswerRe: CAS problem Pin
V.27-Nov-08 20:25
professionalV.27-Nov-08 20:25 
Questionhow to record sound from a mic Pin
BahaaHany27-Nov-08 11:39
BahaaHany27-Nov-08 11:39 
AnswerRe: how to record sound from a mic Pin
Shyam Bharath27-Nov-08 18:34
Shyam Bharath27-Nov-08 18:34 
GeneralRe: how to record sound from a mic Pin
BahaaHany27-Nov-08 20:57
BahaaHany27-Nov-08 20:57 
GeneralRe: how to record sound from a mic Pin
Shyam Bharath27-Nov-08 22:56
Shyam Bharath27-Nov-08 22:56 
AnswerRe: how to record sound from a mic Pin
Pedram Behroozi27-Nov-08 21:09
Pedram Behroozi27-Nov-08 21:09 
QuestionGeneral programming ideea, just so I go the right way Pin
sodevrom27-Nov-08 11:15
sodevrom27-Nov-08 11:15 
Hello, I am just starting out with C# and I need an ideea on how to go ahead with my software. This is not a direct programming question but more like a programming approach.

I am making an application in c# and .net (vs 20008) and my software contains a tab control.
I add tabs in the tab control from 5 buttons (each button adds a different tab). The tabs will contain different forms in it.

Now I store every tab in a list, just so I can delete them with ease.

Now for my dilema. Each of the 5 buttons creates a different object, a different form (a window that contains forms) in the tab.

It's easy to store the tabs in a list becouse they all have the same type. Give me an ideea on how I can store different objects in the tab control (so every tab of the tab control will have a single object).

I need to know what object I have in a tab, so that when I delete the tab, I also delete the object.

I don't know if I explain correctly, but I here is an image below, just so you have a better picture of what I want :
www.sodevrom.net/object1.jpg

So here is what I have got so far :
*************a list that contains the tabs :
public List<control> lTabs=new List<control>();

*************I add the tabs like this : (the text deppends on what button I click on)
lTabs.Add(new TabPage());
lTabs[lTabs.Count - 1].Text = "Button 1";
cTab.Controls.Add(lTabs[lTabs.Count - 1]);

*************I delete the tabs like this :
lTabs[0].Dispose();

So how can I asign some objects so I can do something like this :

lObjs[lObjs.Count - 1]=new Object1 ( or object 2 or object 3 deppending on the button I press)

and

lObjs.destroy();

Thank you in advance
AnswerRe: General programming ideea, just so I go the right way Pin
User 665827-Nov-08 11:39
User 665827-Nov-08 11:39 
GeneralRe: General programming ideea, just so I go the right way Pin
sodevrom27-Nov-08 11:45
sodevrom27-Nov-08 11:45 
GeneralRe: General programming ideea, just so I go the right way Pin
User 665827-Nov-08 14:01
User 665827-Nov-08 14:01 
QuestionC# WinForms DataBinding? Pin
wbjohnson27-Nov-08 10:25
wbjohnson27-Nov-08 10:25 
AnswerRe: C# WinForms DataBinding? Pin
nelsonpaixao30-Nov-08 4:44
nelsonpaixao30-Nov-08 4:44 
GeneralRe: C# WinForms DataBinding? Pin
wbjohnson30-Nov-08 5:33
wbjohnson30-Nov-08 5:33 
QuestionTransparency, or alternative, in non-client area. Pin
Chris Copeland27-Nov-08 10:05
mveChris Copeland27-Nov-08 10:05 
AnswerRe: Transparency, or alternative, in non-client area. Pin
leppie27-Nov-08 22:02
leppie27-Nov-08 22:02 
QuestionI do not undertand arraylist or list Pin
netJP12L27-Nov-08 8:24
netJP12L27-Nov-08 8:24 

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.