|
I am pretty sure there has to be a method after that.
but i dont no if that is write.
ollie
|
|
|
|
|
Thank you ollie for your reply...
I have resolved the problem...
Using the DataGridView.DataError event and catching the exact error worked out...
modified on Friday, December 07, 2007 7:46:56 AM
|
|
|
|
|
|
Hi,
Is is possible to read all class name from a assembly.
USing reflection i can read class name and all other inforamtion of it. but i want to get the class name from some other Csproj file so i need to read the assembly of that file !!!!
Any idea !!!!
Thanks in advance !!!!
|
|
|
|
|
Abhijit Jana wrote: Is is possible to read all class name from a assembly.
Yes. From the Assembly object you can use the GetTypes() method which returns an array of Type objects.
Abhijit Jana wrote: but i want to get the class name from some other Csproj file so i need to read the assembly of that file !!!!
Yes, you can use one of the static Load methods on Assembly. If you only want to query the assembly without running code on it you can use one of the ReflectionOnlyLoad methods instead.
|
|
|
|
|
|
(for example)
Type _type = Assembly.GetAssembly(this.GetType()).GetType("class name");
or
Type[] array = Assembly.GetAssembly(this.GetType()).GetTypes();
|
|
|
|
|
Hi,
I am building a windows application that can show list of files from a folder that is placed in web site. I mean to say on web server. Let us suppose there is a folder on localhost named as Test. Now i want to display all files' mame in a list view. Is there anybody has any helping material that can help me as well. Thanks in advance
|
|
|
|
|
|
I've tried this one but this is only for local system. But i want to fetch the files from a folder placed on Web Server to a local system. I can read files as stream but how can i get the list of file from a folder placed in a web site.
|
|
|
|
|
|
hi.. if i create project using wpf.. drag a button into the form.. how do i get to the event for the button_click ? i cant double click tat...
|
|
|
|
|
Hi,
You can just add eventhandler for the button in code-behind file as follows :
button1.Click += new RoutedEventHandler(button1_Click);
Regards,
Ujjaval Modi
|
|
|
|
|
where is the code behind the file? where to put the code?
wht i was forced to do is open the blend.. and get click on the event button click to show the code.. hahaha
|
|
|
|
|
|
Hi,
iam doing windows application with c#..
i have to insert datagridview rows into database...
with my code data is inserting into database and at the same
time it is giving error ("unhandled datatype mismatch")
i check with all my database datatypes and text what iam typing.
so please provide some help..
mycode is
string connection = @"Provider=Microsoft.Jet.OLEDB.4.0;" +
@"Data source= D:\inventory\management\management\database\muralicell.mdb";
OleDbConnection myconnection = new OleDbConnection(connection);
myconnection.Open();
for (int i = 0; i < inwardgrid.Rows.Count; i++)
{
string insproducts = "INSERT INTO product_details(productid,Invoice_number,productname,units,received_date)VALUES('" + inwardgrid.Rows[i].Cells[0].Value + "','" + inwardinvno.Text + "','" + inwardgrid.Rows[i].Cells[1].Value + "','" + inwardgrid.Rows[i].Cells[2].Value + "','" + inwardrecdate.Text + "')";
OleDbCommand insprocommand = new OleDbCommand(insproducts, myconnection);
insprocommand.ExecuteNonQuery();
insprocommand.Dispose();
}
myconnection.Close();
murali krishna
|
|
|
|
|
Hi,
Just try to put your code in try & catch block. Because you are getting datatype mismatch error. The conflict is between the data you are passing and the data-type of the fields in database.
May be error is due to date field.
Regards,
Ujjaval Modi
|
|
|
|
|
hi all
help me how to code in c# to
pass the texbox values present in form1
to form2 for a button click event
.
i had coded lik this ina button click of form1
private void btnEdit_Click(object sender, EventArgs e)
{
frm2.Show();-----i had created frm2 object above this click event
frm2.TextBox1=txtAreaName.Text;----> this code doesnt works. i mean here to pass the textbox value of form2 to textbox in form1.
}
pls help
thank you
senthil
|
|
|
|
|
There are many ways to acheive this, the easiest is to adjust the constructor for form2 to accept a textbox argument and store that as a variable in the form2 class in the constructor. Then you can access or change any of the form1.textbox properties from form2.
|
|
|
|
|
|
Hi,
I am working on the Ado.Net Entity Framework and I want to know the how it is best over the Ado.net considering the performance.
Thanks,
Sarang
|
|
|
|
|
Hi, I'm using the RequiredFieldValidator and ValidatorCalloutExtender in the UpdatePanel. The Validator is ok for the first time,but after that I face a problem when the control is blank, the error is : ControlToValidate is null.
Can somebody please help me.....
#ps: i m using AjaxToolKit...
Thanks....
|
|
|
|
|
Hi
I have a web browser object that loads a given page, and once its loaded i want to extract all the images from the DocumentStream and get them in an Image or Bitmap format.
Anyone know a way of doing this?
I have tried several methods but none seem to work.
I've noticed that right click > Save As seems to be instant, ie not redownloading the picture, which is my goal. Any idea what methods Save As uses to save it without redownloading?
Any help appreciated...
|
|
|
|
|
I am a bit confused about using the InvariantCulture flag while converting a string to double.
Can someone please guide me as to how do we take care that when we are converting a string to double it should work in different culture settings(like English which uses "." and french which uses "," for decimal separators). My idea is that if I give the InvariantCulture flag then Double.Parse or Convert.ToDouble can convert any string correctly.
Thanks,
Pankaj
|
|
|
|
|
Hi all, I've a problem with remoting: in order to connect to a remote object I have to open a port on the server. But then the server also asks for a connection with the client and the port used is random if in the client remoting file there is
<channel ref="tcp" port="0" exclusiveaddressuse="false">
or the specified port otherwise. My problem is that if I have to go behind a firewall I have to open the port, so I specify a port but then... when I try to start a second instance of my app I get an exception because the channel is already in use. I could ask the customer to specify a set (or range) of ports, but I wonder if there are better alternatives. For example, how do applications like P2P or web browser deal with multiple connection? I suppose that they have to accept incoming connections as well...
modified on Friday, December 07, 2007 3:25:47 AM
|
|
|
|