|
I am writing in-c # deal with OLEDB..
|
|
|
|
|
I think you need to start learning from starting.
Simple way SET HeaderText Property of Column.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi,
Following is not working kindly give me correct syntax.
SendKeys.Send("{ALT+V}");
Thankx in advance
(Riaz)
|
|
|
|
|
Hey,
you can check this.
Try[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Please can some describe how to
programmatically populate a combo box
at runtime in a windows application
using C#?
|
|
|
|
|
Ekpezu wrote: programmatically populate a combo box
clickety[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You could get dozens of hints in google quite easily.
Either you love IT or leave IT...
|
|
|
|
|
Hello, I do try to update my form but I can not, I would be happy if someone would give me an example of the update query.
Thank you very much.
|
|
|
|
|
here you go[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi
i need to add any control (ex: button,ComboBox,Slider Control, Radio Button etc... ) in the Non Client Area of a form in C#
could you suugest me the solution
Regards
Code----
Code is Gr8
|
|
|
|
|
what do mean by non client area?
is it the code Side of the form?
Cos i don't really understand
what u mean by Non Client area
|
|
|
|
|
The Non-Client area of a window is defined as the area you don't draw on; ie the window border, caption, menu bar and scroll bars.
You can draw in it in WPF (WPF Non-Client Area Design Techniques For Custom Window Frames[^])
You can paint in the NCA by overriding WndProc and trapping WM_NCPAINT (0x85), but I can't help with getting a button in there!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
hi
I have these code . What could cause above error ? Thanks
state=1
switch (state)
{
case 1:
//do something
goto case 2;
case 2:
//do something
goto case 3;
case 3:
//do something
goto case 4;
............
case 100:
//do something
}
|
|
|
|
|
dec82 wrote: What could cause above error
goto
|
|
|
|
|
I'm almost speechless! I'll leave it for others to say as I'm in a good mood today.
Look up break (and maybe default: too).
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) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
YEUCK! I have copied your code to "Coding Horrors"!
This is C#, not C++. Switch blocks cannot fall through in C#, they must end in a break statement.
Please, go and look at a C# book under two sections: "switch statement" and "Don't use goto unless you really, really have to"
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
OriginalGriff wrote: I have copied your code to "Coding Horrors"!
You beat me to it!
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
OriginalGriff wrote: Don't use goto unless you really, really have to
Fixed that for you
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
There are times when a goto can really improve readability, rather than if...if..if..if... etc.
Having said that, I don't think I've used one in a non-assembler language for twenty or so years.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
If you're a student/junior dev though; the rule is NEVER. You're not experienced enough to ID the few cases where it really is the best choice and will just learn bad habits.
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
dan neely wrote: the rule is NEVER
Absolutly true...
Learn the law!
Obey the law!
Fear the law!
Believe the law!
And THEN you can break the law!
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
williamnw wrote: Learn the law!
Obey the law!
Fear the law!
Believe the law!
Judge Dredd wrote: I am the law!!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Then how do you execute multiple cases in a switch in C#?
|
|
|
|
|
LalalalaICantHearYouLalalalalala
Outside of a single school exercise (Generate the complete lyrics for the 12 days of Christmas) I can't think of a single case where falling through was desired behavior.
Seriously though, that's the exception which proves the rule.
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
dan neely wrote: Outside of a single school exercise (Generate the complete lyrics for the 12 days of Christmas) I can't think of a single case where falling through was desired behavior.
It does happen occasionally. My current project has two switches where it was much clearer to add a "goto" rather than convoluted logic.
The important thing, of course, is to comment it properly so everyone can see exactly what's being done, and why.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|