|
Have you considered setting breakpoints and stepping through the code to find out where the exception is being thrown. You also get to see the state of variables as they are changed and so on.
Anonymous wrote:
i know that it is not securie to run code like mine , but i will use a function the will filter input to textbox ...
How good will your filtering be? Even although I filter the results of text boxes before passing them to database queries I still use parameters to pass the data to the database in order that, should I have missed something, the framework will protect me. At the very least I do my best to ensure that my application will fail safe. The idea is that you do everything you can to reduce the attack surface of your application.
My: Blog | Photos | Next SQL Presentation
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
i have a usercontrol made at design time. i want to load it on a form at runtime. can anyone help please
If i am adding that control at designtime its working fine. but i want to add it runtime.
|
|
|
|
|
At the click event or whatever :
Dim con = new myUserControl
with
.Location = new Point()
//and so on.
|
|
|
|
|
i have the similar problem except i want to the usercontrol develop in vb6.
when i user : dim ctrl as new myUserControl it give an error message as belows >>> myUserControl.Private Sub New()' is not accessible in this context because it is 'Private'. <<<
so how i want to define the 'Public Sub New()' in vb6.. it give error.
|
|
|
|
|
All you have to do is instantiate your control and add it to the form's Controls collection:
Dim newControl As New MyCustomControl
newControl.Top = whatever
newControl.Left = whatever
... set your controls properties here
' and to make it show up on the form:
Me.Controls.Add(newControl)
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Actualy i cannot create a instance of my control .i donot know why but it doesn't give me option like dim ctrl as new mycontrol. its not showing in the options after new .That control is in my project at desgin time. i donot know what do do. its all in visual basic 6
|
|
|
|
|
Did you have this project reference your control project? It's been a long time since I've used VB6, but I think you should be looking under the Project menu, References. From there, you can pick your user control's .DLL file to set a reference to it, then you should be able to create an instance of your control.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
yes i have refernced that control (project in my refrence) if i add it from componnets it appears in the toolbox. but i cannot create a runtime object with it .
|
|
|
|
|
Just like when you Start->Turn off Computer
It nicely gray's out the desktop except for the
"turn off computer" dialog box that prompts you for
standby, turn off, reset.
Any ideas on how to do this programmatically
in vb.net?
Thanks,
Tom
|
|
|
|
|
this may be a bit of a workaround, but maybe it can help you in the right direction...
you can have a background form (topmost though) that slowly fades in (opacity from 0 to 1)
the background of that form can be a screenshot of the desktop (check Bob Powell's: Capturing the screen or the surface of a control
and on top of that a new form with what you want to show
hope this can help u out
|
|
|
|
|
Terrific suggestion - I'll give that a shot and report back, thanks mate!
|
|
|
|
|
Hi all,,
I used to use the ICT (internet transfer control) in Vb 6 when i need to transfer a data to web page that request data through the URL i.e "\\webserver\getdata.asp?name?sex"
i'm using the vb.net now but this component is not avalible
so does any body know how to do this in vb.net..!??!
any peice of code or clear good referece as quick as possible will be helpfull..
i appreciate ur coorprate guys..
thx
Hani
|
|
|
|
|
Search the articles for "HttpWebRequest" and you'll find what you're looking for.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can someone please help me with how I would code a simple chat program to run over a network.
I have designed the forms which have chat windows etc. but am lost on how to make it communicate from client to client.
I have looked at DDE in the help files but found it hard to understande. I am only new to visual basic. I am 16 years old and keen to get into program, this is my first program.
Is there anyone that can help to steer me in the right direction.
Cheers John
Posted by The ANZAC
|
|
|
|
|
|
First program?! You better start with something a little simpler. It would be wise to learn how Windows forms controls work before venturing off into networking...
Just my opinion...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ive got a book called 'visual basic .net power tools'
in chapter 12 the book explains how to make a chat program
ive never read the chapter, but you can download the source code from Sybex at this link
as i sead, somewhere in chapter 12
hope this sample can help you on the way!
ps: i'm 16 too! i never knew there were more young programmers out there, but appareantly they are!
have fun!
|
|
|
|
|
|
Late starter?!? never said i started at 16! i mastered C before i could walk man!:->
just kiddin LOL
|
|
|
|
|
|
Hi
I am creating a tree view control dynamically and all the nodes and child nodes of that tree view are being read from an xml file. Now I have two buttons "Move Up" and "Move Down". On click of these buttons I should be able to navigate through the nodes and child nodes. How can i set the focus to the previous node and next node?The Applicaton is a simple Windows based and I am using VB.Net.
Any help would be highly appreciated.
Thanks
Qot
|
|
|
|
|
Qot wrote:
Now I have two buttons "Move Up" and "Move Down". On click of these buttons I should be able to navigate through the nodes and child nodes. How can i set the focus to the previous node and next node?
I think the part of this article[^] could give you some idea about what you want.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Hello All;
I am trying to write a vb.net application to communicate with the usb port, a step before communication with usb modem.
I want to retrieve as well as send data to the modem.
If any body out there has a document on the subject or can lead me to a site that may help or at least tell me which namespace to use,I will much appreciate that.
Thank you.
Bilal Awwad
|
|
|
|
|
Bilal Awwad wrote:
I am trying to write a vb.net application to communicate with the usb port
Try to read this information[^] it might be give you some idea about what you want to do.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
THe modem should show up as a virtual COM port. You can talk to the modem using normal Serial comm.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|