|
as topic, can anyone provide coding to clear a picturebox?
|
|
|
|
|
PictureBox1.Image = Nothing
RageInTheMachine9532
|
|
|
|
|
I'm trying to print on my pocket pc. I have a seiko dpu 3445 printer. I've found some driver for it but when i try it on a window ce 3.0 it works very well but when i try it on a window ce 4.20, My pocket send bytes to the printer, the connection is establish but the pocket's frozen and nothing's printing ...
Did someone have driver for that kind of printer or did someone know something about it ?
Thank You
|
|
|
|
|
Everyone,
I need some help in moving xml files generated in a windows console app to an ftp site within the code of the windows console app. Thanks in advance.
Rob Pesce
|
|
|
|
|
I did somthing like this. I have a error message saved to a file in .TXT then that file is sent to a FTP server. Most of the work is done in a class which is called after the file is created in a temp folder on the C: drive. Is this something like what you are looking for?
|
|
|
|
|
Yes, all I need to do is move a XML file from the console application to a folder on our FTP site. I need something simple and dependable to accomplish this task.
|
|
|
|
|
I've been meaning to reply sooner but I've had a battle with my web server. and I haven't won yet.
I have a copy of the class I used for the FTP transfer. It will need some modifications but it may be a start for you. You can find it at ftp://4.10.187.76/FTP%20download%20class/clsFTP.vb just do a copy of the text and past into an empty class file. There are many notes in the file.
|
|
|
|
|
Thanks for all your help. This worked well.
Rob
|
|
|
|
|
How to populate a combo box with a list of workgroup computers?
I am working on a backup program that will transfer files to another computer on the network. I would like to populate a combo box with the names of other computers on the network or in the workgroup. I'm sure there is a way to do it, but I'm not sure how. Any help is greatly appreciated.
|
|
|
|
|
I have to register a dll in my pocket pc and i don't know how to do this. Does it have a regsvr32 or something like this ?
Thank You
Josee
|
|
|
|
|
HI
Any one help me to geting the target path of shortcut using VB 6
OR
any other functionality like Usig API's in VB 6.
if any one knows please help me.
Eman Ali Moughal
|
|
|
|
|
anybody can help me doing url link in textbox.i want to link the website url and email(outlook express as default).
i really need this coding or example.thanks
|
|
|
|
|
ninie_salwa wrote:
anybody can help me doing url link in textbox.i want to link the website url and email
This is a little vague or off target. A text box is something for entering text. If you put a URL or email address in it it won't be clickable.
Do you mean a LinkLabel[^]?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
|
|
|
|
|
I have a general question:
when we want to delete a program we go to control panel...Add remove program.We uninstall the program, we don't delete it by clicking on the delete button.
i make a vb.net application, i used the exe file to start the application.
if i delete this exe file, it will harm my operating system? i mean some dlls could be deleted with the exe or not?
Thank you.
|
|
|
|
|
Goodway wrote:
i make a vb.net application, i used the exe file to start the application.
if i delete this exe file, it will harm my operating system?
If you delete an EXE file using Windows Explorer then all that is deleted is the EXE file, nothing else. If the program is in use Windows will not permit you to delete it because it is still in use.
Goodway wrote:
i mean some dlls could be deleted with the exe or not?
No. Nothing else. When you go to Add/Remove programs in the Control Panel what it is doing is uninstalling the application based on information placed in the system registry on installation. To do this you would need to create a Setup Project to handle the installation.
Does this help?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
|
|
|
|
|
No sorry,
I didn't understand about creation a Setup Project to handle the installation.
|
|
|
|
|
For more information on Setup and Deployment projects see MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vbtskCreatingOrAddingSetupProject.asp[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
|
|
|
|
|
Actually, this is probably a better link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vboriDeploymentInVisualStudio.asp[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
|
|
|
|
|
I am working on a project that i need to print a string and just some database records and i have no idea how to do this on .NET.
Does anyone have just a simple way to do this or an example i can use. I wish it was still like 6.0 that was so easy. Thank you for any help.
PLEASE HELP haaaaaa!!!!
|
|
|
|
|
Add a "PrintDocument" Control to the form...
Private Sub PrintDocument1_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
e.Graphics.DrawString("The String You Want To Print", _
New Font("Arial", 12), _
Brushes.Black, New RectangleF(30, 20, 650, 850))
'30, 20, 650, 850 = these coordinates represent the rectangle in which the give text will be printed
End Sub
Private Sub ToolBar1_ButtonClick(ByVal sender As Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles ToolBar1.ButtonClick
Dim PrintDialog1 As New PrintDialog
PrintDialog1.Document = PrintDocument1
Dim result As DialogResult = PrintDialog1.ShowDialog()
If (result = DialogResult.OK) Then
PrintDocument1.Print()
End If
End Sub
--------------------------
hope this helps you..
Harry
|
|
|
|
|
I have a need to use the ocx controls provided with a software suite to access binary data files. The ocx controls basically amount to get methods which return information stored in the binary file. Works smooth with VB6, but was hoping to use the more robust features of .net.
I have got some methods to work, but methods which return a string fail with a 'type mismatch'. In other words, a method which returns boolean, integer, or double works. Any thoughts on how I could get around this? The ocx is registered, and is currently added by dragging the component onto the form I am working with. Can't get it to work any other way.
Any help is appreciated.
|
|
|
|
|
sbeausol wrote:
The ocx is registered, and is currently added by dragging the component onto the form I am working with. Can't get it to work any other way.
That's the only way to get it to work. You might want to give us some information about where the problem occurs, some code snippets, and maybe a little doc on what the functions of the control are supposed to be returning? You've given us a bunch of 'this works, that works', but nothing on what isn't working.
RageInTheMachine9532
|
|
|
|
|
Some more detailed info:
The ocx filename: xrawfile.ocx
From what I can tell (I don't have the source) it essentially consists of a Class 'XRawfile' which has several get methods. Here is an example of a method which fails in VB .NET type mismatch:
GetCreatorID
long GetCreatorID(BSTR FAR* pbstrCreatorID);
Return Value
1 if successful; otherwise, see Error Codes.
Parameters
pbstrCreatorID A valid pointer to a BSTR. This variable must exist and be initialized to NULL.
Remarks
Returns the creator ID. The creator ID is the logon name of the user when the raw file was acquired.
VB 6 Example
// example for GetCreatorID
BSTR bstrCreatorID = NULL;
long nRet = XRawfileCtrl.GetCreatorID ( &bstrCreatorID );
And here is a method that does work:
GetVersionNumber
long GetVersionNumber(long FAR* pnVersion);
Return Value
1 if successful; otherwise, see Error Codes.
Parameters
pnVersion A valid pointer to a variable of type long. This variable must exist.
Remarks
Returns the file format version number.
VB 6 Example
// example for GetVersionNumber
long nVersionNumber;
long nRet = XRawfileCtrl.GetVersionNumber ( &nVersionNumber );
Again, this method is returning a long (or int in VB .NET)
Thanks for any help
|
|
|
|
|
sbeausol wrote:
long GetCreatorID(BSTR FAR* pbstrCreatorID);
Return Value
1 if successful; otherwise, see Error Codes.
Parameters
pbstrCreatorID A valid pointer to a BSTR. This variable must exist and be initialized to NULL.
Remarks
Returns the creator ID. The creator ID is the logon name of the user when the raw file was acquired.
VB 6 Example
// example for GetCreatorID
BSTR bstrCreatorID = NULL;
long nRet = XRawfileCtrl.GetCreatorID ( &bstrCreatorID );
We still need the code your using in VB.NET so we can see what your doing. How the string your passing is declared, what the function call looks like.
All I can tell you right now is that the string your passing in should be a StringBuilder object.
RageInTheMachine9532
|
|
|
|
|
Here is what I have tried to call it:
Dim Creator as String
XRawfileCtrl.GetCreatorID(Creator)
This results in a type mismatch
Dim Creator as New StringBuilder()
XRawfileCtrl.GetCreatorID(Creator)
This gives me the error:
Value of type 'System.Text.StringBuilder' cannot be converted to 'String'.
Thoughts?
|
|
|
|