|
Can you declare an array of mixed Types?
I need have an array that contains: int key, form Control, form Monitor
Form [50,3] Truck
Is it possible?
Thankx
|
|
|
|
|
|
Either create an object array as Harold sugested, or create a class that holds the various types you need in it's properties and create an array of your class - this will save a lot of boxing/unboxing.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Not yet; C# 4.0 brings in Tuples, but I don't know how these would interact with arrays and it hasn't be released yet
|
|
|
|
|
hi .... everybody
who can give me example of Database + listbox with image or icon
the icon and image within listbox can be checked by people and give the result of database query
garnett
|
|
|
|
|
Make your mind up!
Are you doing this in Visual Basic or C#.
You should not post questions on more than one forum!
Naughty, naughty CPian.
Make up your mind and then delete the message that is in the wrong forum.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I can use VB.Net or C# .... just what I want
I now estimate the method
please don't post the reply answer of no help
garnett
|
|
|
|
|
wgarnett wrote: please don't post the reply answer of no help
I am posting the reply answer of help.
I am advising you on the correct behaviour on CP forums.
Now for goodness sake, decide if you want a C# answer or a VB answer and delete the one you don't want.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I just want to know C# or VB.Net method
so I post to two forum
and plz don't waste time to reply unuseful answer
I only want to know the method that how to do it
If you know the useful sample and example , plz give me the link , thanks .
garnett
|
|
|
|
|
wgarnett wrote: I just want to know C# or VB.Net method
So just post in one place and say that you don't mind if responses are in C# or VB.
wgarnett wrote: so I post to two forum
I have tried and tried to explain to you that doing so is considered rude on CP.
wgarnett wrote: and plz don't waste time to reply unuseful answer
I have all the time in the world, no problem at all.
wgarnett wrote: I only want to know the method that how to do it
You might have a better chance of getting an answer if you, explain your problem in a clearer way.
wgarnett wrote: If you know the useful sample and example , plz give me the link , thanks .
I have a link for you here[^].
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi .. man
I say I only want to know how to do it
the technology , the component or the method
If you have no useful answer for this topic
please don't waste time to reply
garnett
|
|
|
|
|
I found the answer by myself, it uses component called "listbar"
I only want the answer like this , ok ?
garnett
|
|
|
|
|
Well done.
I am pleased that you have found a solution.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Dear sir,
i want to perform double click event in list view item, whenever i click on one item it shuld perform event. i have tried mani events such as mousedoubleclick, mouseclick, but it is not working.
could u plz tell me how can i do this??
yogesh
|
|
|
|
|
The event is automatically triggered when you double-click an item. What are you trying to achieve?
|
|
|
|
|
in my project it is not working. if i create new project and i do this then it is working. i cant undustand why it is not working.
yogesh
|
|
|
|
|
i am new to c#.net and was wondering if you guys can help me.
i am trying to import files with specific keyword in filename name from HTTP site to my local folder.
i think not sure- i can can't use webclient cos i can't filter file with my keyword on site.
please help.
thanks in advance.
Shon
|
|
|
|
|
Dear,
i have two different namespaces. i want to use one class of one namespace in another namespace. i tried with using keyword. but it is not working.
yogesh
|
|
|
|
|
You can't put a class name in a using, only the namespace.
using NamespaceTwo;
namespace NamespaceOne
{
public class ClassA
{
ClassB b1 = new ClassB();
NamespaceTwo.ClassB b2 = new NamespaceTwo.ClassB();
}
}
namespace NamespaceTwo
{
public class ClassB
{
}
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
yogesh_softworld123 wrote: i tried with using keyword. but it is not working.
You need to be specific about exactly how it isn't working. I'm going to assume that you got an error that said something like Are you missing an assembly reference?
If they are then you have to add a reference to the assembly the class you want to use is contained in.
To do this, right click on the project (in the Solution Explorer) and select "Add reference..." in the context menu. In the dialog select the "Projects" tab and then select the project the class you want to use is in.
Your using should then work.
|
|
|
|
|
Make sure the class you're trying to use is marked as public , otherwise it won't be visible outside its namespace.
|
|
|
|
|
I have to list boxes...and i have a datagrid with binded to complete table..and i am using DataGridCombocolumn with displaystyle as nothing to display the values from master tables in relation instead of their IDs...
On selection change event of second list box i put this filter...values in both list boxes are selected...it shows correct values in debug mode........
MyBindingSource.Filter = "Column1="+cbCol1.SelectedValue+" AND Column2= "+cbCol2.SelectedValue;
it gives following error
Syntax error: Missing operand before 'And' operator.
|
|
|
|
|
You might be missing the ' (quote). Try it this way,
MyBindingSource.Filter = "Column1='"+cbCol1.SelectedValue+"' AND Column2= '"+cbCol2.SelectedValue+"'";
See the example here, Link[^]
|
|
|
|
|
When i am doing it like that it gives error cannot convert System.Int32 to System.String
Actually both are Primary key IDs in individual master tables....but the value coming here is string...If i am not using AND clause this is working fine with individual listbox filtering it is auto converting those strings...Its only then when i want to filter by values from both columns its creating prob...I am not facing any prob with combo box in the same situation.......Its the only list box thats irritating
|
|
|
|
|
(("Column1="+cbCol1.SelectedValue.ToString()+") AND (Column2= "+cbCol2.SelectedValue.ToString()));
This might work...
And one more thing.
it might be && inspite of AND
But not so sure. .
|
|
|
|