hi for change the size property u must first set autosize property to false.
maryamf
Posts
-
Is is possible to change the setting of the ContextMenu? -
How to draw a Horizantal line in WindowsAppform have an event which name is Paint. in this event u can use : e.Graphics.DrawLine(--,--,--)
-
plz help!i have a big problem ! when i change anything in my code project this error is appear : ""Unable to copy file "obj\Debug\Charge1.exe" to "bin\Debug\Charge1.exe". The process cannot access the file 'bin\Debug\Charge1.exe' because it is being used by another process."" but if i don't change anything it isn't appear, do anybody know how can i fix this error?
-
UrgentMSDN :Setting ShowNewFolderButton to false does not work on Windows 2000.
-
get whether a checkbox is checked or not ASP.neti can't understand your question clearly but i think your anwser is : you must first set Autopostback property of the checkbox to the true and then work with checkedchanged event like this code: protected void CheckBox1_CheckedChanged(object sender, EventArgs e) { if (CheckBox1.Checked) Response.Write("checked"); else Response.Write("unchecked"); }
-
updatefirst you must set the gridview DataSource: dataGridView1.DataSource =DS.tables["x"]; then u must add row to the DataTable for exmaple : a = a+1; b = textBox1.Text; dt.Rows.Add(new object[] { a, b}); after click the button to update data in database: scb = new SqlCommandBuilder(DA); DA.Update(DS, "tbhazine");
-
update with datagridviewif you want update your data in datagridview in data base you must first define sqlcommandbuilder before your update command: SqlCommandBuilder sc=new SqlCommandBuilder(DataAdaptorname);
-
plz help!i fill 1 data table from database . i have 1 datagrid on the form that i fill it manually. can i add one of the columns of the data table to my datagrid? thank you :confused:
-
help needed for passing data between forms ?you must define it "Public Static" in form1 then u can use it without new form.
-
a question about checkboxes ? help please ...i think this could be worked CheckBox[] ch1 = new CheckBox[] { checkBox1, checkBox2, checkBox3, checkBox4 }; { for (int x = 0; x < 4; x++) if (ch1[x].Checked) { foreach (CheckBox ch in ch1) { if (ch.CheckState == CheckState.Unchecked) ch.Enabled = false; } } }
-
Add some columns in datagrid!i fill 1 data table from database . i have 1 datagrid on the form that i fill it manually. can i add one of the columns of the data table to my datagrid? thank you
-
a question about printing or saving data in datagridview ?i think u can use stream writer and streamreader for save data or read data from the files. data set is in connection with xml . u just must add a xml file to your project and work with it. for send data to printer u can use crystal report or print prieview control(i think).if you use control u must use drawing namespace(or e.graphics for ex.) to draw your form and measure the line is in your page and your no's of print pages.
-
create forenkey syntexyou must define diagram for your database that can define foriegn keys between your tables
-
adoDA1 = new SqlDataAdapter("select * from tbmohasebe where tarikh = '"+comboBox1.Text +"'" , conn1); DA1.Fill(dt1); //dt1 is Data table dataGridView1.DataSource = dt1; how can i hide some of columns in datatable that don't show in datagrid?