|
you're welcome.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Hi there
I want to make a custom icon for my application. Does anybody know of some cool icon maker software that I can use?
|
|
|
|
|
|
Second that.
|
|
|
|
|
Does it have to be cool? Paint.NET can export to icon files if you download the Icon-plugin
|
|
|
|
|
Well I just want to have a decent looking icon, that's all. I actually have a 3D model which I created in Blender that I use as the logo for my app. Is there maybe a way to convert this 3d model to an icon?
|
|
|
|
|
Sure just make a render and save it as icon
|
|
|
|
|
I just use Visual Studio for that.
|
|
|
|
|
Remember that Vista/Weven will let you zoom icons to a huge size in explorer (dunno if you can zoom toolbar/menu icons); so you really need to use an image editor instead of a bitmap editor to make results that look professional in newer versions of windows.
The latest nation. Procrastination.
|
|
|
|
|
You could try Axalis Icon workshop. There is a free version somewgwre
CCC solved so far: 2 (including a Hard One!)
|
|
|
|
|
Thanks for all your help guys.
In the end I just used Photoshop to edit an image, saved it to .gif because .gif can be used to show transparency in an image, and I just used this image as my icon and my SplashScreen as well, which looks pretty awesome
|
|
|
|
|
Hi
Environment: Microsoft Visual C# 2008 Express Edition
Windows Edition: Vista
I'm trying to connect to a Paradox DB using ODBC. The connection string I am using is:-
string sConn= "Driver={Microsoft Paradox Driver(*.db )};DriverID=538;Fil=Paradox 5.X;DefaultDir=" +sPath+ ";Data Source=" +sPath+ ";CollatingSequence=ASCII;";
However, when trying to execute the above connection string I receive the following error:-
"ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"
I have done a lot of trawling through the net and haven't been able to find a solution to the problem. Can anyone please provide any info on how to solve this?
Thanks
|
|
|
|
|
|
Finally managed to solve this problem quite simply after hours of messing around with Registry keys and multiple instances of ODBC Administrator.
In the project folder I opened 'projectname'.csproj file in notepad. I then inserted the line:
<PlatformTarget>x86</PlatformTarget>
just before the line - </PropertyGroup>
This forced my application to use the right ODBC drivers etc as I am using a 64-bit machine and solved my problem.
|
|
|
|
|
|
Don't double post, this service is free so don't get impatient after waiting 13 minutes.
No matter how urgent a problem is to you, it is no where near urgent to anyone who is willing to answer your questions. I tell you this because it sometimes puts people off from answering your questions..
|
|
|
|
|
|
Try using Google for a 'low level global keyboard hook', some articles exist on CodeProject as well, so you can even begin here.
I totally didn't understand the part about not making use of an EventHandler.
|
|
|
|
|
EliottA wrote: I totally didn't understand the part about not making use of an EventHandler
I was referring to something like KeyPressEventHandler ... and only making use of a method to get the last key pressed.
For example:
public Form1()
{
TextBox tb = new TextBox();
this.Controls.Add(tb);
tb.KeyPress += new KeyPressEventHandler(keypressed);
}
private void keypressed(Object o, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Return)
{
e.Handled = true;
}
}
Thanks for the info.
Kind regards,
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
Well the keypress is an event (as is keydown and keyup) so you would need an event handler to handle the event .
As for a global keyboard hook, see my above advice as to how to handle those events .
PS instead of casting to a char you could test the condition by doing
if (e.Keycode == Keys.Enter)
e.Handled = true;
check out the Keys Enumeration[^]
|
|
|
|
|
Thanks for the information. I found this[^], which performs a keyboard hook.
Kind regards,
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
Hi all
i have no idea about run services.i googled a lot but i could not find much of help.
plz help me about:-
1)how to use runonce registry service?
2)can i use it from my c# application?
3)i got to know that i need to create a batch file, can that batch file be destroied after it is being executed?
http://www.catch22.net/tuts/selfdel[^]
i have checked this link from this only i got few ideas
4)can the batch file contain task to be performed on shutdown of the system if so can yo help me with a sample?
5)where to place the batch file and when to execute it from my application?
|
|
|
|
|
1) Maybe this registry key will give you a hint: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
2) I don't know how you want to use it from your c# application, but "yes" you can launch a c# application via RunOnce.
3) Why do you need to have a self destructing batch file? Maybe you could let some other part of your app delete the file.
4) Don't know.
5) Please provide more info. I have no clue where you could/should/would place your bat file and I'm even more clueless of when to execute it from your app..
|
|
|
|
|
1)HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce how to invoke this? or call this? or execute this key?
2)can we uninstall a setup created for a c# windows application on shutdown of system using RunOnce.
|
|
|
|
|
1) Have you tried placing a string value here with a path to an executable as value..?
2) I believe that the OS checks the RunOnce (and starts the executables) on startup - not on shut down.
|
|
|
|