|
This harkens back to my Excel.Interop issue.
The book example (and the CD file examples) have just the shortened namespace includes at the top, but I had to use the fully qualified namespace in order to get the syntax errors to go away. I can find nothing in the example code that differs from mine, but they don't seem to have to use the full names.
Still coaxing software out of the can after all these years...
|
|
|
|
|
Where did this book come from? It sounds like it has a mountain of errors in it...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Visual Basic .NET Step-By-Step and then Visual Basic .NET Programming by Peter Aiken.
Taking the (me) out and leaving just () worked, but I had to manually stop the program when I was done, not just by using the x, but by using the stop option in the Debug menu. There are two forms, one has two command buttons, the first command button opens the second form and closes the first, the second command button opens the second form but doesn't close the first. The second form only has a command button for closing itself.
It was kind of strange, I was looking at the MCSD/MCAD Windows Applications book too, and there was a garbage collection demo that stored so many bits into memory and supposidly if I sat there long enough and waited, it would start to destroy them. I waited...and waited...and waited. Nothing.
I just cleaned off my primary drive and reinstalled Win2K about a month ago (I have XP Pro on my laptop).
Still coaxing software out of the can after all these years...
|
|
|
|
|
I have a vb.net windows application which sends out faxes. It works OK but it seems like the Fax service on Win 2000 hangs after a while. It works fine, as soon as the machine is re-booted. I'm not sure whats causing this. Is there some setting to set the fax service right? Or is my code causing probs?
This is my code:
FaxSvr.Connect(Environment.MachineName.Trim)
FaxSvr.Retries = 10
FaxSvr.RetryDelay = 1
Doc = FaxSvr.CreateDocument(DocPath)
Doc.FaxNumber = Global.FaxNumPrefix & Recipient.RcptFax
Doc.SenderFax = Sender.SenderFax
Doc.SenderName = Sender.SenderName
hresult = Doc.Send()
Return True
Thanks.
|
|
|
|
|
Hello,
I make a program in Vb. net with uses crystal reports, and when i install the program in a pc with windows xp or 98 and i try to view the crystal report and exception raises,
Cannot find KeycodeV2.dll, or invalid Keycode.
Anywone know how to fix this?
Thanks, hebert.
|
|
|
|
|
Try to read the following article from http://support.businessobjects.com/library/kbase/articles/c2011205.asp or use your error message to search in www.google.com
Roath Kanel
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
hello
can you please tell me how to open and extract the data from a notepad and then save the data into it
without the system prompt me a message to overwrite the existing notepad
or if is possible please give me a link so that i can study it more deeply
thank you in advance and may you have a good day
Gary
|
|
|
|
|
This doesn't make any sense. Are you talking about controlling the Notepad application from an application that you are writing?
There is no such thing as "overwriting the existing Notepad". Notepad is an application, you can't overwrite it. Are you talking about copying and pasting text?
You going to have to be a bit more clear on what your trying to accomplish.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
sorry about that
i'll try to make it clear this time
im trying to read some value that is available inside a .txt file
then the application will do some calculation
later the result of the calculation will be appended to a new .txt file
example i read value from info.txt then save the output in out.txt
i hope this is clearer than the one i write before
sorry again that i make it so confusing
please if there is a link that i can refer, please tell me
thank you
Gary
|
|
|
|
|
You're talking about simply reading and writing values to/from text files. See this[^] on MSDN for a quick example.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
wow.. it works already and this link provide me more information than i require
thanks Dave
this helps me a lot
thank you again for your help
Gary
|
|
|
|
|
I was wondering if anybody knew how to put controls such as (listview, and a monthcalendar) on a mdi parent window and have it stay behind the child forms that open. Because for space saving i was wanting to put these controls on the Main window(MDI Parent) for easy access when child windows weren't in front. But when I open a child window the controls on mdiparent overlap the child form. Is there a quick way to prevent this from happening. I'm sure there is>
Thanks in advance
|
|
|
|
|
There is no way to get the controls to be on top of the child windows, but you can change the size of the MDIClient area in the MDIParent form. This will allow you to put your controls on the Parent Form above the MDIClient area. It's buried and the documentation on changing this is non-existent because it involves classes and functions that are only meant to be used internally to the .NET Framework.
I'll write something up when I get home tonight.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
What I'm trying to do , is not have them go on top of the child windows,as they will only be necessary when they are visible. It's having a main window with a listview and a calendar control on it, then when I open a child window I don't want those visible, currently when I open a child window, the Controls on the main window display on top of the child windows, and this is what i would like to prevent. Thanks , and I must say, when you go through the message board, you are one of the primary problem solvers, good job, and thanks.
|
|
|
|
|
I got you email with the images. It looks like the calendar control will take up a bunch of screen space. When you not using the controls, why not just set their Visible properties to False? Or, better yet, just display the controls in a modal dialog box when you need them and get any data you need from that?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
The reason I was wanting to put those controls in the main window , is most people that i'm making this program for, only use 800 x 600 screen settings and opening a second child window takes up too much space inside the main window with my current program version. So figured if i put them on the back of the main window they'd always be visible if needed, and there when not needed. Thanks for your help, probably go with the visible property route, i had thought about that, but wasn't certain if this would be the best route.
|
|
|
|
|
Putting them on top of the Child windows would probably confuse them. Looking at other applications, the standard is to put controls that are used only once in a while onto a modal dialog form to get input like that. Just having a control pop up in the middle of their document would be confusing.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
The thing is I'm not wanting the controls to show through the child window.. If you were to create a mdi window and throw some controls on it, then have a child window open inside that mdi window. The controls that you put on the mdi window show through the Child window, as if the the controls are infront of the child window you just opened. I was trying to prevent this, easily, but taking your suggestion. I'm setting the visibilty property of the controls that are on the main window to false when a mdi child window opens, and setting them back to true when the child window closes.
|
|
|
|
|
Currently i am building a windows service.
1. How to make a windows service that its icon display on the task bar?
2. How to show a form when we click the icon?
3. I have problem when starting the windows service, if the service have a windows component such as notifyicon, timers etc. If i am using timers from windows component instead of system.timers.timers, the error "System.Reflection.TargetInvocationException" will come out when we start the service. Could the windows service use windows component?
4. does the "timers" is elapsed every time according to the interval or just elapse once for the first time when the timers is enabled?
Thanks...
Learning .NET
|
|
|
|
|
mythinky wrote:
1. How to make a windows service that its icon display on the task bar?
Your Service would have to include a Form that you can put a NotifyIcon component on. When you service is installed, you'll have to go into the Services Control Panel and tag your service and "Allow interaction with Desktop". Make sure your Form's ShowInTaskbar property is set to False and it's Style is set to Minimized.
mythinky wrote:
2. How to show a form when we click the icon?
In the, say, double-click event handler for the NotifyIcon component, just do Form1.Show(), or whatever you want to call your form.
mythinky wrote:
3. I have problem when starting the windows service, if the service have a windows component such as notifyicon, timers etc. If i am using timers from windows component instead of system.timers.timers, the error "System.Reflection.TargetInvocationException" will come out when we start the service. Could the windows service use windows component?
It can use Windows components, but you have to have a host form to put the components on AND tag your service as "Allow interaction with Desktop" in the Services Control Panel.
mythinky wrote:
4. does the "timers" is elapsed every time according to the interval or just elapse once for the first time when the timers is enabled?
When you Enable the timer, it will NOT fire the Elapsed event until the specified interval has elapsed first. It will continue to fire Elapsed events every Interval milliseconds, wheather your ready for them or not, until the timer is no longer enabled.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
It can use Windows components, but you have to have a host form to put the components on AND tag your service as "Allow interaction with Desktop" in the Services Control Panel.
What do you mean by the "Host Form"? How is the form being coded as a host form? Do we need to have another new project solution, or just having the form in the windows service solution?
Thanks a lot to you. You have helped me a lot in my assignment.
Learning .NET
|
|
|
|
|
mythinky wrote:
What do you mean by the "Host Form"?
This is merely the form that you drag and drop the NotifyIcon component on. You don't have to change the form to be a "host form" for a control. You don't need to have another solution, just add the Form to the Service Solution.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
As you say, we need it set the "Allow interaction with Desktop." for displaying windows form. I have tried it out.
It works fine and ok.
However, Can we set "Allow interaction with Desktop." automatically when we install the service?
|
|
|
|
|
No, using the VS Installer project, it has to be done after the service is installed.
It can be done using other installer packages, like Wise Package Studio.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
is the Wise Package Studio built in with VS.Net?
Learning .NET
|
|
|
|