Hi,
I have a textbox with the words "Enter your name here" inserted as default
text - At the moment, to remove this the user must highlight all the text
and delete before they type in their name - I've seen sites where all this
text dissapears as soon as the user clicks on it - how do I do that ?
Thanks
Jane 10 9051
you can use the GotFocus event of the textbox
"Jane Sharpe" <JS**@hotmail.c om> wrote in message
news:bu******** **@hercules.bti nternet.com... Hi,
I have a textbox with the words "Enter your name here" inserted as default text - At the moment, to remove this the user must highlight all the text and delete before they type in their name - I've seen sites where all this text dissapears as soon as the user clicks on it - how do I do that ?
Thanks
Jane
While I probably wouldn't normally hardcode a string literal, this should
give you the idea to get started.
Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As
System.EventArg s) Handles TextBox1.GotFoc us
If TextBox1.Text = "Enter your name here" Then
TextBox1.Text = ""
End If
End Sub
Or, to keep the default text there until they start typing:
Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As
System.EventArg s) Handles TextBox1.GotFoc us
If TextBox1.Text = "Enter your name here" Then
TextBox1.Select All()
End If
End Sub
"Jane Sharpe" <JS**@hotmail.c om> wrote in message
news:bu******** **@hercules.bti nternet.com... Hi,
I have a textbox with the words "Enter your name here" inserted as default text - At the moment, to remove this the user must highlight all the text and delete before they type in their name - I've seen sites where all this text dissapears as soon as the user clicks on it - how do I do that ?
Thanks
Jane
Thanks, I was going to ask for a pointer..... now I'm going to ask for
another !
I get this error...
Handles clause requires a WithEvents variable
Jane
"Philip Rieck" <st***@mckraken .com> wrote in message
news:eH******** ******@tk2msftn gp13.phx.gbl... While I probably wouldn't normally hardcode a string literal, this should give you the idea to get started.
Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As System.EventArg s) Handles TextBox1.GotFoc us If TextBox1.Text = "Enter your name here" Then TextBox1.Text = "" End If End Sub
Or, to keep the default text there until they start typing: Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As System.EventArg s) Handles TextBox1.GotFoc us If TextBox1.Text = "Enter your name here" Then TextBox1.Select All() End If End Sub
"Jane Sharpe" <JS**@hotmail.c om> wrote in message news:bu******** **@hercules.bti nternet.com... Hi,
I have a textbox with the words "Enter your name here" inserted as
default text - At the moment, to remove this the user must highlight all the
text and delete before they type in their name - I've seen sites where all
this text dissapears as soon as the user clicks on it - how do I do that ?
Thanks
Jane
To create the "GotFocus" handler automatically, do this: drag your textbox
to the form, and give it a name (in the designer). The default name will be
TextBox1 for the first text box.
Go to the code view, and in the left-hand dropdown just above the code,
select "TextBox1", or whatever you named it. Then in the righ-hand
dropdown, select the "GotFocus" item (it will have a little lightning bolt
next to it). This will create the Shell of the event handler.
In the code I sent, it assumes that the text box was named TextBox1. If it
wasnt, change the part that says
.... "Handles TextBox1.GotFoc us "
To "Handles TheRealNameOfMy TextBox.GotFocu s".
By named, I mean this : in the designer of your form, select the text box.
Look in the properties window and find the "(name)" property. Whatever is
entered there is the "name" of the text box that I keep referring to.
"Jane Sharpe" <JS**@hotmail.c om> wrote in message
news:bu******** **@sparta.btint ernet.com... Thanks, I was going to ask for a pointer..... now I'm going to ask for another !
I get this error...
Handles clause requires a WithEvents variable
Jane
"Philip Rieck" <st***@mckraken .com> wrote in message news:eH******** ******@tk2msftn gp13.phx.gbl... While I probably wouldn't normally hardcode a string literal, this
should give you the idea to get started.
Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As System.EventArg s) Handles TextBox1.GotFoc us If TextBox1.Text = "Enter your name here" Then TextBox1.Text = "" End If End Sub
Or, to keep the default text there until they start typing: Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As System.EventArg s) Handles TextBox1.GotFoc us If TextBox1.Text = "Enter your name here" Then TextBox1.Select All() End If End Sub
"Jane Sharpe" <JS**@hotmail.c om> wrote in message news:bu******** **@hercules.bti nternet.com... Hi,
I have a textbox with the words "Enter your name here" inserted as default text - At the moment, to remove this the user must highlight all the text and delete before they type in their name - I've seen sites where all this text dissapears as soon as the user clicks on it - how do I do that ?
Thanks
Jane
And there probably lies my problem, I'm not developing in studio, just
writing code !
"Philip Rieck" <st***@mckraken .com> wrote in message
news:uj******** ******@TK2MSFTN GP12.phx.gbl... To create the "GotFocus" handler automatically, do this: drag your textbox to the form, and give it a name (in the designer). The default name will
be TextBox1 for the first text box.
Go to the code view, and in the left-hand dropdown just above the code, select "TextBox1", or whatever you named it. Then in the righ-hand dropdown, select the "GotFocus" item (it will have a little lightning bolt next to it). This will create the Shell of the event handler.
In the code I sent, it assumes that the text box was named TextBox1. If
it wasnt, change the part that says ... "Handles TextBox1.GotFoc us " To "Handles TheRealNameOfMy TextBox.GotFocu s".
By named, I mean this : in the designer of your form, select the text box. Look in the properties window and find the "(name)" property. Whatever is entered there is the "name" of the text box that I keep referring to.
"Jane Sharpe" <JS**@hotmail.c om> wrote in message news:bu******** **@sparta.btint ernet.com... Thanks, I was going to ask for a pointer..... now I'm going to ask for another !
I get this error...
Handles clause requires a WithEvents variable
Jane
"Philip Rieck" <st***@mckraken .com> wrote in message news:eH******** ******@tk2msftn gp13.phx.gbl... While I probably wouldn't normally hardcode a string literal, this should give you the idea to get started.
Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As System.EventArg s) Handles TextBox1.GotFoc us If TextBox1.Text = "Enter your name here" Then TextBox1.Text = "" End If End Sub
Or, to keep the default text there until they start typing: Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As System.EventArg s) Handles TextBox1.GotFoc us If TextBox1.Text = "Enter your name here" Then TextBox1.Select All() End If End Sub
"Jane Sharpe" <JS**@hotmail.c om> wrote in message news:bu******** **@hercules.bti nternet.com... > Hi, > > I have a textbox with the words "Enter your name here" inserted as default > text - At the moment, to remove this the user must highlight all the text > and delete before they type in their name - I've seen sites where
all this > text dissapears as soon as the user clicks on it - how do I do that
? > > Thanks > > Jane > >
when defining your textbox add withevents keyword:
private WithEvents myTextbox As TextBox
other solution:
private myTextbox As TextBox
Public Sub New()
addHandler myTextbox.GotFo cus, AddressOf TextBox1_GotFoc us
End Sub
Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As
System.EventArg s)
....
End Sub
or something that looks alike ;-)
"Jane Sharpe" <JS**@hotmail.c om> wrote in message
news:bu******** **@titan.btinte rnet.com... And there probably lies my problem, I'm not developing in studio, just writing code !
"Philip Rieck" <st***@mckraken .com> wrote in message news:uj******** ******@TK2MSFTN GP12.phx.gbl... To create the "GotFocus" handler automatically, do this: drag your
textbox to the form, and give it a name (in the designer). The default name
will be TextBox1 for the first text box.
Go to the code view, and in the left-hand dropdown just above the code, select "TextBox1", or whatever you named it. Then in the righ-hand dropdown, select the "GotFocus" item (it will have a little lightning
bolt next to it). This will create the Shell of the event handler.
In the code I sent, it assumes that the text box was named TextBox1. If it wasnt, change the part that says ... "Handles TextBox1.GotFoc us " To "Handles TheRealNameOfMy TextBox.GotFocu s".
By named, I mean this : in the designer of your form, select the text
box. Look in the properties window and find the "(name)" property. Whatever
is entered there is the "name" of the text box that I keep referring to.
"Jane Sharpe" <JS**@hotmail.c om> wrote in message news:bu******** **@sparta.btint ernet.com... Thanks, I was going to ask for a pointer..... now I'm going to ask for another !
I get this error...
Handles clause requires a WithEvents variable
Jane
"Philip Rieck" <st***@mckraken .com> wrote in message news:eH******** ******@tk2msftn gp13.phx.gbl... > While I probably wouldn't normally hardcode a string literal, this should > give you the idea to get started. > > Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As > System.EventArg s) Handles TextBox1.GotFoc us > If TextBox1.Text = "Enter your name here" Then > TextBox1.Text = "" > End If > End Sub > > Or, to keep the default text there until they start typing: > Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As > System.EventArg s) Handles TextBox1.GotFoc us > If TextBox1.Text = "Enter your name here" Then > TextBox1.Select All() > End If > End Sub > > > "Jane Sharpe" <JS**@hotmail.c om> wrote in message > news:bu******** **@hercules.bti nternet.com... > > Hi, > > > > I have a textbox with the words "Enter your name here" inserted as default > > text - At the moment, to remove this the user must highlight all
the text > > and delete before they type in their name - I've seen sites where all this > > text dissapears as soon as the user clicks on it - how do I do
that ? > > > > Thanks > > > > Jane > > > > > >
Thanks for all this help, but I just CANT get this all to gel.
With this test code, I get the error
BC30590: Event 'GotFocus' cannot be found.
Heres my test code:-
<%@ Page Language="VB" %>
<script runat="server">
Private WithEvents TextBox1 As TextBox
Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As
System.EventArg s) Handles TextBox1.GotFoc us
If TextBox1.Text = "Enter your name here" Then
TextBox1.Text = ""
End If
End Sub
</script>
<html>
<body>
<form Id="frmForm1" runat="server">
<p>
<asp:TextBox id="TextBox1" runat="server" BorderStyle="So lid" Enter your name here</asp:TextBox>
</p>
</form>
</body>
</html>
"Dominique Vandensteen" <domi.vds_inser t@tralala_tenfo rce.com> wrote in
message news:O2******** ******@TK2MSFTN GP10.phx.gbl... when defining your textbox add withevents keyword: private WithEvents myTextbox As TextBox
other solution:
private myTextbox As TextBox Public Sub New() addHandler myTextbox.GotFo cus, AddressOf TextBox1_GotFoc us End Sub
Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As System.EventArg s) ... End Sub
or something that looks alike ;-) "Jane Sharpe" <JS**@hotmail.c om> wrote in message news:bu******** **@titan.btinte rnet.com... And there probably lies my problem, I'm not developing in studio, just writing code !
"Philip Rieck" <st***@mckraken .com> wrote in message news:uj******** ******@TK2MSFTN GP12.phx.gbl... To create the "GotFocus" handler automatically, do this: drag your textbox to the form, and give it a name (in the designer). The default name will be TextBox1 for the first text box.
Go to the code view, and in the left-hand dropdown just above the
code, select "TextBox1", or whatever you named it. Then in the righ-hand dropdown, select the "GotFocus" item (it will have a little lightning bolt next to it). This will create the Shell of the event handler.
In the code I sent, it assumes that the text box was named TextBox1.
If it wasnt, change the part that says ... "Handles TextBox1.GotFoc us " To "Handles TheRealNameOfMy TextBox.GotFocu s".
By named, I mean this : in the designer of your form, select the text box. Look in the properties window and find the "(name)" property.
Whatever is entered there is the "name" of the text box that I keep referring to.
"Jane Sharpe" <JS**@hotmail.c om> wrote in message news:bu******** **@sparta.btint ernet.com... > Thanks, I was going to ask for a pointer..... now I'm going to ask
for > another ! > > I get this error... > > Handles clause requires a WithEvents variable > > Jane > > "Philip Rieck" <st***@mckraken .com> wrote in message > news:eH******** ******@tk2msftn gp13.phx.gbl... > > While I probably wouldn't normally hardcode a string literal, this should > > give you the idea to get started. > > > > Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As > > System.EventArg s) Handles TextBox1.GotFoc us > > If TextBox1.Text = "Enter your name here" Then > > TextBox1.Text = "" > > End If > > End Sub > > > > Or, to keep the default text there until they start typing: > > Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As > > System.EventArg s) Handles TextBox1.GotFoc us > > If TextBox1.Text = "Enter your name here" Then > > TextBox1.Select All() > > End If > > End Sub > > > > > > "Jane Sharpe" <JS**@hotmail.c om> wrote in message > > news:bu******** **@hercules.bti nternet.com... > > > Hi, > > > > > > I have a textbox with the words "Enter your name here" inserted
as > default > > > text - At the moment, to remove this the user must highlight all the > text > > > and delete before they type in their name - I've seen sites
where all > this > > > text dissapears as soon as the user clicks on it - how do I do that ? > > > > > > Thanks > > > > > > Jane > > > > > > > > > > > >
hum
you forgot to specify one little detail
it's a webapplication. ..
try this group: microsoft.publi c.dotnet.framew ork.aspnet
"Jane Sharpe" <JS**@hotmail.c om> wrote in message
news:bu******** **@titan.btinte rnet.com... Thanks for all this help, but I just CANT get this all to gel.
With this test code, I get the error
BC30590: Event 'GotFocus' cannot be found.
Heres my test code:-
<%@ Page Language="VB" %>
<script runat="server">
Private WithEvents TextBox1 As TextBox Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As System.EventArg s) Handles TextBox1.GotFoc us If TextBox1.Text = "Enter your name here" Then TextBox1.Text = "" End If End Sub
</script>
<html>
<body> <form Id="frmForm1" runat="server"> <p> <asp:TextBox id="TextBox1" runat="server" BorderStyle="So lid"Enter your name here</asp:TextBox> </p> </form> </body> </html>
"Dominique Vandensteen" <domi.vds_inser t@tralala_tenfo rce.com> wrote in message news:O2******** ******@TK2MSFTN GP10.phx.gbl... when defining your textbox add withevents keyword: private WithEvents myTextbox As TextBox
other solution:
private myTextbox As TextBox Public Sub New() addHandler myTextbox.GotFo cus, AddressOf TextBox1_GotFoc us End Sub
Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As System.EventArg s) ... End Sub
or something that looks alike ;-) "Jane Sharpe" <JS**@hotmail.c om> wrote in message news:bu******** **@titan.btinte rnet.com... And there probably lies my problem, I'm not developing in studio, just writing code !
"Philip Rieck" <st***@mckraken .com> wrote in message news:uj******** ******@TK2MSFTN GP12.phx.gbl... > To create the "GotFocus" handler automatically, do this: drag your textbox > to the form, and give it a name (in the designer). The default name will be > TextBox1 for the first text box. > > Go to the code view, and in the left-hand dropdown just above the code, > select "TextBox1", or whatever you named it. Then in the righ-hand > dropdown, select the "GotFocus" item (it will have a little
lightning bolt > next to it). This will create the Shell of the event handler. > > In the code I sent, it assumes that the text box was named TextBox1. If it > wasnt, change the part that says > ... "Handles TextBox1.GotFoc us " > To "Handles TheRealNameOfMy TextBox.GotFocu s". > > By named, I mean this : in the designer of your form, select the
text box. > Look in the properties window and find the "(name)" property. Whatever is > entered there is the "name" of the text box that I keep referring
to. > > > > > "Jane Sharpe" <JS**@hotmail.c om> wrote in message > news:bu******** **@sparta.btint ernet.com... > > Thanks, I was going to ask for a pointer..... now I'm going to ask
for > > another ! > > > > I get this error... > > > > Handles clause requires a WithEvents variable > > > > Jane > > > > "Philip Rieck" <st***@mckraken .com> wrote in message > > news:eH******** ******@tk2msftn gp13.phx.gbl... > > > While I probably wouldn't normally hardcode a string literal,
this > should > > > give you the idea to get started. > > > > > > Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As > > > System.EventArg s) Handles TextBox1.GotFoc us > > > If TextBox1.Text = "Enter your name here" Then > > > TextBox1.Text = "" > > > End If > > > End Sub > > > > > > Or, to keep the default text there until they start typing: > > > Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As > > > System.EventArg s) Handles TextBox1.GotFoc us > > > If TextBox1.Text = "Enter your name here" Then > > > TextBox1.Select All() > > > End If > > > End Sub > > > > > > > > > "Jane Sharpe" <JS**@hotmail.c om> wrote in message > > > news:bu******** **@hercules.bti nternet.com... > > > > Hi, > > > > > > > > I have a textbox with the words "Enter your name here"
inserted as > > default > > > > text - At the moment, to remove this the user must highlight
all the > > text > > > > and delete before they type in their name - I've seen sites where all > > this > > > > text dissapears as soon as the user clicks on it - how do I do that ? > > > > > > > > Thanks > > > > > > > > Jane > > > > > > > > > > > > > > > > > > > >
AhHa! it's a web application. That makes it a different beast:
The GotFocus event doesn't really make sense in a web application, since the
events in your VB.NET code are fired on the server side, not the client
side. To do this, you need to use some javascript.
Try this instead:
<%@ Page Language="VB" %>
<HTML>
<script runat="server">
Private Sub Page_PreRender( ByVal sender As Object, ByVal e As
System.EventArg s) Handles MyBase.PreRende r
TextBox1.Attrib utes.Add("onFoc us", "removeText ('" & TextBox1.Client Id &
"');")
End Sub
</script>
<script language=javasc ript>
function removeText( clientId)
{
document.getEle mentById( clientId).value = '';
}
</script>
<body>
<form Id="frmForm1" runat="server">
<p>
<asp:TextBox id="TextBox1" runat="server" BorderStyle="So lid">
Enter your name here</asp:TextBox>
</p>
</form>
</body>
</HTML>
"Jane Sharpe" <JS**@hotmail.c om> wrote in message
news:bu******** **@titan.btinte rnet.com... Thanks for all this help, but I just CANT get this all to gel.
With this test code, I get the error
BC30590: Event 'GotFocus' cannot be found.
Heres my test code:-
<%@ Page Language="VB" %>
<script runat="server">
Private WithEvents TextBox1 As TextBox Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As System.EventArg s) Handles TextBox1.GotFoc us If TextBox1.Text = "Enter your name here" Then TextBox1.Text = "" End If End Sub
</script>
<html>
<body> <form Id="frmForm1" runat="server"> <p> <asp:TextBox id="TextBox1" runat="server" BorderStyle="So lid"Enter your name here</asp:TextBox> </p> </form> </body> </html>
"Dominique Vandensteen" <domi.vds_inser t@tralala_tenfo rce.com> wrote in message news:O2******** ******@TK2MSFTN GP10.phx.gbl... when defining your textbox add withevents keyword: private WithEvents myTextbox As TextBox
other solution:
private myTextbox As TextBox Public Sub New() addHandler myTextbox.GotFo cus, AddressOf TextBox1_GotFoc us End Sub
Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As System.EventArg s) ... End Sub
or something that looks alike ;-) "Jane Sharpe" <JS**@hotmail.c om> wrote in message news:bu******** **@titan.btinte rnet.com... And there probably lies my problem, I'm not developing in studio, just writing code !
"Philip Rieck" <st***@mckraken .com> wrote in message news:uj******** ******@TK2MSFTN GP12.phx.gbl... > To create the "GotFocus" handler automatically, do this: drag your textbox > to the form, and give it a name (in the designer). The default name will be > TextBox1 for the first text box. > > Go to the code view, and in the left-hand dropdown just above the code, > select "TextBox1", or whatever you named it. Then in the righ-hand > dropdown, select the "GotFocus" item (it will have a little
lightning bolt > next to it). This will create the Shell of the event handler. > > In the code I sent, it assumes that the text box was named TextBox1. If it > wasnt, change the part that says > ... "Handles TextBox1.GotFoc us " > To "Handles TheRealNameOfMy TextBox.GotFocu s". > > By named, I mean this : in the designer of your form, select the
text box. > Look in the properties window and find the "(name)" property. Whatever is > entered there is the "name" of the text box that I keep referring
to. > > > > > "Jane Sharpe" <JS**@hotmail.c om> wrote in message > news:bu******** **@sparta.btint ernet.com... > > Thanks, I was going to ask for a pointer..... now I'm going to ask
for > > another ! > > > > I get this error... > > > > Handles clause requires a WithEvents variable > > > > Jane > > > > "Philip Rieck" <st***@mckraken .com> wrote in message > > news:eH******** ******@tk2msftn gp13.phx.gbl... > > > While I probably wouldn't normally hardcode a string literal,
this > should > > > give you the idea to get started. > > > > > > Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As > > > System.EventArg s) Handles TextBox1.GotFoc us > > > If TextBox1.Text = "Enter your name here" Then > > > TextBox1.Text = "" > > > End If > > > End Sub > > > > > > Or, to keep the default text there until they start typing: > > > Private Sub TextBox1_GotFoc us(ByVal sender As Object, ByVal e As > > > System.EventArg s) Handles TextBox1.GotFoc us > > > If TextBox1.Text = "Enter your name here" Then > > > TextBox1.Select All() > > > End If > > > End Sub > > > > > > > > > "Jane Sharpe" <JS**@hotmail.c om> wrote in message > > > news:bu******** **@hercules.bti nternet.com... > > > > Hi, > > > > > > > > I have a textbox with the words "Enter your name here"
inserted as > > default > > > > text - At the moment, to remove this the user must highlight
all the > > text > > > > and delete before they type in their name - I've seen sites where all > > this > > > > text dissapears as soon as the user clicks on it - how do I do that ? > > > > > > > > Thanks > > > > > > > > Jane > > > > > > > > > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: msnews.microsoft.com |
last post by:
Hello!
I'm Jim
by asp
How can show "abc" in textbox when click one botton?
|
by: Danial |
last post by:
Hi,
I am using asp.net 2 and i want to blank all textbox data of one form with
(for each control) and i write following coding in button control, but it
did not work.
Dim ctl As Control
For Each ctl In Me.Controls
|
by: lokidog |
last post by:
I am trying to automatically transfer data from one textbox to another between subforms within a 'main' form. I put this code into the Gotfocus eventprocedure:
Private Sub Date_GotFocus()
If Len(Trim$(Me!.Value & "")) = 0 Then
'This checks for blank or space-filled date field - it will only transfer data if it has not already been entered.
Me! = !!.!.!
SendKeys "{F2}"
SendKeys "{TAB}"
|
by: KCLA |
last post by:
HELLO AND THANKS IN ADVANCE
I am new to programming although my best mate is quite good and i have learnt a lot from him but i am now trying to understand the basic concept, however i cannot find anywhere yet that describes in laymens terms the process for building a programme, i am fine with layouts and such like but it is the basic starting procedure that i need to understand fully, has anyone got a flow chart or similar that shows the...
|
by: HockeyFan |
last post by:
I've done this before by trapping keydown and checking for a CR, and
then clicking a particular button based on which textbox the event
happened. However, I was wondering if there's a simpler way to trap a
carriage return in a textbox, and have it click a button?
| |
by: =?Utf-8?B?dmJTdHVkZW50?= |
last post by:
Dear All,
I have textbox in my form .. I enter the student name in the text e.x
(vbstudent)
I want to sign textbox data to array, each letter in one index.
ex
array(0)=v
array(1)=b
|
by: hidayu1986 |
last post by:
how to disable textbox when click on radiobutton using VB script on Visual Studio.Net 2005.
currently i used this coding but it is not functioning.
Private sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
If RadioButton1.Checked Then
Me.textBox1.Visible = True
Else
|
by: Martin Lang |
last post by:
Hi All,
Thanks for reading this :)
I have a form A that consists of a main form A and a sub form A.
In sub form A, I have a field which I can double click. Then, Main form B opens up with a search field. Sub form B has a query as recordset. The query use the search field value as a filter, and the filter is updated every time text is entered into the search field.
What I want to happen is to set focus on the search field once form b...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |