|
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++
|
|
|
|
|
Greetings all.
I am working on an application that displays a grid with dropdownboxs in various parts of this grid. Now the entire gird is generated dynamically based on user interaction, so i have put the code required to generate this grid in an .ascx file. Here is my problem:
My grid is generating perfectly, but I am stuck on this on part: I currently have the functionality that is the user changes an item in any of the dropdowns, the form will postback to itself, however, i am unable to get the selectedIndex.Text or Value.
first let me share with you how i create the drop downboxes:
hwriter.WriteBeginTag("select")<br />
hwriter.WriteAttribute("name", i.ToString)<br />
hwriter.WriteAttribute("OnChange", "javascript: " & Page.GetPostBackEventReference(Me, Me.UniqueID))<br />
hwriter.Write(HtmlTextWriter.TagRightChar)<br />
hwriter.WriteBeginTag("option")<br />
hwriter.WriteAttribute("value", "ins~" & intUsers(i).ToString & "~" & intLinkId.ToString & "~" & dt.Rows(x).Item("roleValue"))<br />
hwriter.WriteAttribute("selected", "selected")<br />
hwriter.Write(HtmlTextWriter.TagRightChar)<br />
hwriter.Write(dt.Rows(x).Item("name"))<br />
hwriter.WriteEndTag("option")
This code is rendered to the page from my user control's method:
Protected Overrides Sub Render(ByVal hwriter As System.Web.UI.HtmlTextWriter)
The way the above code is laid out, when a postback occurs, my eventArgs is the value of: 'Me.UniqueID' which does me no good. I have looked through my VS.Net help files and there are examples on how to do this with a button and raising the click event, I can not duplicate this for the onChange event??? Any help as to how I can get the values of the selected item would be greatly appreciated. -Doug
"There is nothing more honorable then doing a thing well"
|
|
|
|
|
Follow-up:
While I don't think that this is the "best" way to accomplish this I have found somewhat of a work around to solve my problem at hand.
Using the supplied code as a reference,
I changed the
Page.GetPostBackEventReference(Me, Me.UniqueID))
to
Page.GetPostBackEventReference(Me, i.toString))
when a user changes the value of a dropdown the method:
Public Sub RaisePostBackEvent(ByVal eventArgument As String) Implements System.Web.UI.IPostBackEventHandler.RaisePostBackEvent
fires and the name of the dropdownbox is passed in as an argument. From here I call another method that excepts a string as a parameter (the dropdown ID) and then use the
Request('dropdownID')
to get the values that are sent via postback.
So that is one possible solution, though if anyone has any input or thoughts they are greatly appreciated!
"There is nothing more honorable then doing a thing well"
-- modified at 12:06 Wednesday 19th October, 2005
|
|
|
|
|
Ok, here's my problem:
I have a windows form program consisting of a parent MDI window and a series of MDI child forms within. Only one form is ever showing, and it is maximized.
On one of these forms, I have placed the AxWebBrowser control.
The first time I use Navigate to get to a URL, everything works great.
But if I then hide the form with the control and reshow it, the next time I Navigate the Web Control appears outside of the form in the upper left hand corner of the desktop (complete out of the MDI frame too).
Any idea what is going on? How can I avoid this?
|
|
|
|
|
Hi All,
I want the visual basic code to transfer the data from a VB application to the online application, similar to a text box in a website. I request you to email the code to tejassoft@yahoomail.com
-- modified at 14:48 Tuesday 18th October, 2005
|
|
|
|
|
If you want code written for you, go to www.RentACoder.com.
If you want help with your code, you've come to the right place. But you have to ask a specific question.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hellow to all ..
i was wondering how i can past data of text that i had copy useing the right mouse click and copy ?
in vb code of course ...
|
|
|
|
|
wow is my question is too much genius to be answered in here ?
-- modified at 13:06 Thursday 20th October, 2005
|
|
|
|