|
i didnt say that i wanna some one to do it for , all i wanna is some help and thankx anyway for the adive.
|
|
|
|
|
If you read documentation, you will find everything you need.
|
|
|
|
|
|
How can we embed a xml file into dll file when deploying applications?
description:
when installing setup we are asking to enter "user Information". we want to store this information in a dll.
|
|
|
|
|
Probably through resources. You might want to google it.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
how to insert values which are inserted in a datagrid at runtime into database at runtime only. I`ve a datagrid i`ll insert values into grid at run time and i want to store them in database when i click save buton. How to store from datagrid
Chandrika
|
|
|
|
|
Through code behind with the save button. You'll have to code it yourself since no one knows what your database looks like.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
two questions
1. i want to bind a database table to a datagridview and few of the columns must have cell format as datagridview combo box ...
2. if question one is solved then..see to this....
one of the column contains item list along with its values
i am storing the item names in the combobox and the values as
cell.value...
now what i need is when i am retriving the database the particular columns must have cell type as combobox and the values for the cell must match the combobox list item
regards
sindhu tiwari
its me sid
|
|
|
|
|
sindhutiwari wrote: 1. i want to bind a database table to a datagridview and few of the columns must have cell format as datagridview combo box ...
Use ItemTemplate Field and use Combox in It!! your problem will solve
Steps
a)add a column to the gridview which is a TemplateField
b)Edit the templateField and drag ComboBox into the template!
sindhutiwari wrote: 2. if question one is solved then..see to this....
Try to do this first one , after that you can do this one also .
This is For your reference!!!
Reference!!!![^]
|
|
|
|
|
i neede it in desktop application
its me sid
|
|
|
|
|
Hi sindhutiwari,
1) First retrive the data from database to DataTable.
DataTable objDataTable = new DataTable();
objDataTable.Columns.Add("DataColumn1");
objDataTable.Columns.Add("DataColumn2");
dr = objDataTable.NewRow();
dr[0] = "data1";
dr[1] = "yes"
objDataTable.Rows.Add(dr);
2) Now you can bind this datatable to datagridview. You should set the "DataPropertyName" property of datagridview column.
grdView.DataSource = objDataTable;
this.grdColumn1.DataPropertyName = "DataColumn1";
this.grdColumn2.DataPropertyName = "DataColumn2"; // grdColumn2 is comboboxcell it contains 2 items (yes/no). other values not accepted.
Regards,
Gopal.S
|
|
|
|
|
I am developing a simple phone book application and i need to save the contact photo when adding new contact
and retrive it again when searching for them later.
|
|
|
|
|
This is very simple to do. just upload image corrosponding to the contact person and disply it from database.
you can store image in database as binary format
or
you can store image in a folder and store the path with data base corosponding image
e,g:
ID Name Address ContactNo Image_Path
------------------------------------------------------
1 MyName MyAddress 123456789 d:\AppFolder\MyName.jpg
2 UrName UrAddress 987654321 d:\AppFolder\UrName.jpg
Just Do in this way !!
While retrive with id, or name use image box to show the image
Any more query ??? Always welcome !!!
|
|
|
|
|
thankx alot. thats was very helpul
thank you again
|
|
|
|
|
i have another question please
how can i set the path for my picture to be saved in one of my soulotion folder like the bin folder for example without wirriting the hole path
c:\progrm\....\myproject\bin?
|
|
|
|
|
using System.IO
This will return the current working directory !!!!
Directory.GetCurrentDirectory()
|
|
|
|
|
Hi Friends...
I Have a Problem with sending a Fax Using c# Language.
How Send a Fax From C# Application?
I Should Use what dll to Send a Simple Fax?
Thanks.
|
|
|
|
|
Probably through a telephony class.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi
my code is not working .can any one suggest me.
private void Form1_KeyPress(object sender, KeyPressEventArgs e)<br />
{<br />
if(e.KeyChar==(char)27)<br />
{<br />
this.Hide();<br />
}<br />
}
ssk
|
|
|
|
|
You are hiding your form, not closing. If you want to close your form use this.Close()
Also, if you have controls on the form, make sure that your form is processing key press until they reach the controls
|
|
|
|
|
Hi!
The simplest way is to assign the button your users are supposed to close the form (Cancel, Close, ...) to the CancelButton property of your form.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
can u tell in detail. i am a beginner. i never used the Cancelbutton of a form
thanks
senthil
|
|
|
|
|
You can add a button on the form and close the form when that button is clicked. Then in the properties of the form find Cancelbutton property and set it to the button which closes your form.
|
|
|
|
|
ya its working.
but one doubt, if i need this same task to be done without
creating a button and setting its property to cancelbutton means , how ?
dont think i am irritating u
senthil
|
|
|
|
|
Allowing the user to close a dialog by using the ESC key only is bad UI design style, so if you keep up a good style and provide a button you don't face the problem.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|