|
Gud day everyone..
There are only two common suggestions in the internet on how to inform the users when program is busy : 1. backgroundworker 2.threading...
i want to make my own modal window with animated GIF in it. said window will display during processing and it will stop after the process. how will i do it? can anyone give me a sample....
thanks in advance.xxx
|
|
|
|
|
I have done something similar, which was a borderless progress form with an animated gif, and a background worker on it. You just hook up to the DoWork and RunWorkerCompleted events as normal.
Having said that, although it worked fine in a small scale application, for a larger app I ended up writing my own threading code. Ideally the window should be modeless. But then you have to intercept all mouse and keyboard messages to ensure the end user cannot click elsewhere.
|
|
|
|
|
The window should be modal to prevent the user from making any action while it is processing... I tried to making a separate window with animated GIf and called it under another thread but it still doesnt work..
can you give me a sample how will i do it..
thanks in advance..xxx
|
|
|
|
|
Could be a largish code chunk. I'll see if I can slim it down. The key though is that the window is launched on the main GUI thread, but performs it's work on a secondary thread.
|
|
|
|
|
Email on it's way to you. It was far to big to post here.
Maybe one day I will write it up as an article.
|
|
|
|
|
Got a much better Wait Window available now. Posting the code to you made me think about what I had and I have vastly improved on the code now.
I have posted it as an Article A simple wait window[^].
|
|
|
|
|
You posted a lot,,, it really helps and I want to thank you for this effort...
thank you againxxx
|
|
|
|
|
Your welcome. It helped me to clean up my code as well.
|
|
|
|
|
|
Thank you very much for the link,,, i havent tried it yet but i really appreciate the efforts you mad...
thank you again.xxx
|
|
|
|
|
hi,
i'm creating menu and i want disable toolStripMenuItem after i click it so that the form could only open once and enable after i close button ..how to do this plz helpmodified on Wednesday, March 3, 2010 4:46 AM
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:42am.
|
|
|
|
|
but i want it programmatically in code because every time the user click the menuItem the form is loaded it disable the menuItem evrytimthe form is close it will enable the menuItem
|
|
|
|
|
Good morning,
I just stubled into a decent problem.
We develop DLL's with C# and VB7. Now my colleague wanted to use one of my C# dll's in his VB7 project.
Unfortunately the IDE does not bring up the events...
Here is the code of the event implementation:
public delegate void EmailAttachmentAmountChangedHandler();
[Browsable(true)]
public event EmailAttachmentAmountChangedHandler EmailAttachmentAmountChanged;
protected virtual void OnEmailAttachmentAmountChanged()
{
if (EmailAttachmentAmountChanged != null)
{
EmailAttachmentAmountChanged();
}
}
Nothing decent...
Please would somebody be so kind and tell me why the event is not visible?
Is that a mistake I made or just VS2008...
Thanks a lot in advance,
kind regards
Hoernchenmeister
|
|
|
|
|
VB7?? Are you saying that your component was written in Visual Studio 2008 and he's using VB.NET 2002/2003??
There is one problem that I see. If you code is going to run in his process (and not a seperate process,) it's going to have to be able to run under .NET 1.x instead of 2.0. You cannot load two different versions of the .NET CLR in the same process.
|
|
|
|
|
Sorry for the confusion, I was accidentally referring to VB.NET as VB7...
But nevertheless, I will go check the versions used to compile the projects.
Anyway, thanks a lot for the idea Dave, I really appreciate that.
|
|
|
|
|
Hi,
my font style is courier view i want to display the string m4 like m³ in my reports. i used character map tool to make power 3 like m³ but i am unable to make that power 4.
regards,
selva
|
|
|
|
|
Hi,
I need to find a word using regular expression in c#.
Can anybody have an idea? Please..
Thanks,
Regards,
Periyasamy
|
|
|
|
|
string s="sanforjackass";
s.Contain();
|
|
|
|
|
Use Regex and MatchCollection class from System.Text.RegularExpression... sample code here
Pattern "\w" stand for word ....
Read here http://www.regular-expressions.info/charclass.html
Regex obj = new Regex("\\w+");
MatchCollection c = obj.Matches("3 idiots is an wonderful movie");
foreach (Match m in c)
{
MessageBox.Show(m.Value);
}
Thanks,
Arindam D Tewary
|
|
|
|
|
Hi,
Thanks to your reply.It helps me.
Regards,
Periyasamy.
|
|
|
|
|
hi,
how can i convert or cast datagridview row to datarow?
|
|
|
|
|
For some reason this code is not writing to my excel file and I can't figure out why.
I have a premade template and it has a worksheet in it called bsheet and I also took and selected my range and hit insert/name and gave it the name btable
I then put this in a button click event to test but the xls is not effected what might i be doing wrong?
private void button1_Click(object sender, EventArgs e)
{
string connectionString = "Provider=Microsoft.Jet.OleDb.4.0; data source=c:\\BookList.xls; Extended Properties=Excel 8.0;";
string selectString = "INSERT INTO btable VALUES('12345′, 'Acme Inc', 'Acme Way', 'CA')";
OleDbConnection con = new OleDbConnection(connectionString);
OleDbCommand cmd = new OleDbCommand(selectString, con);
try
{
con.Open();
cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
finally
{
con.Dispose();
}
} modified on Wednesday, March 3, 2010 1:52 PM
|
|
|
|
|
well i got it sorta working. The thing I'm having trouble with is one of the cells is merged
D to G
if i insert values "('A,'B','C','D')"; i get an error saying it can't expand.
I also tried putting '' for column e,f,g and that didn't work either.
Any idea how to insert a value into the merge cell? i tried to find some info online about this but came up try.
|
|
|
|
|
I have developed a C# application. The application's main page contains a Web-Browser control. I will load a dynamic website in that web-browser control.
The application runs on the task bar. The application works fine for some time, after that it hangs. I am not able to continue to work on that application. Finally i have to kill the process and then have to restart to work on that.
The dynamic website is also developed using asp.net, C#.
My Question is
Is there any possibility that my application hangs due to some problems in dynamic website?.
I have checked the win application code, i couldn't find any hanging loops.
Please advice on the various possibilities that an application can hang.
Thanks,
Balaji.R
|
|
|
|