|
Hmm.... I am not sure I understand what you are trying to tell me Paul. Let's see:
geiste wrote:
am entering the information into rows in a MS SQL DB
By an MS SQL DB you mean SQL Server? MS Access? Because each database type has a different ADO.NET connection type. For instance, MS Access needs an OleDbConnection. For general info on how to access a database, and loop through a table's records and read their values have a look here[^].
For different database types and information on how to access them, a simple Google search for something like "C# ADO.NET" or "Ms Access C# ADO.NET" would return thousands of hits, so take your pick
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
Thank ya, yes I am using SQL Server 2000. I will try your hints, anyother advice?
-Paul
|
|
|
|
|
Not really.
Hope things r bit clearer now
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
Hi, this should be really easy, but I can't get it to work. What I want to do is to open a window and keep the focus on that window even if the user trys to set focus on the parent window. I have tried to use the Activate and Deactivate events of the two windows but I can't get it to work
/Regards Johan Hertz
|
|
|
|
|
I guess what you are after is to be able to create an instance of the new form as modal.
For example: You are trying to open Form2 from Form1 when clicking a button. At the button click event you would say:
Form2 myForm = new Form2();<br />
myForm.ShowDialog();
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
Hi everybody , i want to move my dialog when by pressing the mouse button on any area of my program how can i do this in C#?
in C++ it was too easy by overloading the OnLButtonDown()
void CYourDialog::OnLButtonDown(UINT nFlags, CPoint point)
{
CDialog::OnLButtonDown(nFlags, point);
PostMessage( WM_NCLBUTTONDOWN, HTCAPTION,MAKELPARAM(point.x, point.y));
}
But i can't find smth. similar to PostMessage
m0n0
|
|
|
|
|
|
I think that you can use API of Windows such as "release capture"\"setwindowslong" \"sendmessage"
|
|
|
|
|
Does anyone know how i can get an event fired when the user changes the window position of the Internet Explorer?
I'm slowly gettin crazy with this problem...
Thanks for any help!
|
|
|
|
|
I understand that by setting DrawMode to OwnerDrawFix and then override the DrawItem method, I should be able to recreate the header for each tabpage,
now the problem is the header of each tabpage seem to be a control, and Graphics.FillRectangle cant fill the whole tab header, what can i do to add custom controls to the header or to have total control over it?
Thank you for helping.
Elapid For The Win
|
|
|
|
|
Please have a look at my Custom Drawn Tab control article. And then let me know where you stuck up with problem.;)
Sreejith Nair
[ My Articles ]
|
|
|
|
|
hi
where can i find example of making animation of a mesh made in a 3ds max with bones so i can control easc bone alone
thanks for help
|
|
|
|
|
Dear all
i am working in a programme that can get and set desktop background, and i am using C# , and i dont know how to do this with it
i need help
thx
|
|
|
|
|
So what ur saying is you want to be able to change the wallpaper programmatically?
|
|
|
|
|
There's examples of this all over the web. A simple Google search comes with over 25,000 hits...
Google results...[^] take your pick.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to draw simple rectangle , how can i do this??
Is there smth. similar to "CPaintDC"(in C++)
m0n0
|
|
|
|
|
I hope....you're asking for C#
well all you have to do is to get a graphics object say naming it g
and then g.drawRectangle(....);
then dispose g
....I suggest to get to google and search for GDI+ programming...there are many cool tutorials!
GaMBiT---> aND ReVeNGe WiLL Be
|
|
|
|
|
|
Hi everybody , i have written program in C# , and compiled using "Release", but now i want to take my program to a computer where Studio.Net is not installed , should i copy any *.dll files with my program , or what should i do in order to run my program??
Regards
m0n0
|
|
|
|
|
Hi
First of all C# is on the .NET Platform.
Secondly...you can copy and install only a small part of the .NET dlls but...I would rather suggest you to install the full .NET Platform, as to ensure stability!
If I were you I would install the full .NET platform...come on only 25Mb...not a big expense!
....I'm not sure about this.....but Windows XP Service Pack II incorporates the most basic and fundamental dlls....but I'm not so sure!
GaMBiT---> aND ReVeNGe WiLL Be
|
|
|
|
|
Hi!
.NET Framework is a must. Period.
Once that's installed, however, you usually can just copy all the DLLs and EXEs from your build directory to an arbitrary directory on the other computer and it should work.
That's called XCOPY deployment, btw.
Regards,
mav
|
|
|
|
|
How can i programatically get, current date and time ??
Regards
m0n0
|
|
|
|
|
string t = "";
t += DateTime.Now.Date.Day.ToString();
t+= "/";
t+= DateTime.Now.Date.Month.ToString();
t += "/";
t += DateTime.Now.Date.Year.ToString();
string t2 = "";
t2+= DateTime.Now.Hour.ToString();
t2+= ":";
t2+= DateTime.Now.Minute.ToString();
t2 += ":";
t2 += DateTime.Now.Second.ToString();
GaMBiT---> aND ReVeNGe WiLL Be
|
|
|
|
|
DateTime.Now is correct, but the formatting is a mess...;P
DateTime has many wonderful (and culture-sensitive!) methods for formatting the output, there's no need to use 12 lines when you can simply write
string t = DateTime.Now.ToString("dd/MM/yyyy");
string t2 = DateTime.Now.ToString("HH:mm:ss"); Regards,
mav
|
|
|
|
|
I am using Graphics to draw a rectangle to indicate a new location of a control as the users move the cursor around.
Now the thing is my rectangle, when moving over other controls, is covered by other controls. How do i change the z order of the graphics so that i can see the whole rectangle while moving it over a control?
Thank you so much for reading and please help me out
Elapid For The Win
|
|
|
|