|
Perhaps calling Dispose on your OdbcCommand object after ExecuteNonQuery() will help...
mav
|
|
|
|
|
You are write
Thank u very much. I appreciated ur help
|
|
|
|
|
I hope for your sake no id is never 'DELETE FROM Information
|
|
|
|
|
I have read your Article Edit Almost Anything in a datagrid -Declan Brennan.
which is very interesting and a challenging work. My good wishes for your work.
I like to have in depth knowledge on it. Can you please help me?
I like do it in my project Address book for an Hospital in my hometown.
Traversing by Department Name and viewing patient Address in an datagrid.
Loading all patient Pictures and differentiating their disease using color box.
Profile
Name :Uma V
Qualification : M.c.a
Currently doing a DOT Net course and implementing a project in c#
Please give me your hand in making my project a success.
Regards,
Uma
UmaRamanan
|
|
|
|
|
UmaRamanan wrote:
I like to have in depth knowledge on it. Can you please help me?
That's a great article! However, if you want to understand the details, go into the debugger and see what it's doing, use MSDN and google search for info on classes and methods you don't understand.
To paraphrase, if someone explains it to you, you can program a a data grid. If you learn to explain it to yourself, you can program anything.
Marc
My website
Latest Articles:
Object Comparer
String Helpers
|
|
|
|
|
Hi Does anyone know how to generate a pdf(acrobat) from a standard text file?
|
|
|
|
|
There are no tools in the .net framework...
But you can find various components to generate pdf's in the internet. Or, if you don't want to generate your pdf inside a program, you can find "pdf printer"...for example PDF Ghost.
The pdf file format is an open file format, so you could implement your own pdf generator. References can be found in the internet too, for example here: http://partners.adobe.com/public/developer/pdf/index_reference.html#5
|
|
|
|
|
Hi everyone...
I wanna make dynamic form that controls can be added in runtime,
and also this form could be opened later, with the added controls.
Also I need to add source code for these added controls..
Thanks everyone...
Good coding...
|
|
|
|
|
hi!
You should read Marc Clifton's articles on declarative programming...
Regards,
mav
|
|
|
|
|
|
|
Thank you very much..
I'll check it'
|
|
|
|
|
Hi guys
I m looking for some (free) code converter which can change C# code to VB.NET, any help will be highly appreciated
Thanks in Advance
Utsav
|
|
|
|
|
There are a couple dozen of them. Google for "C# VB.NET conversion" and you'll find what ye seeks.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Our C# to VB.NET converter, Instant VB, is not free, but you may find the free Demo Edition (converts up to 100 lines at a time) useful (www.instantvb.com).
David Anton
Tangible Software Solutions
www.tangiblesoftwaresolutions.com
Home of:
Instant C#: VB.NET to C# Converter
Instant VB: C# to VB.NET Converter
Instant J#: VB.NET to J# Converter
|
|
|
|
|
For example, I have Form1 and Form2, Form1 is parent of Form2.
When Form2 is active, how can I tranfer some values to Form1 components?
Many thanks.
|
|
|
|
|
Give Form1 a setter method to accept the values...
internal void SetValues(...){ ... }
...and add an owner-parameter to Form2's constructor.
public Form2(Form1 owner){<br />
this.owner = owner;<br />
}
Then Form2 can send the values to Form1:
owner.SetValues(allMyValues);
_________________________________
Please inform me about my English mistakes, I still try to learn your language!
|
|
|
|
|
If I understand your question correctly (some code really helps with saying what you want), you have a line somewhere in Form1 saying myForm2.ShowDialog() , right?
And now, while myForm2 is showing, you want to set some values for the dialog.
If this is what you want, then the answer is: It cannot be done (well, it _can_ be done but it would be far too complicated an is really not encouraged).
The reason is that calling ShowDialog doesn't return control to the calling function until the second form is closed, so you can't execute any other code.
You should use myForm2.Show() instead of myForm2.ShowDialog() in this case. Show() returns immediately, making myForm2 a nonmodal dialog. Your Form1 isn't blocked anymore and can access myForm2 immediately afterwards.
Regards,
mav
|
|
|
|
|
Thanks for your reply, but is there any way to use ShowDialog? ^^
|
|
|
|
|
Well, since the thread executing the ShowDialog call is effectively blocked until ShowDialog returns, you'd have to create a new thread, give it a reference to the Form you're displaying with ShowDialog() and then let the new Thread operate on myForm2.
But you'll probably run into some problems developing this, inter-thread-calls having to be done via Invoke being the least of them.
Using Show() is the much better alternative IMHO. Easier to implement and to understand.
mav
|
|
|
|
|
After receive some instructions, now I can do what I want.
--------------------
class Form2 : Form
{
public Form1 form1;
...
--------------------
class Form1 : Form
{
...
void Form1_Load(object sender, EventArgs e)
{
Form2 form2 = new Form2();
form2.form1 = this;
form2.Show(); //form2.ShowDialog is still OK
}
...
}
And then we can use "form1" with every methods, properties or controls in Form1 that Form2 have permission to access.
Reference:
http://searchvb.techtarget.com/vsnetATEAnswers/0,293820,sid8_gci875271_tax293474,00.html[^]
|
|
|
|
|
hi,
I would like to find some examples for making draggable toolbar, and so that it can dock to some where.
anyone can give me some hints? thanks
|
|
|
|
|
HI!
There are quite a few articles here on the topic, you might want to use the search function.
One of them is here[^]
Regards,
mav
|
|
|
|
|
Can you help me?
hope for help
|
|
|
|
|
WindowState = Maximized and no bitle bar
modified 12-Sep-18 21:01pm.
|
|
|
|