|
DaveyM69 wrote: tested under vista and doesn't work without running as Administrator
Actually I'm glad, otherwise non-elevated programs could randomly jam my CD drive - but no wait, I'm on XP, so they can do it anyway
|
|
|
|
|
Sorry - that post's misleading as Luc and I went off topic a little (I'll edit again to make that clear).
Getting hard drive serial number by similar method doesn't work without elevation.
Locking the CD drive does work without elevation
Work that out, one locks the hardware, the other reads a few bytes of insignificant data. Which one does MS decide to block One day I'll understand their logic... maybe!
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Oh, ok, thanks for clarifying
(but yea it's weird)
|
|
|
|
|
It works on windows 7 RTM,
But with regards to my app, getting the threading right is getting tricky.
|
|
|
|
|
Good morning.
I have the following code:
uipc.tsProgBar.Style = ProgressBarStyle.Marquee;
uipc.tsProgBar.MarqueeAnimationSpeed = 100;
uipc.tsProgBar.Style = ProgressBarStyle.Continuous;
uipc.tsProgBar.MarqueeAnimationSpeed = 0;
If I put a messagebox after the
uipc.tsProgBar.Style = ProgressBarStyle.Marquee;
uipc.tsProgBar.MarqueeAnimationSpeed = 100; ,
then the progress bar with start "scrolling" and stop when the user click Ok on the messagebox.
Any suggestion? Thank you, WHEELS
|
|
|
|
|
If you're doing your processes on the main thread then the gui won't be able to update as you'll have hold of the thread. Look at using a BackgroundWorker so your gui remains responsive.
|
|
|
|
|
|
Good morning.
We are having a challenging time when we switch back and forth to different form windows in our app.
The form gets hidden underneath the other windows and a random window on the task bar (e.g. Outlook) get the focus instead. The user has to then go ALT + Tab and select the proper window.
Does anyone know how to prevent the Form (window) from losing focus?
Thank you, WHEELS
|
|
|
|
|
|
Thank you. I'll give it a try.
|
|
|
|
|
hello,
In my application i am having a textbox amount.
I like to bind my textbox with the result of the query i.e.
"select sum(amount) from tablename".
how i can bind the result of the query to the textbox in windows
application.
plz,help me in doiing this...
Thanks in advance
|
|
|
|
|
|
Sir,
i like to know how to bind the query to the textbox.
plz send me any link regarding this.
|
|
|
|
|
Thank you for sending the link which helps for getting the basics on
windows application.
and more over i got solution to my query also.
textbox1.Text=command.executescalr().tostring()
|
|
|
|
|
Within my Form I am using
this.Load += new System.EventHandler(this.ItemForm_Load);
private void ItemForm_Load(object sender, EventArgs e)
{
myDataSet.Merge(mainForm.newDataSet);
}
However, the merge does not take place. Placing a breakpoint in the debugger shows that the ItemForm_Load never gets hit.
Any pointers would be much appreciated.
|
|
|
|
|
Where are you subscribing to the Load event? If it's after it's loaded it's never going to get called again. If it's not already there, put it in the constructor.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Many thanks for your reply. I had my load subscription within
private void InitializeComponent()
{
}
|
|
|
|
|
Hi,
InitializeComponent() is the one method created and maintained by Visual Studio; you should not edit this method (and, since VS8 or VS9 it normally is in a separate file,
based on C#3.0 partial classes, so you shouldn't even edit the entire myForm.designer.cs files
Having it in there, is technically as good as having it in the Form's constructor, so the problem must be elsewhere. With the little info you have provided, I can't help you any further though.
|
|
|
|
|
I'm confused, why are you manually maintaining the form load event handler. If you double click on the forms title bar VS creates this in the Designer.cs as with any other event wiring. I only ever do this if I have multiple subscribers to a single event or I'm creating a custom event.
|
|
|
|
|
Adn can it be done before calling Socket.Accept() ?
|
|
|
|
|
Just stop calling accept until the number of connections is below your threshold value again?
|
|
|
|
|
or rather I need to limit the maximum number of connections that can make 1 client
p.s. sry for my english
|
|
|
|
|
Based on needing to control the conections per client, you are going to need to establish who the connection is from. What is the clint that is connecting? Can you not manage your interface so that after accepting the connection they must send a message to establish the full session. That way they can [provide additional information so the server knows who is connecting.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Why not just check the source IP? They could still try to spam halfopen connections, but they can't hope to get a connected TCP socket if they fake their source IP, so they won't spoof it if their goal is getting more connections.
|
|
|
|
|
in Apache done that I need, Apache accepting first 300 connections and then he stop accepting new connection before i destroy old connections
i.e. it does not accept a new connection, and immediately disconnect, just an exception when i trying to do 301-th connection
|
|
|
|