|
Don't cross post. See the database forum
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
i wrote the code for progress bar. but i want o pop up my progress bar some thing like message box while progressing. how can i do pop up progress bar in a msg box....
ProgressBar ProBar = new ProgressBar();
private void import(object sender, EventArgs e)
{
if (listView1.Items.Count == 0)
{
this.ProBar = new System.Windows.Forms.ProgressBar();
this.ProBar.TabIndex = 0;
this.ProBar.Maximum = dlg.FileNames.Length;
this.ProBar.Minimum = 1;
this.ProBar.Step = 1;
foreach (string path in dlg.FileNames)
{
FileInfo fileInfo = new FileInfo(path);
listView1.Items.Add(path);
imageList.Images.Add(Bitmap.FromFile(path));
ProBar.PerformStep();
A S E L A
|
|
|
|
|
Create a new form, put the progress bar on that and show the form.
|
|
|
|
|
hi...thx...please can just explane bit more...thx
A S E L A
|
|
|
|
|
Come on! How hard is it to add a new Form to your project, then drag a ProgressBar from the ToolBox and drop it on the Form??
|
|
|
|
|
Hi,
I am trying to build a Network Printer Monitor. I found few softwares available for the same.
I need a print monitor component like dll or user control so that I can use it my application.
Or is there any development kit/API available for it?
Any suggestion?
Thanks,
|
|
|
|
|
Rather than re-invent the wheel, try the printer manufacturer?
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
|
|
|
|
|
Hi,
Could you please anyone tell me how to listen to a network printer?
|
|
|
|
|
What is that you want to do ? Can you explain it clearly?
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
Walk up to it and rest your head against it??
Seriously, how is anyone supposed to answer that question?
What is it you're trying to do by "listening to a network printer"???
|
|
|
|
|
Hello,
I want to search a set of directories that are organized by "LastName FirstName". However, the number of spaces between each name might vary (most only have 1 space, but some have 2 or 3 b/c of a typo). The only search pattern I know of to accommodate this is "LastName*FirstName", but I'd rather use some regex like "LastName[ ]+FirstName", that only allows spaces between the names. Is this possible, or would I just have to get all directories and manually evaluate the regex on each one?
Thanks,
Dybs
|
|
|
|
|
You have to get the list of files and RegEx each one yourself to find the matches. The search options in the GetFiles methods, or whatever else you use, do not support RegEx expressions and there is no search option that will only match "any number of spaces".
|
|
|
|
|
Dave,
I thought as much, but wanted to confirm. Thanks.
Dybs
|
|
|
|
|
You'd wish the 'search pattern' worked like a wildcard, but it doesn't. Well, maybe just barely in that it's limited to the wildcards '*' and '?'. I got what I needed using LINQ and regular expressions:
DirectoryInfo[] jobs =
_dirJobsFolder.GetDirectories();
if (jobs.Length == 0) return null;
Regex r = new Regex("\d\d\d\d"); // Four digits
var joblist = from job in jobs
where r.IsMatch(job.ToString())
orderby job.ToString() ascending
select job.ToString();
_Jobs = (string[])joblist.ToArray();
|
|
|
|
|
I want to built a setup including database of sqlserver2000 with file of *.sql , I install the program whiling auto install my database and table or trigger ect,thank you for help me!
|
|
|
|
|
I have a third party api that seems only to work in a winform, not within a windows service or console program. From the look of the api it seems to be message based.
Is it possible to somehow make a c# winform invisible. Or, how can I add a message queue to my c# windows service to see if that is what is needed?
|
|
|
|
|
How about asking the people who wrote the library??
|
|
|
|
|
jspoonermso wrote: Is it possible to somehow make a c# winform invisible.
Yep, i'd set the Visible property to false
private void FormName_Load(object sender, EventArgs e)
{
this.Visible = false;
}
|
|
|
|
|
Just dropping a form in a service, visible or no, doesn't give the serivce a message pump.
|
|
|
|
|
Hi Dave,
I don't mean to butt in here, but.... The OP is not exactly clear, however the way I understood it was he's got a 3rd party thing that works in a WinForm. He'd like to use it in a service but it doesn't work for reasons unknown to us. He'd settle for using it in a form but would like to hide it and "pretend" it's a service. Of course he can't start, stop, or communicate with it like it is a service but beggars can't be choosers.
BDF
People don't mind being mean; but they never want to be ridiculous.
-- Moliere
|
|
|
|
|
Yes thats correct, my quyestion wasn't clear. My third party component seems only to work in forms and its just my guess that it wants a message pump, because there is an api function with the word 'advise' in it.
I did try setting my visibility to 'False'. If it were c++ there was something like ShowWindow(SW_HIDE) that would do the trick.
|
|
|
|
|
Again, you're guessing. Your best source of information is the people who wrote the library.
|
|
|
|
|
Sorry for my inadequate guessing but i don't have that recourse.
So I have found a way to make my program work in my own inferior wild guessing method.
I have a program that has a message pump is invisible and seems to do the job. My original question was about making the form invisible since setting the visible property didnt work. all figured out now.
|
|
|
|
|
Yeah I know, I didn't bother replying to that portion of the question simply because you're suggestion of contacting the vendor / developer is the best bet, I was just trying to tell him the form has a visibility property which was the first half of his question.
|
|
|
|
|
You would think. I tried that and my form still popped up.
|
|
|
|