|
hi all,
i have a button which binds some data to each other.
but if i double click on that button, i receive an error which says a previously binding exists.
how can i avoid this error ?
i mean: am i able to check if there is a databinding exists when i click on that button ? or am i able to collapse(or purge) the previously databinding when i click on that button ?
|
|
|
|
|
|
try to use
controls DataBindings.Clear() method
before binding specific control
rahul
|
|
|
|
|
hi all,
txtcaseNo.DataBindings.Add("number", dset13, "case");
txtrentstart.DataBindings.Add("date", dset13, "rentstart");
txtrentend.DataBindings.Add("date", dset13, "rentend");
txtrentduration.DataBindings.Add("number", dset13, "rentduration");
cmbCOHour.DataBindings.Add("date", dset13, "COHour");
txtcurrencytype.DataBindings.Add("text", dset13, "currencytype");
txtdailytotap.DataBindings.Add("number", dset13, "dailytotal");
txttotal.DataBindings.Add("number", dset13, "total");
this code gives an error like this: cant bind number ?
my database fields are :
number, date/time, date/time, number, date/time, text, number, number respectively. how should i change the first properties in binding (bold parts)?
help please,
thanks in advance.
|
|
|
|
|
i think what ever u have witten in bold letters are data types of coloumns
of table but u should put controls property to bind there
like if txtcaseNo is text box then data binding should be
txtcaseNo.DataBindings.Add("Text", dset13, "case");
where Text is text property of textbox to be bind.
rahul
|
|
|
|
|
i want to know how i can form a string if i have array of bytes. I want to display charcters in Chinese on the form.
|
|
|
|
|
System.Text.Encoding.Unicode.GetString(byte[] byte);
|
|
|
|
|
I don't know if this is the right board for this, if not I'm sure someone will tell me.
I am developing a C#.NET application for the market, which will be sold over the internet by making a trial version (with limits on facilities and use time) available free, and providing an unlocking mechanism on receipt of payment. All standard stuff - except I've never done it before.
Can anyone recommend a good guide to how to do this, or even a developers' toolkit for generating/recognising keys and all that stuff.
Dave
|
|
|
|
|
Watch this :
http://www.codeproject.com/cpp/softwarekey.asp
bye
-- modified at 6:26 Tuesday 6th June, 2006
|
|
|
|
|
|
I want to add my exe file shortcut to User's Desktop and User's program Menu in my Setup and Deployment Project. When I add this exe file that folders directly , my program can not be run. I think that program need DLL files. How can I solve this problem? So how can I add icon my exe file in Setup Project? Thank you for your answers....
This is my sign
|
|
|
|
|
when u add project output in application folder in setup & deployment
project u will see primary ouput from project name(Active) in application
folder,so right click on this item u will find create shortcut of primary output
option,on selecting it u will see shortcut of this primary output
and then u can move this shortcut to user's desktop folder and
user's programs menu folder
rahul
|
|
|
|
|
Thank you very much for tour help.
This is my sign
|
|
|
|
|
hi all,
i have a few textboxes and a datagridview.
SelectionMode is 'FullRowSelect'. when the selected row changes, i want to change the textboxes.texts to change according to the data in datagridview.
i have a code like this :
txtKullanici.Text = dataGridView3.Rows[dataGridView3.SelectedRows.Count -1 ].Cells[0].Value.ToString();
txtSifre.Text = dataGridView3.Rows[dataGridView3.SelectedRows.Count -1 ].Cells[1].Value.ToString();
txtSifreT.Text = txtSifre.Text;
cmbYetkiS.Text = dataGridView3.Rows[dataGridView3.SelectedRows.Count -1].Cells[2].Value.ToString();
in which event should i put these codes ?
help please,
thanks in advance.
|
|
|
|
|
Never worked with DataGridView , but after a quick glance at the docs I would say SelectionChanged sounds suitable.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de
|
|
|
|
|
Try this:
private void DataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e)
{
if(DataGridView1.CurrentRow != null)
textbox1.Text = DataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
}
Regards.
Success is not something to wait for, its something to work for.
|
|
|
|
|
Hello all,
I have been call all methods of dll by DllImport[]. But how to call constructor of structure from C#.
Divyang Mithaiwala
|
|
|
|
|
See this : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmxspec/html/vcmg_accessingcodefromframeworkobjects.asp
First : you must write a code in Managed C++ to wrap your Unmanaged C++ code.
Second : Use your Managed C++ Classes in your C# Code.
|
|
|
|
|
smile because it happened.
my qq:759508
smile because it happened.
|
|
|
|
|
|
how to insert values from controls to different interrelated tables in database
-- modified at 3:28 Tuesday 6th June, 2006
|
|
|
|
|
The best way is to write a stored procedure and call it with the values from your controls.
What's the database ? Have you looked on the site for examples ( in the articles section ) ? What about msdn ? You can use google to search msdn by putting site:msdn.microsoft.com at the end
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
plz give JavaScript tutorial.
|
|
|
|
|
foysal mamun wrote: plz give JavaScript tutorial
visit:
http://www.w3schools.com/js/[^]
You might better to join Web Development forum.
Best Regards.
Success is not something to wait for, its something to work for.
|
|
|
|
|
please post in the right forum
please dont ask 1 line questions
please dont use SMSSPK
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|