|
Thank you very much for your comments.Anyway, can't I use MSAgent for that ? I mean is there any method join C# and 3D max or Poser.
Nothing's Forgotten, nothing's ever forgotten !
|
|
|
|
|
i need to send my query string value from my default.aspx?qs=123&qs2=456 to custom error page when there is error on page. on custom error i want to receive query string value from default.aspx and display error message depand on query string value.
appreciate your help
ap_sa
-- modified at 12:28 Monday 13th February, 2006
|
|
|
|
|
And the question is...?
---
b { font-weight: normal; }
|
|
|
|
|
I only started coding c# a week ago, and I’m a little stuck! I'm making an application where the user has 1 second to click the mouse button once they see movement on the screen.
My problem is: what is the best way of waiting until the mouse button has been pressed without hogging the system resources? If I use a sleep then the onclick method for the mouse click won’t be called until the sleep has finished I assume?
I need the time at which the mouse button was pressed, therefore sleeping for 1 second and then seeing if the mouse was pressed isn't good enough. Currently the application was coded by someone else, and it uses a while loop until the time equals 1 second later. Obviously this allows the application to receive messages and make the onclick method call occur but it also uses all the processing resources.
Further to this, is there a way of getting a time stamp of when a message occurred? This would be more accurate than getting the time once the on click method has been called.
Any help with this would be greatly appreciated!
Nick
|
|
|
|
|
If I've understood you correctly, then I suggest you something like this:
remember when timer was started in absolute values.
use another thread loop with Join(interval) method, where interval = precision of time measurements, that you need. You can use timer component in the form to implement this simply. On each timer tick - check, is it second already.
onClick event must first remember what time is now, in absolute values, stop timer, then calculate difference between start and stop time.
Should work.
Robin Panther
|
|
|
|
|
Thanks Robin, I was thinking of something like that, I just wasn't sure if there was something similar to the sleep method which allowed messages to pass. I'll have a go at implementing it that way.
Many thanks
Nick
|
|
|
|
|
Put a timer on the form that fires after a second. Then you just have to sit back and wait for events, and see if the click or tick fires first.
---
b { font-weight: normal; }
|
|
|
|
|
Hi all,
im looking for a file upload manager for C#. something that will allow large uploads of files to a website (separate from the site experience) as well as mange the upload so it can resume if connection has been terminated. Anyone know of anything out there that does this?
thanks
mcm
|
|
|
|
|
Hey,
Why don't u use file uploader that coming with VS 2005. Using that v can upload more than 10 MB.
Nothing's Forgotten, nothing's ever forgotten !
|
|
|
|
|
unfortunately we are developing for v1.1 currently and cannot use v2 stff. I found a good article on Dime buffered uploads that im going to play with today though. Also we need to be able to upload files that range from 10 - 500 megs, and we need something that handles those pesky IIS timeouts.
thanks
mcm
|
|
|
|
|
in my mouse move event how can I tell if the user is holding down the shift key?
|
|
|
|
|
|
Thank you! that worked.. before your response I found a few crazy methods of importing user32.dll etc. This is exactly what I was hoping for. I am a bit confused as to how it works..
what is Control ? the current control in focus? I was expecting using sender or e to find the data.
if (Control.ModifierKeys == Keys.Shift) <br />
{<br />
<br />
.........<br />
<br />
}
|
|
|
|
|
ModifierKeys is a static property - which just calls the Win32 API "GetKeyState".
This doesn't require any state information (like 'sender' or 'e') - and can basically be called from anywhere at any time.
|
|
|
|
|
i want to convert from RGB to LUV color space
how can i do that?
haitham
|
|
|
|
|
A great resource for colour conversions is easyRGB. You will have to convert the colour to XYZ first.
|
|
|
|
|
|
I'm trying to create a form that is full screen. I checked out the CodeProject article
http://www.codeproject.com/csharp/fullscreenmode.asp[^]
When run, the taskbar/Start menu is still viewable though. I want to cover the entire screen completely.
I tried using:
f.SetBounds(0, 0, Screen.PrimaryScreen.Width, <br />
Screen.PrimaryScreen.Height, BoundsSpecified.All);
No change. I tried using
f.Bounds = Screen.PrimaryScreen.Bounds;
No change. I tried getting the PrimaryScreen.Bounds, adding to its height, then setting that to my form, but still no change. When I set the bounds, then look at the forms actual Bounds property, I can see that it is 35 less than the screen height.
I've set the WindowState=Maximized and TopMost=true on the form. STILL the taskbar remains visible.
Anything else to try that I am missing?
Thanks,
|
|
|
|
|
not so obvious but this is the missing line
this.MaximizeBox = false;
|
|
|
|
|
Thanks for the reponse.
Hmm, well I just tried to set that; in the code AND in the properties of the form. I even set it for both forms in that example. No change at all. Still showing the Start menu.
|
|
|
|
|
This works for me:
<br />
private void Form1_Load(object sender, System.EventArgs e)<br />
{<br />
this.FormBorderStyle = FormBorderStyle.None;<br />
this.Bounds = Screen.AllScreens[0].Bounds;<br />
TopMost = true;<br />
}<br />
No taskbar or start menu visible at all
Hope this helps.
|
|
|
|
|
Thanks. I guess both of you guys were right; including the example here on CodeProject. It seems that the taskbar on one of the machines I am developing on, which has a dual-monitor and uses NVidia software to make it go across both screens, must be doing something to not let another window on top of it.
I ran the same code on another machine without that same software and it was fullscreen just like I wanted. Thanks!
|
|
|
|
|
hi everyone,
I would need to get access to third party snapins in MMC so I can read information from these MMC snapins and store this information somewhere else into a text file. I don't need to modify this information, I only need to retrieve it, so I don't need to work with MMC manually in GUI form but can create reports in text file form from these MMC snapins. Do you have any idea if there is a way how to get this information from 3rd party snapins programatically (if possible in a consistent way) ?
thanks & regards.
krompo
|
|
|
|
|
|
OK, sorry - won't happen again.
|
|
|
|