|
Dave,
its okay, its understood.
thanks for helping.
|
|
|
|
|
eawedat wrote: I got the answer already by a good guy in here,
Oh, I'm not that good. All I did was read the error message you didn't post and tell you what to do about it.
And, yes, you could have just posted the small code snippet around where the error occured and the exact error messsage and you would have gotten an answer, WITHOUT posting the entire project to the web somewhere.
|
|
|
|
|
|
hi, which event should be used to redraw or update the mainform after minimize/maximize. And in that event which method would be better? (Update(),Refresh() or Invalidate())
thanks in advance
|
|
|
|
|
Hi,
a form will redraw itself automatically when a maximize, restore, or resize occurs; Windows will cause the Paint handler to execute, no need to call anything.
if you want your app's internal state to change on a minimize or maximize, check the Resize event and the Form.WindowState property.
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!
|
|
|
|
|
|
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: ^_^
|
|
|
|