|
Hi all
I need to know how to write code when I press btn copy my application or my programme to spacIfic folder on the hard disk.
THANKS.
AMR-CIS
|
|
|
|
|
plz explian the folderbrowserdialog in vbdotnet and give me the one example
venukumar
|
|
|
|
|
sorry i got no time for a longer help...
anyway it's almost like the openfile dialog....
the normal usage is like
Dim fb as new FolderBrowerDialog()
fb.initial path = "what you want"
fb.title = "what you want"
...
Dim DR As DialogResult = fb.show()
'when we are here the dialog it's already been closed (the form will wait for it)
If DR = DialogResult.OK then
If IO.Folder.Exist(fb.selectedpath)
....
End if
consider this above as a pseudocode, i just wrote it as i remember it.
<- true inside to understand outside ->
|
|
|
|
|
I have to create an Windows App (VB.Net) , The user can drag and drop forms and controls on it and map to existing tables to display values.
Now i need to store all the details of Forms and controls including the database mapping some where(XML or SQLServer) ,
so that i can display the Forms with all the controls in my Windows Application as well as in a PDA Device as well.
Chiczzzzz!!!
|
|
|
|
|
how to recived bits by parallel ports to vb?
|
|
|
|
|
Hello friends,
I am working on 1 application where I want to send some data to WebApplication from VB.NET application. The situation is like this:-
There is one Web App developed in ASP.NET. The desktop application is being developed in VB.NET which will be installed at remote computer. If internet is connected to it, then one class will start communicating with the ASP.NET Application i.e. on Web Server(Say, on click event of some button on some form). I want to send(some login info required to get access to web server) & receive(the records from database) the data within these 2 applications without user to open a IE browser. VB itself shud be able to do this. Since its only retriving some data from Web Server in String format, i don't want user to go and do something by opening new IE window...I want to do it using VB.NET only...
Will you please help me?????
Looking forward to see reply....
Regards,
Rohan
|
|
|
|
|
I have a doubit while I am developing kids software,
Is it any way to bring the animated(already) pictures to the form using picture or image box or anyother way.please If u know send me in this mail address.
maniams@hotmail.com
Murali
|
|
|
|
|
There there are many ways for doing it...
one fast and easy way should be using the AxWebBrowser class wich is almost an internet explorer.
what i mean is:
make a page for the login on the server, wich should be smalla enought to fit
in the small form you want to create, then ambed on of this AxWebBrowser class.. it's very easy to use, and you can also find many cool alrticles here on CP.
of course a more cool waw using the AxWebBrowser can be using the document property of the WebBrowser class, and get the acces to the textbox you want directly from the Document Instance....
what you require is: Interop.SHDocVw.dll, AxInterop.SHDocVw.dll (wich you can create from the first one using the appostie visual studio tool) and for the Document class (only if you'll use it) MSHTML.dll.
<- true inside to understand outside ->
-- modified at 23:14 Wednesday 19th October, 2005
|
|
|
|
|
hi
any one tell me
how to change the background color of a messagebox
in vb.net
please give me codding
Md Shamirul Islam
|
|
|
|
|
You can't change anything in a messagebox. You need to write your own to do this.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
you can make a winform,and use delegate function to make a custom MessageBox Form of yourself..
|
|
|
|
|
What on earth are you suggesting ? A delegate for what purpose ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian is right. The MessageBox class is just a wrapper around the Win32 API function MsgBox. You don't have any control over the appearance of the box because it uses the colors set in the Appearance tab of the Display control panel.
You'd have to write your own MessageBox form class that exposes the functionality your want. You'd typically show this form using .ShowDialog and handle the button click events to properly set the form's DialogRestul property. And you don't have to do anything with delegates to do it. Unless you were adding some goofy event support to your form for some reason...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hai..
I am suffering with small problem. I want to embed MS word application in Visual Baisc (VB6) form. I should be able to work all the features of the ms word from the vb form. Please let me know.
Thanks,
Raghavendra
|
|
|
|
|
I need to create an input form like InputBox, but I want to control what gets entered, such as a validation routine, retrieve the data, text, integers, IP address, etc, and be able tell if they hit ok or cancel all within VB6 or MS Access basic. Is this possible without a lot of custom code? If so, does anyone have example code? I am between novice and internediate level VB programmer.
Appreciate any help!
|
|
|
|
|
mmcsherr wrote: but I want to control what gets entered, such as a validation routine, retrieve the data, text, integers, IP address, etc
This is normally done by individual controls, specific to the input purpose. You really wouldn't want to input text into a box (or control) that's expecting an IP address. An IP entry is usually 4 boxes, each expecting a number between 0 and 255 and hitting the period key moves the focus to the next box, whereas text would be in a single box.
mmcsherr wrote: and be able tell if they hit ok or cancel all within VB6 or MS Access basic.
This is done by setting and getting the form's Dialog Result property in VB. I don't know about Access since it's VBA and works quite a bit differently than VB6 or VB.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
For instance, you create a new form, place a text control on the form, I want to pass to the form, the length of the text field, set the limit on the control. I place an OK and cancel button on the form so I can tell that the user has selected to either take the text entered and clicked OK or has cancelled the operation al together. How do I pass an argument to the form, ie, the text length limit and how do I pass the text entered back to the calling routine?
I can create forms and controls and add code to modify behavior, and get the text entered within the control on the form using code within the form, but not sure how to get that text back to the calling routine.
|
|
|
|
|
There's a couple of ways of doing it.
Change the Textbox from "private" to "public" in its declaration. (Not really a good idea!)
Add a public Property to the form that get's/set's the Text value of the still private TextBox on that form. You can add another Property that get's/set's you TextLength.
The Form doesn't pass anything back. It's not it's responsibility to know anything about the code that called it. The form handles just the input of the Text and obey's the limits set by the Properties to add. It's up to the caller to retrieve the data it needs through the form's Properties.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How would I go about writing something that would generate all possible character combinations for a given length and properties, such as uppercase/lowercase/both, numbers/letters/both, etc?
For example, if you put in say, 2 digits, it will generate:
aa
aA
ab
aB
ac
aC
...
Aa
AA
Ab
AB
Ac
AC
...
etc...
Has anyone done this, and if not, how is the best way to do this?
|
|
|
|
|
Nested loops, or recursion would be the two obvious answers. Why do you need to do this ? Are you trying to crack passwords ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hmmm, how would I go about this? Is there an example for nested loops somewhere?
|
|
|
|
|
A nested loop is just something like this
for (int i=0;i
|
|
|
|
|
yes indeed, why would you want to do this - maybe it's something as innocent as a class assignment, but maybe not...
if it is innocent though, an example in VB like the one above - just in case you are sitting there scratching your head - is as follows:
Dim x, y As Integer 'declare x and y - your counting variables<br />
For x = 1 To 20<br />
'anything inside this loop, including the following loop, will be repeated 20 times<br />
For y = 1 To 30<br />
'this loop will repeat anything inside it 30 times<br />
Next<br />
Next<br />
Of course you're not limited to "For" loops; you could use any kind of loop.
And if you're still sitting there scratching your head, then you need to learn a little more about programming in general - buy a book or take a class. btw Good luck with those passwords - I mean that assignment.
sincerely, Brett Peirce - PolerBear
To err is human; To forgive: divine.
-- modified at 0:16 Thursday 20th October, 2005
|
|
|
|
|
After compiling and building executable, how do I make a system install and uninstall feature; ie. through using something like setup.exe? I have never done this before and client wants it this way.
|
|
|
|
|
Advancedinstaller.com would be my recommendation.
Christian Graus - Microsoft MVP - C++
|
|
|
|