|
can you give me a sample coding..
thanks
|
|
|
|
|
Hi,
I am looping through the controls of the web page, and checking for checkboxes only. Then to be able to check if a checkbox is checked, I need to do a cast of the control to a checkbox. Please see how I did it (the name of the function where this code is in is called CreateSelectiveSQLStatement:
For Each child As Control In c.Controls
Me.CreateSelectiveSQLStatement(child)
If TypeOf child Is CheckBox Then
'Response.Write(child.ID & "<br />")
Dim chk As CheckBox = CType(child, CheckBox)
' Check if checkbox is checked
If chk.Checked Then
strFields = strFields & child.ID & ", "
Response.Write(chk.ID & "<br />")
End If
End If
Next
It doesn't display anything on the web page. Where is my error? I think it might be at:
Dim chk As CheckBox = CType(child, CheckBox)
Please can someone help me? I am using VB.NET 1.1.
Regards
ma se
|
|
|
|
|
I seem to have found my problem, I used DirectCast instead of CType, not sure why it doesn't work with CType? Maybe someone can help explain?
|
|
|
|
|
Hi
does anyone know how to get the arrow keys to respond to a flash game in a webbrowser control?
thanks
Kevin
|
|
|
|
|
Not a VB question, is it?
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
Hi Steve,
this relates to the VB.NET web browser control.
|
|
|
|
|
Is the Web Browser control not a part of Internet Explorer?
Are you trying to get vb app to responed to your keypresses or your Flash app?
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
You'll have to explain what your doing more than this. Key's don't respond to anything, other than someone pressing them. What are you doing with the Flash game?
|
|
|
|
|
Hi Dave
I have written a small VB.NET app which includes a webbrowser control. It works fine but when playing flash games from websites I cannot get the arrow keys to respond. The flash game uses the arrow keys for playing a game. The arrow keys work fine in Internet Explorer. Any ideas?
thanks
|
|
|
|
|
I am able to read mail from outlook
Issue is that when i run the code it displays a diaglog box for authentication in outlook
How can i read mail without getting that diaglog box
Also ii am runing this sample in 2003 when i add the referrence in 2005 it gives error. why? and how can i add outlook reference in 2005
|
|
|
|
|
Hello All
I am creating the user control in vb.net and in the same project i am unable to add that on to the form can any one please help me out .
thanks in Advance
Bharath.S Ron
|
|
|
|
|
can you give me a specific error message?
here are 2 posibels:
1: you haven't build you project yet (you have to build the project in order to see your usercontrol in the toolbox and everytime you have changed something about the usercontrol)
2: you have declared your own constructor with variabels and have no constructor without variabels. If this is the case you can not drag and drop your usercontrol on to your form. you can only add one in code (dynamicly)
|
|
|
|
|
Have you compiled the user control project? Have you added a reference in your windows forms test project to your user control project?
|
|
|
|
|
Hi! All,
Can anybody gimme an idea of multi-threading in VB 6.0? I am a learner in VB.
Thanks and Regards,
Virendra
|
|
|
|
|
|
VB is not supported to OOPS so we cannot make a threading concept in vb
kankeyan
|
|
|
|
|
If you're just learning VB6, this is WAY beyond your skill level. Threading in an environment that doesn't support it is not easy. The VB6 debugger cannot handle multiple threads of execution so debugging the code is not supported and will crash the IDE. If you don't know anything about threading, VB6 is NOT the language to use to learn it.
I seriously suggest moving up to VB.NET if you want to learn a current language and learn about threading. The Visual Studio 2005 IDE fully supports debugging multi-threaded code.
|
|
|
|
|
what is meant by "with constructor"?
|
|
|
|
|
what do you mean exactly
a constructor is the methode that is called when you initialize a form or a object
a constructor is always in the following format
public sub new()
initializecomponent() ' only on a form and in every constructor
end sub
you can ad variabels between the ( and ) of the new
you can also ad serveral constructors to 1 object or form
hope this helps
|
|
|
|
|
I know that what is a constructor. but i want to know "with constructor" which is present in only vb.net but not in c#
|
|
|
|
|
|
You asked this question twice in this forum.
______________________
stuff + cats = awesome
|
|
|
|
|
hello frnds,
how can i share a directory (Folder) using vb 6.0
if any one have code sample then plzz give...help
thankx in advance,
-koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
THis is not exactly a straight forward operation in VB6. Find out here[^].
|
|
|
|
|
Hello All,
In c:/inetpub/mailroot we have a folder called BAD mail.
I can send email in vb.net using SMTP object,
if mail is not delivered then server puts a NDR in BAD mail folder.
so i want to know, how to read the NDR in BAD mail folder programmatically
in vb.net.
regards,
Ashwin Gupta
AshwinGupta
|
|
|
|