|
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();
}
}
|
|
|
|
|
if (e.KeyChar == 13)<br />
{<br />
Button1_Click(sender,e);<br />
}
|
|
|
|
|
Hi,
Is there any possibilities to create DataSet/DataTable from ListView Control with out doing looping and reading individual cells. If so please give me an example.
Thanks....
|
|
|
|
|
Not that I know of.
Are you doing this for a one-off or lots of times. If for a one-off just do the looping. If not then if you must use a dataset have a rethink of your architecture.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
I need to read all the items. So using loop is not good idea thats why i'm looking to convert entire ListView into DataSet. Can any one help out.
|
|
|
|
|
I understand you need to read all items but do you need to do this everytime the application is run or can you do it just once "by hand". E.g. does the data change everytime you run the program so that you need to update the dataset everytime you run the program. If this is the case then the only way I can think of is if you do it in a loop, iterating through all the ListViewItems.
The Welsh will always support two teams: The Welsh, and anyone playing England
|
|
|
|
|
Hello!
I have programmed an MS Office add-in that lets the user push a button, enter some information in a custom dialog and then print the e-mail. My problem is that I want to give the user the possibility to select whether he/she prints the e-mail with or without attachments.
Any idea how to do this so that the user doesn't have to change the setting manually in the print dialog beforehand? It should work in Outlook 2000 and Outlook 2003 at least.
TIA, Mario
-- modified at 3:57 Thursday 20th July, 2006
|
|
|
|