|
Hi there
In order to run WPF applications, you'll need at least .NET 3.0, but if possible, use 3.5, which are both supported by xp as well. If you're a novice developer, have a look at Visual Studio 2008 Express for Windows - it'll give you everything to get started.
http://tinyurl.com/yrxzhk[^]
Happy coding!
Philipp
|
|
|
|
|
C# Express 2008 has built in support for WPF projects - nothing extra required - as has Visual Studio 2008. Most sites with articles on WPF seem to use expression blend for UI designing, but it's not necessary - just easier.
No problems running WPF apps on XP!
|
|
|
|
|
Thank you for your help! ! !
|
|
|
|
|
Hello every body.
My project is C# project on VS2005 .net
How can I catch a key pressed but not like event for a Form , tabControl and other component, for all program.For exapmle:
If my program is started and is pressed keys like F1,F2,F3... and etc. I want to make some function on this Keys pressed.
Thanks for all in advance.
|
|
|
|
|
t_nedelchev wrote: How can I catch a key pressed but not like event for a Form
What do you mean?
only two letters away from being an asset
|
|
|
|
|
I think he means an application wide keypress event handler.
|
|
|
|
|
Have a look here[^]. I haven't tried it but it looks like it'll do what you want.
|
|
|
|
|
|
Hi,
yes you can create system-wide hotkeys.
My Code Rescue article[^] uses them (but does not mention it in the article itself).
There is some P/Invoke involved, calling Win32 functions.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Hello every body.
How can I catch Key press but not like event for a Form or other component.
For exapmle:
if my program is started end is presed keys F1,F2,... and etc. I want to catch this Keys presed.
Thanks for all.
|
|
|
|
|
Set your form's KeyPreview property to true then use the form's KeyDown, KeyPress or KeyUp events.
|
|
|
|
|
Thanks DaveyM69 it works!!!
|
|
|
|
|
I am out of my element when doing graphics. Can someone give me hand.
<br />
<br />
private void draw()<br />
{<br />
if (end == 0)
{<br />
g = pictureBox1.CreateGraphics();<br />
pictureBox1.Image = bitmap;<br />
}<br />
<br />
g.DrawRectangle(new Pen(border, (int)n_size.Value), startX, startY, endX - startX, endY - startY);<br />
<br />
if (end == 1)
{<br />
<br />
bitmap = pictureBox1.Image;
<br />
} <br />
}<br />
<br />
TNX
|
|
|
|
|
Bitmap class has several constructs. Choose the one that meets your needs
|
|
|
|
|
A snippet of code would be helpful.
|
|
|
|
|
|
electriac wrote: pictureBox1.Image = bitmap;
set
pictureBox1.BackgroundImage = bitmap
and Try to use this concept
<br />
Bitmap bm = new Bitmap(600, 600);<br />
Graphics g = Graphics.FromImage(bm);<br />
g.DrawRectangle(new Pen(border, (int)n_size.Value), startX, startY, endX - startX, endY - startY);<br />
pictureBox1.BackgroundImage = bm;<br />
bm.Save("bm.jpg", ImageFormat.Jpeg);<br />
Hope this will help
|
|
|
|
|
How to Import + Export Excel file to MS SQL Server? Write C#.
Not using MS SQL 2005 and .Net 2005.
Help me....
Thanks.
|
|
|
|
|
You can use either Excel object Model or OleDb provider to read and write from excel document. As for sql server, you can use ADO.NET
|
|
|
|
|
I'm beging C#, pls write details code.
|
|
|
|
|
No one will write it for you. If you are new to it I suggest you search google for the terms I mentioned and read documentation
|
|
|
|
|
|
Why would you want to do this? I find processes that don't terminate when I want them to, well, rather annoying.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
There is generally no legitimate need to do this. There are some of the critical operating system processes that are protected like this but user processes shouldn't need to do this.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
is there any datepicker control in .net?if not can anyone tell me the code for the datepicker control to use in the application.
pintoo
|
|
|
|