|
Hi friends,
I am converting the content of Gridview to Excel. Its working. But i dont know how to format the excel sheet for design(Font Color, Leaving empty row after heading, adjusting the width of the column equal to the content of the gridview) and etc. Help Me Please.
Thanks & Regards,
Prya
|
|
|
|
|
|
I want to upload the file in the designated folder on server. Want to save the path of file in database. Which I can use to retrive the file in future.
Saurabh
|
|
|
|
|
|
Need help for uploading the file to folder, saving the file in such a manner in folder so user multiple user can save and retrieve the file with same name. Address of files needed to be saved in database.
Can any one help me to solve this problem in ASP.Net + SQL + C#.
Saurabh
|
|
|
|
|
Try to write the code of your own.
|
|
|
|
|
hi all in my program i can create a new registry subkey under CLASS_ROOT, CURRENT_USER, USER & CURRENT_CONFIG But the programm can't Create a subkey under HKEY_LOCAL_MACHINE(But its possible under any sub node of LOCAL_MACHINE)
when i try for it the compiler shows the following message(An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The parameter is incorrect.
)
so how can i create a new sub key under LOCAL_MACHINE
HAVE U ANY SOLUTION PLZ REPLY SOON
THANX
Pradeep
-- modified at 7:12 Thursday 20th July, 2006
|
|
|
|
|
I think that is impossible to create a key under HKLM. That is not allowed.
|
|
|
|
|
NO dear It is possible now I have successfully done it
At The [HKEY_LOCAL_MACHINE AND HKEY_USERS] NODE the programm Only Works Under Sub Tabs And Not Useful For SECURITY Tab Under LOCAL_MACHINE NODE
just try it its so simple
GOOD LUCK
|
|
|
|
|
how do i send an e-mail using outlook 2000
|
|
|
|
|
just configure ur outlook for sendning and receiving mails in ur system. this has nothing to do with the coding part. after u finish configuring outlook in ur system whenever u click a link to mail it will open the outlook compose mail window.
Vipin
|
|
|
|
|
Sorry, I want to send mail via my c# application using outlook 2000.
|
|
|
|
|
hello, am writting a code for windows application, i want to validate the email i enter in a textbox using code not validators,
what is the suitable code to ensure the format of the email i enter
Thanks alot
Hamody
|
|
|
|
|
probably this code might help u.
private void textboxEmail_TextChanged(object sender, System.EventArgs e)
{
if (this.textboxEmail.Text.IndexOf("@") != -1 && this.textboxEmail.Text.IndexOf(".") != -1)
{
/* you entered a correct e-mail address */
this.textboxEmail.BackColor=Color.Yellow;
this.textboxEmail.ForeColor=Color.Blue;
this.textboxEmail.Font=new Font("Arial", 10, FontStyle.Underline);
}
else
{
// back to old/previous status of the TextBox
this.textboxEmail.BackColor=Color.White;
this.textboxEmail.ForeColor=Color.Black;
this.textboxEmail.Font=new Font("Arial", 10, FontStyle.Regular);
}
}
This is the method
private void textboxEmail_Validating(object sender, System.ComponentModel.CancelEventArgs e)
{
Regex emailregex = new Regex("(?[^@]+)@(?.+)");
Match mmatch = emailregex.Match(this.textboxEmail.Text);
if ( mmatch.Success )
{
MessageBox.Show("UserName: " + mmatch.Groups["user"].Value+"\n"+"HostName: " + mmatch.Groups["host"].Value,"E-Mail Information");
this.statusBar1.Text=""; //clear StatusBar
}
else
{
MessageBox.Show("invalid e-mail address...","E-Mail Information");
e.Cancel=true; // don't go away from the TextBox, try again
}
}
Vipin
|
|
|
|
|
|
In a windows-based application, how can we access the memebers(controls) of form1.cs class in another class within the same namespace.i need to update the controls with the data received in the other .cs class
Thanx in advance.
|
|
|
|
|
Hello,
If you have the instance of form1 in your other class.
You have to set the Members to public.
public otherclass()
{
this.myform1instance.member1.myproperty.value = ???;
}
If not, let us know more about your application.
All the best,
Martin
|
|
|
|
|
How can I do in C#, lets say inside a click event, a cmd that restarts the application, but updates it through the ClickOnce of the VS?
|
|
|
|
|
Hello. Is there any way to create suspended process in .NET as it can be done by passing to WinAPI function CreateProcess() CREATE_SUSPENDED flag?
I cann't belive i'd use DLL import to implement this functionallity...
|
|
|
|
|
Hello
As you see i want to show "Yes No YesToAll Cancel" buttons on MessageBox dialog window.
How can i do this in C# ?
|
|
|
|
|
i think you have to design your own form with these buttons on it and then you can use this form as message box.
rahul
|
|
|
|
|
See this:
http://www.codeproject.com/cs/miscctrl/MessageBoxManager.asp
|
|
|
|
|
in C# Windows,
i have a button and a textbox
when i enter a name in my textbox and click on my button
it saves the name in a Database
i would like my button to work when i press the Return key(Enter)
so dont have to click it.
is there a property for this if not how do can i code this.
hope you understand
thanks
regards paula
|
|
|
|
|
Make the button the default, or 'accept' button in the form.
Regards
Angel
*********************************************
The sooner you fall behind, the longer you have to catch up.
|
|
|
|
|
Or...
use the event "KeyDown" from textbox.
and then just use this:
private void textbox_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
button.PerformClick();
}
}
|
|
|
|