|
Hmmm... what's the install log say? No exceptions?
On a looooong shot - refresh services list in services.msc.
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson Because programming is an art, not a science. Marc Clifton I gave up when I couldn't spell "egg". Justine Allen
|
|
|
|
|
If it doesn't show up in the list of services, it didn't install correctly.
This probably means the installer class in your service is broken.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I replaced the installer class, stgill the same. No exceptions either
Stephen Lintott Bsc IT (RAU)
|
|
|
|
|
Without being able to see your installer class code, I don't think we can't help you any further.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John, I have searched the forums for one of your old replies involving drawing a chalk circle on the floor and other things , without success. I so wanted to use it the other day.
Can you repost that here or link to the old reply?
led mike
|
|
|
|
|
|
Hi I have a PDF file.Now I want to open the PDF file and append some more data on it.I tried with binary reader and binary writer.but it didn't work.Can anyone help me out?
|
|
|
|
|
Hi,
Try the following links:
Link #1[^]
Link #2[^]
Link #3[^]
I hope this would be helpful.
John Adams
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
thanx.those links are really helpful.
ARINDAM
|
|
|
|
|
Hello all,
I don't know if i posted on the correct forum (i'm thinking i should use the Architecture forum) but here goes.
There is talk at my workplace that we should move the DAL and Business Layer on a server and just ship the interface. The interface would connect to our server and use the Business Layer.
How can this be done, except of course, web services (and probably WCF)?
I would use Web services, but the project manager does not like that idea.
Thank you.
|
|
|
|
|
thoru wrote: move the DAL and Business Layer on a server and just ship the interface.
That's how most SAAS (software as a service) apps work. You'll need a mechanism to allow the client side presentation layer to communicate with the server; I've been using WCF to do this with much success. I highly recommend it.
/ravi
|
|
|
|
|
Yeah, i want to use WCF too, but i don't think that will happen.
I still hope though
|
|
|
|
|
If you want to implement SaaS, then you need to consider the mechanism through which the data is going to be transported over the wire. If it's anything other than an HTTP/HTTPS format, then you are going to have trouble convincing other companies to accept it because they may have to open up the firewalls - something that a lot of companies are against.
thoru wrote: I would use Web services, but the project manager does not like that idea.
It's not his place to like or dislike the idea. A project manager should not have the final say in technological decisions; that's not what he's there for.
|
|
|
|
|
I am currently opening a new form from my main form, then have that open another form. I can do this using the below code
List list = new List();
list.ShowDialog();
What i want to do is to be able to close the original form and the next form from the last form I open.
so there for
form1->open form2 from form1->open form3 from form2->close form1 and form2 from form3.
any help would be great thanks.
|
|
|
|
|
Hi,
You may try setting the Visible property to False on loading of the Form.
E.g. On Form1_Load, Open Form2 and and set the visible property of Form1 as False.
Similarly do it for the remaining Forms.
I hope this would be helpful.
John Adams
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
IMO you must have FormManager to show and close a form
the FormManager contains lastOpenedForm field, and a method (ShowForm) to show a form
i.e :
1. you call ShowForm to show a particular form
2. before form show check if lastOpenedForm wether null or not, if not null, call to close that form and dispose it
3. set lastOpenedForm with opened form
to do this you have to know about invoking a method and there are some articles about that in CP, or be friend with Google
hope it helps
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
thanks for the answers but I dont think that is what i am after. When I press a button on form3 I want to close form2 and form1. How do i do this? I try to specify there name then .close() but it doesnt work. How do i pass the name of the old forms to the new form?
|
|
|
|
|
Listen,
USE USERCONTROLS
Create only the main form and create as many usercontrols as you wish and load then in the main form, that will solve you problem if i get it right.
You my have to type code from start.
If for some reason you need forms, use child/parent forms method(child forms that load inside a parent form).
Check here codeproject (i don´t recall the link)
Thats me, but, you are the boss
nelsonpaixao@yahoo.com.br
|
|
|
|
|
Hi,
These are printers in printServerA i.e.
printerA
printerB
printerC
...
On machineServerA, I would like to install all the printers which sit on printServerA.
So after installation of printers on machineServerA, when you go to printers And Faxes you see a list of printers which are already installed in printServerA.
you see a list of the folowing printers in machineServerA as follows:
\\printServerA\printerA
\\printServerA\printerB
\\printServerA\printerc
...
How can I do this in code please?
Thanks
|
|
|
|
|
One way to do this would be to create a process that calls the PrintUIEntry function in PRINTUI.DLL (via RUNDLL). See this[^] article.
If you get this to work, please consider publishing a CP article on the subject. Thanks!
/ravi
|
|
|
|
|
Hi,
At present I can get a list of printers on printServerA
The only thing which I require at present is to add these printers to machineServerA
Not sure how this is done.
Any thoughts please?
Thanks
|
|
|
|
|
arkiboys wrote: Any thoughts please?
Um... did you read the article I pointed you to?
/ravi
|
|
|
|
|
Yes, briefly. It seems it is using command line but I would like to use c# code for this.
Thanks
This is what I have at present and the only thing is to add these printers to a remote machine, i.e. machineServerA
This is the code that I run locally (printServerA machine) and gets the installed printers.
PrintDocument prtdoc = new PrintDocument();
foreach (string strPrinter in PrinterSettings.InstalledPrinters)
{
comboBox1.Items.Add(strPrinter);
}
|
|
|
|
|
arkiboys wrote: It seems it is using command line but I would like to use c# code for this.
This is done by executing the command in a subprocess. See this[^] article for instructions.
/ravi
|
|
|
|
|
Hi,
I have been going through the link for command line that you sent initially.
I really do not think that this does what I am after.
Please refer to my first post which is something as follows:
I would like to run a c# code on printServerA which gets the list of printers locally and then it installs these printers on remote machines.
I have done the first part which I get the list of installed printers on printServerA but do not know how to add these printers to remote machines i.e. machineServerA
Thanks for your time
|
|
|
|