|
Turn on KeyPreview for your form. Then handle it's KeyDown and KeyUp events to get the notifications.
|
|
|
|
|
Hi,
I was just wondering if it was possible play system animation (For example: When you copy a file the dialog box appears with the progress bar, the animation just above it) inside a windows form? I've seen this done before in the Delphi programming language and wanted to know if it could be done with VB.NET and if so could someone please point me in the right direction of how to do this.
Thanks
Lloyd J. Atkinson
|
|
|
|
|
You'd have to launch the shell's file copy routine to get it's dialog to show up, then your code would have to wait for the window to pop up, get it's window handle, then you can change it's parent window to a control on your form.
You can use this[^] wrapper library to use the shell API to do that copy, BUT be warned! Since the animation window only pops up if the copy operation exceeds a couple of seconds, you might never see the window show up!
The other possibililty is to write you own file/folder copying code on a seperate thread, then put up your own file copy animation graphic, which, of course, you'd have to make yourself.
|
|
|
|
|
Hi,
Thanks for replying to my question, I will try doing that.
Thanks
Lloyd J. Atkinson
|
|
|
|
|
Hi there
I have a line that is drawn from point A to point B. Point B has a label control.
the line is supposed to be reflected in the opposite direction when it hits the label control
What i am trying to do is to make the label control look like a mirror on the form but in 2D
Any ideas/codes will be highly appreciated
Regards
Yasin
|
|
|
|
|
Why do you keep asking this, instead of taking the advice you've been given ? A libale shows text. If you want it to look like a mirror, you need to draw a mirror, and you may as well do that directly on your form.
As I've told you before.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You really need to abandon this approach. It's never going to get you anywhere. The only way you're going to get a line to bound off a mirror is to figure out the math to calculate a second line based on the angle of your mirror.
So what's the difference between drawing a line on a label control and drawing one on the form?? The simplicity of not having to worry about yet another control is what!!
For the last time, you need to stop what you're doing, figure out how you're going to represent the data and how you're going to manipulate that data. THEN you can write the code to draw the image that's going to represent this "laser and mirrors" data.
A game is nothing more than a visual display of a very specialized, interactive database.
Since you continuously ignore the advice you're givien, any further attempts at asking the same questions will do nothing more than beg for replies of silence.
|
|
|
|
|
Angle of incedence = the angle of reflection.
Thats all you need to know - not sure why you are doing it the way you say though.
Dan
|
|
|
|
|
Im going thru a very weird problem, maybe im not familiar with it...i tried using controlpaint.drawborder3d for a normal form to create a border for the borderless form, and it worked. I'm trying the same thing for an MDI form but it wont work, is there something im missing? im using version 2005
|
|
|
|
|
Without seeing you're painting code (and the sub that it's in), it's impossible to tell you what's going on.
|
|
|
|
|
below is the code im using on the MDI form, i used hte same thing for the normal form on which it worked, but on the MDI it doesnt seem to be working
<br />
Private Sub frmMdi_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint<br />
ControlPaint.DrawBorder3D(e.Graphics, Me.DisplayRectangle,Border3DStyle.Raised)<br />
End Sub<br />
|
|
|
|
|
If this is all you're doing, why are you even doing it?? Just set the form's BorderStyle property and it paints itself.
|
|
|
|
|
i want a borderless form cos i want to design my own titlebar and stuff...tats not the question...the question is why wont it work?
|
|
|
|
|
Any good books for VB.Net 2.0 Unleashed.
Reply to me immediately.
Sivaraman
|
|
|
|
|
sivaraman_sankaranarayanan wrote: Reply to me immediately.
No.
Anyhow, there can only be one VB.NET 2.0 book in the 'Unleashed' series, that stands to reason.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: Reply to me immediately.
No.
But you did only 43 minutes after he posted.
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
sivaraman_sankaranarayanan wrote: Reply to me immediately.
Who do you think you are comming to a free site where all the help you get is from people who volunteer their time, however little it may be, and start demanding that people answer you??
sivaraman_sankaranarayanan wrote: Any good books for VB.Net 2.0 Unleashed.
Go to Amazon.com and type in the search box "visual basic .net unleashed" and find it your bloody self - immediately!
|
|
|
|
|
|
Dave Kreskowiak wrote: find it your bloody self - immediately!
That's funny. Might go into my growing list of potential sig materials :->
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
I'm honored to be in included in those hallowed halls of wisdom!
|
|
|
|
|
There it is
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
|
Hi, I need your help please, would you give me some documentation or articles about RDO connection to database with all its functions and properties.
thank you in advance!!
|
|
|
|
|
Why? RDO is so outdated it's silly.
Are you using VB6, or VB.NET?? If VB.NET, you'd be using ADO.NET for database access. The topic is so large, though, that entire books have been written about it. The only thing that is going to give you "all its functions and properties" is going to be the documentation on MSDN.
|
|
|
|
|
Hii all ,
I am having a form , in that i generated some dynamic controls,and added some design time controls (picturebox) .On picturebox i added the runtime generated controls ,and i am populating the properties of the runtime controls and desinged controls using windows PropertyGrid . Its all working . Lets COnsider the picture box as page .
1) Now the task is i have to save & get (All the controls in form )Page Properties using an xml file using (dataset ,datatables ) using ADO.Net .If i retrieve it it has to look like the orginal one when i am running the form (same order and size of controls )
2) I am able to give spacing left and top of picturebox. i am not able to set right and bottom .i am using Splitter control1 .How to give space for picturebox ,Right and bottom like the one if we click preview in codeproject (space at edges )and How to resize the picturebox when i move splitter control automatically ).
Any idea ,resources ,...
How to do all these Things
Regards
DVSRIRAM
|
|
|
|