|
Hi,
You can add an icon of your choice to your application by following the below mentioned steps in VS2005:
1) Right click on your project and choose Properties.
2) Choose Application Tab.
3) Under Resources group, choose Icon.
4) Click on the correponding button and choose .ico file of you choice.
5) Save and rebuild the project.
6) Goto YourApplication\debug\bin\YourApplicationName.exe and the icon of your application's exe file will be changed.
Hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
Thank you John
I might confuse you a little now... The icon that i am talking about should be reflected in the add or remove programmes.. i.e i build the project and create a setup.. when i install the setup i want My Icon to come in the Add/Remove programmes in the control panel? Is this possible?
|
|
|
|
|
When a build results in an error, intellisense highlights that line, with a blue wiggly underline, and a mouseover of the offending line gives a popup of the error message + explanation.
How do you cancel that? I find it irritating when i then want to get the regular intellisense features as a part of fixing the error on that line.
The only way i've found is a build|clean - but that makes the next build take a lot longer.
|
|
|
|
|
On the Tools menu, click Options.
Select the Text Editor folder.
Select the folder for the language you want to customize IntelliSense.
In the Advanced property page, clear check boxes for the features that you do not want.
|
|
|
|
|
I want the feature: I just want to be able to clear it, perhaps with a key combination.
So that I can view the error, then once I know it, i can switch back to regular intellisense for type info etc.
|
|
|
|
|
Press CTRL+SHIFT+B which will re-build the solution and clear the previous errors that you fixed.
Guy
Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
|
|
|
|
|
Hello everyone,
After some searched can not find the answers.
Suppose developing an Windows service application, and I need to register the event log in Windows registry.
1. What is the function of property EventMessageFile under SYSTEM\CurrentControlSet\Services\Eventlog\Application\[Some specific service name]?
2. How to fill the value for this property? I have analyzed a couple the values of property EventMessageFile of services of my local machine, and find all values for this property are different.
thanks in advance,
George
|
|
|
|
|
This is the event logging code from the TaskVision sample. Hope it helps.
private const string c_EventSource = "TaskVision";
private const string c_LogName = "Application";
public static void Write(string errorMessage)
{
try
{
if (EventLog.SourceExists(c_EventSource))
{
EventLog msg = new EventLog(c_LogName);
msg.Source = c_EventSource;
msg.WriteEntry(errorMessage);
}
else
{
EventLog.CreateEventSource(c_EventSource, c_LogName);
}
}
catch
{ }
}
|
|
|
|
|
Thanks Shree,
I am using the similar code. My question is more about how to deploy/install service, especially what is the usage of property EventMessageFile in Windows Registry.
Any ideas to my original question?
regards,
George
|
|
|
|
|
I need to add simple mailbox interface to
WinForms application.
There must be message topic and contents panels and maybe folder pane.
Users can browse messages, add attachmets, view attachments, compose new
message, send outgoing message.
Messages are stored in server database tables.
Where to find C# source code for this ?
Andrus
|
|
|
|
|
Check this out http://www.dotnetmagic.com/[^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
hi, just wondering issit possible to link my database connection to a ms access file in my server instead of storing the accessfile on my local computer..
i want to create an c# application to use the database, at the same time, a PHP code to access the same database
|
|
|
|
|
Here[^] and here[^] are some great examples to get you going ...
Regards,
PS Remember Google is your friend
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
hi
i have a userControl, i want in text_changed evet, when user enter value that is not digit, prevent to enter it (only accept digit values), i wrote this code, but does not affect it :
protected override void OnTextChanged(EventArgs e)
{
char[] chars = this.Text.ToCharArray();
foreach (char ch in chars)
{
if (!char.IsDigit(ch))
return;
}
base.OnTextChanged(e);
}
how to solve my problem ?
thanks
|
|
|
|
|
If you want to display a message to user, then use validating event of the textbox. Or else if you want that the user should be able to enter numbers only then supress keypress in the keydown event.
|
|
|
|
|
thanks d@nish
i want to prevent from user to enter non digit characters, then validating event is not useful, also when user copy/paste text into my control, i don't handle it by keypress event, then it is not useful too, can anyBody has a betyer suggestion ?
thanks
|
|
|
|
|
You have to implement both of them the key press event to avoid any non valid carecters entered manually
and DragDrop event to prevent any invalid data dropped.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
But if all you want is get a number from a user, a NumericUpDown is what you need.
Cheers,
Vikram.
The hands that help are holier than the lips that pray.
|
|
|
|
|
thanks Vikram A Punathambekar
yes, that's true.
but i use some formatting for my customControl (it's arabic calender TextBox)
|
|
|
|
|
Here's a bit of Pseudo code... Hope it helps
onTextChanged()
{
if (characterEntered != Digit)
{
Remove(lastCharacter);
}
}
|
|
|
|
|
Inherit the base class and then override the even handler to a "CancelEventHandler" and you're set...
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
Hi all,
I want to validate a given mailAddress whether it exists in that domain or not.Can anyone help me to do this?
thanks in advance
sri
|
|
|
|
|
Not sure what you are asking. There is a VRFY command within the SMTP protocol. Most servers have it turned off, because it is generally considered a security risk to allow email address verification. If it is a trusted server, it might work. Try "telnet yourservernameorIP 25" and type in "vrfy whomever@whatever.com" to see if a server supports it.
http://www.the-welters.com/professional/smtp.html
|
|
|
|
|
There is a component called 'EmailDossier' from http://www.hexillion.com/[^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|