|
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
|
|
|
|
|
I am very new to C#, and i just want to create a .txt file with the current date and time as the filename.
Here is the code i've put together from bits and pieces on the net, and it isnt working
string date = DateTime.Now.ToString("yyyyMMdd_hhmmss");
TextWriter tw = new StreamWriter("{0}.txt", date);
I have also tried
TextWriter tw = new StreamWriter(DateTime.Now.ToString("yyyyMMdd_hhmmss.txt"));
It creates the filename i want, but with the .pxp extension instead of the .txt
Any help would be greatly appreciated
modified on Thursday, August 27, 2009 10:24 AM
|
|
|
|
|
My guess is a typo in your code when it comes to the filename. If you choose the file to have a ".txt" extension i doubt anything in .NET makes it ".pxp" instead.. 
|
|
|
|
|
Try
string date = DateTime.Now.ToString("yyyyMMdd_hhmmss");
TextWriter tw = new StreamWriter(string.Format("{0}.txt", date));
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Thanks for such a hasty reply
I've tried your code:
string date = DateTime.Now.ToString("yyyyMMdd_hhmmss");
TextWriter tw = new StreamWriter(string.Format("{0}.txt", date));
And in the editor (visual express) it underlines the 'date' in string.Format("{0}.txt", date) in red, with an error message below.
I warn you again, i am very green at C# :s
|
|
|
|