<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>VBForums - Visual Basic .NET</title>
		<link>http://www.vbforums.com/</link>
		<description>Drop in here to discuss all editions and versions of Visual Basic .NET (2002 or later) or anything to do with VB .NET programming.</description>
		<language>en</language>
		<lastBuildDate>Sun, 19 May 2013 10:14:20 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.vbforums.com/images/misc/rss.png</url>
			<title>VBForums - Visual Basic .NET</title>
			<link>http://www.vbforums.com/</link>
		</image>
		<item>
			<title>VS 2010 Weird icon behavior....</title>
			<link>http://www.vbforums.com/showthread.php?722151-Weird-icon-behavior&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 09:43:11 GMT</pubDate>
			<description><![CDATA[I made an icon for my program and I used http://www.icoconverter.com/ to convert my icon into a .ico file so I could use it in my program. I built the program and I got the program from my release folder and I put it on my desktop and the icon looks like this
Attachment 100317 (http://www.vbforums.com/attachment.php?attachmentid=100317)
But, if I rename the file something like "afsadgubdgu" then the icon changes to the proper icon. HOWEVER, if I rename the program to the original name. the icon goes back to looking like this
Attachment 100317 (http://www.vbforums.com/attachment.php?attachmentid=100317)

I AM SO CONFUSED!]]></description>
			<content:encoded><![CDATA[<div>I made an icon for my program and I used <a rel="nofollow" href="http://www.icoconverter.com/" target="_blank">http://www.icoconverter.com/</a> to convert my icon into a .ico file so I could use it in my program. I built the program and I got the program from my release folder and I put it on my desktop and the icon looks like this<br />
<img src="http://www.vbforums.com/attachment.php?attachmentid=100317&amp;d=1368956526" border="0" alt="Name:  HVYbknu.png
Views: 24
Size:  997 Bytes"  style="float: CONFIG" /><br />
But, if I rename the file something like &quot;afsadgubdgu&quot; then the icon changes to the proper icon. HOWEVER, if I rename the program to the original name. the icon goes back to looking like this<br />
<img src="http://www.vbforums.com/attachment.php?attachmentid=100317&amp;d=1368956526" border="0" alt="Name:  HVYbknu.png
Views: 24
Size:  997 Bytes"  style="float: CONFIG" /><br />
<br />
I AM SO CONFUSED!</div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
				<div style="padding:10px">
				<img class="attach" src="http://www.vbforums.com/attachment.php?attachmentid=100317&amp;stc=1&amp;d=1368956526" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>Flavor Flav</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722151-Weird-icon-behavior</guid>
		</item>
		<item>
			<title>For Loop Debug</title>
			<link>http://www.vbforums.com/showthread.php?722149-For-Loop-Debug&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 08:51:30 GMT</pubDate>
			<description><![CDATA[I was making an invalid character removal module for my program, and here is the function that I used:

Code:
---------
Function fix_extensions(file_extension As String)
        'Fixes file extensions
        Dim banned_ext_chars() As String = {"\", "/", ":", ";", "*", "?", """", "<", ">", "|", "%", ",", "#", "$", "!", "+", "{", "}", "&", "[", "]", "•", "'", "."}
        For index As Integer = 1 To banned_ext_chars.Length - 1
            file_extension = file_extension.Replace(banned_ext_chars(index), "")
        Next
        file_extension = "." & file_extension
        Return file_extension
    End Function
---------
However, upon checking the output through a short debug, it appears that the backslash was never filtered out. I've tried many things, but none worked.

Help would be greatly appreciated.]]></description>
			<content:encoded><![CDATA[<div>I was making an invalid character removal module for my program, and here is the function that I used:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Function fix_extensions(file_extension As String)<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Fixes file extensions<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim banned_ext_chars() As String = {&quot;\&quot;, &quot;/&quot;, &quot;:&quot;, &quot;;&quot;, &quot;*&quot;, &quot;?&quot;, &quot;&quot;&quot;&quot;, &quot;&lt;&quot;, &quot;&gt;&quot;, &quot;|&quot;, &quot;%&quot;, &quot;,&quot;, &quot;#&quot;, &quot;$&quot;, &quot;!&quot;, &quot;+&quot;, &quot;{&quot;, &quot;}&quot;, &quot;&amp;&quot;, &quot;[&quot;, &quot;]&quot;, &quot;•&quot;, &quot;'&quot;, &quot;.&quot;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; For index As Integer = 1 To banned_ext_chars.Length - 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; file_extension = file_extension.Replace(banned_ext_chars(index), &quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; file_extension = &quot;.&quot; &amp; file_extension<br />
&nbsp; &nbsp; &nbsp; &nbsp; Return file_extension<br />
&nbsp; &nbsp; End Function</code><hr />
</div>However, upon checking the output through a short debug, it appears that the backslash was never filtered out. I've tried many things, but none worked.<br />
<br />
Help would be greatly appreciated.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>Tosaka Kawashita</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722149-For-Loop-Debug</guid>
		</item>
		<item>
			<title>VS 2010 Not really sure how to do this...</title>
			<link>http://www.vbforums.com/showthread.php?722145-Not-really-sure-how-to-do-this&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 07:06:03 GMT</pubDate>
			<description><![CDATA[This code will take the selected item and put the string of the item into an inputbox and then you can edit the item inside of the inputbox. However, if you delete everything in the edit inputbox then it makes the item Nothing and it is just a blank space in my listbox.
How would I make it so that if the user deletes everything in the inputbox then it will not change anything since i dont want blank spaces in the listbox.

Sorry if you don't understand the question.


Code:
---------
   Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
        If ListBox1.SelectedItem <> Nothing Then
            Dim output As String = ""
            output = InputBox("Type a new message in the text box below.", "Edit Message", ListBox1.SelectedItem.ToString, -1, -1)
            ListBox1.Items(ListBox1.SelectedIndex) = output
        Else
            MessageBox.Show("You haven't selected a message.", Nothing, Nothing, MessageBoxIcon.Error)
        End If
    End Sub
---------
]]></description>
			<content:encoded><![CDATA[<div>This code will take the selected item and put the string of the item into an inputbox and then you can edit the item inside of the inputbox. However, if you delete everything in the edit inputbox then it makes the item Nothing and it is just a blank space in my listbox.<br />
How would I make it so that if the user deletes everything in the inputbox then it will not change anything since i dont want blank spaces in the listbox.<br />
<br />
Sorry if you don't understand the question.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp;  Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; If ListBox1.SelectedItem &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim output As String = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output = InputBox(&quot;Type a new message in the text box below.&quot;, &quot;Edit Message&quot;, ListBox1.SelectedItem.ToString, -1, -1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items(ListBox1.SelectedIndex) = output<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;You haven't selected a message.&quot;, Nothing, Nothing, MessageBoxIcon.Error)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>Flavor Flav</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722145-Not-really-sure-how-to-do-this</guid>
		</item>
		<item>
			<title>formLocation</title>
			<link>http://www.vbforums.com/showthread.php?722143-formLocation&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 05:31:33 GMT</pubDate>
			<description><![CDATA[I've been using a set of code to make a form appear directly underneath a button. I know I'm either using the wrong one, or one that would be easier for what I'm trying to do. I currently have two sets of code. One for when the window is in default normal size, and the other for when it is maximized. This is the code as follows:


Code:
---------
Dim formLocation = PointToScreen(TwitterButton.Location)
        formLocation.Offset(798, 30)
        TwitterPopupMenu.StartPosition = FormStartPosition.Manual
        TwitterPopupMenu.Location = formLocation
        TwitterPopupMenu.Show()
        If Me.WindowState = FormWindowState.Maximized Then
            formLocation.Offset(570, 2)
            TwitterPopupMenu.StartPosition = FormStartPosition.Manual
            TwitterPopupMenu.Location = formLocation
            TwitterPopupMenu.Show()
---------
The issue I currently have is that when the user manually adjusts the form size, neither of the codes are relevant any longer, and the popup forms will no longer appear in their appropriate locations. I'm quite positive that the codes I have here are not the correct ones, and that the one that I'm looking for can actually set the forms to launch in their places in this case, a button (which is what these are supposed to be doing, though quite honestly, I think there's just simply something botched up with these codes, and their just sneakily hiding under my nose). This is probably a duh thing (it's been one of those days :lol:)]]></description>
			<content:encoded><![CDATA[<div>I've been using a set of code to make a form appear directly underneath a button. I know I'm either using the wrong one, or one that would be easier for what I'm trying to do. I currently have two sets of code. One for when the window is in default normal size, and the other for when it is maximized. This is the code as follows:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Dim formLocation = PointToScreen(TwitterButton.Location)<br />
&nbsp; &nbsp; &nbsp; &nbsp; formLocation.Offset(798, 30)<br />
&nbsp; &nbsp; &nbsp; &nbsp; TwitterPopupMenu.StartPosition = FormStartPosition.Manual<br />
&nbsp; &nbsp; &nbsp; &nbsp; TwitterPopupMenu.Location = formLocation<br />
&nbsp; &nbsp; &nbsp; &nbsp; TwitterPopupMenu.Show()<br />
&nbsp; &nbsp; &nbsp; &nbsp; If Me.WindowState = FormWindowState.Maximized Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formLocation.Offset(570, 2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TwitterPopupMenu.StartPosition = FormStartPosition.Manual<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TwitterPopupMenu.Location = formLocation<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TwitterPopupMenu.Show()</code><hr />
</div>The issue I currently have is that when the user manually adjusts the form size, neither of the codes are relevant any longer, and the popup forms will no longer appear in their appropriate locations. I'm quite positive that the codes I have here are not the correct ones, and that the one that I'm looking for can actually set the forms to launch in their places in this case, a button (which is what these are supposed to be doing, though quite honestly, I think there's just simply something botched up with these codes, and their just sneakily hiding under my nose). This is probably a duh thing (it's been one of those days :lol:)</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>ultimatefloydian</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722143-formLocation</guid>
		</item>
		<item>
			<title><![CDATA[VS 2010 How come this doesn't work...?]]></title>
			<link>http://www.vbforums.com/showthread.php?722141-How-come-this-doesn-t-work&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 05:02:58 GMT</pubDate>
			<description><![CDATA[
Code:
---------
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If RadioButton1.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add(TextBox1.Text)
        ElseIf RadioButton2.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("cyan:" & TextBox1.Text)
        ElseIf RadioButton3.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("green:" & TextBox1.Text)
        ElseIf RadioButton4.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("purple:" & TextBox1.Text)
        ElseIf RadioButton5.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("red:" & TextBox1.Text)
        ElseIf RadioButton6.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("white:" & TextBox1.Text)
        ElseIf RadioButton7.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash1:" & TextBox1.Text)
        ElseIf RadioButton8.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash2:" & TextBox1.Text)
        ElseIf RadioButton9.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash3:" & TextBox1.Text)
        ElseIf RadioButton10.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow1:" & TextBox1.Text)
        ElseIf RadioButton11.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow2:" & TextBox1.Text)
        ElseIf RadioButton12.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow3:" & TextBox1.Text)
        ElseIf RadioButton1.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("scroll:" & TextBox1.Text)
        ElseIf RadioButton1.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("shake:" & TextBox1.Text)
        ElseIf RadioButton1.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("slide:" & TextBox1.Text)
        ElseIf RadioButton1.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("wave:" & TextBox1.Text)
        ElseIf RadioButton1.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("wave2:" & TextBox1.Text)
        ElseIf RadioButton2.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("cyan:" & "scroll:" & TextBox1.Text)
        ElseIf RadioButton2.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("cyan:" & "shake:" & TextBox1.Text)
        ElseIf RadioButton2.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("cyan:" & "slide:" & TextBox1.Text)
        ElseIf RadioButton2.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("cyan:" & "wave:" & TextBox1.Text)
        ElseIf RadioButton2.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("cyan:" & "wave2:" & TextBox1.Text)
        ElseIf RadioButton3.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("green:" & "scroll:" & TextBox1.Text)
        ElseIf RadioButton3.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("green:" & "shake:" & TextBox1.Text)
        ElseIf RadioButton3.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("green:" & "slide:" & TextBox1.Text)
        ElseIf RadioButton3.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("green:" & "wave:" & TextBox1.Text)
        ElseIf RadioButton3.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("green:" & "wave2:" & TextBox1.Text)
        ElseIf RadioButton4.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("purple:" & "scroll:" & TextBox1.Text)
        ElseIf RadioButton4.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("purple:" & "shake:" & TextBox1.Text)
        ElseIf RadioButton4.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("purple:" & "slide:" & TextBox1.Text)
        ElseIf RadioButton4.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("purple:" & "wave:" & TextBox1.Text)
        ElseIf RadioButton4.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("purple:" & "wave2:" & TextBox1.Text)
        ElseIf RadioButton5.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("red:" & "scroll:" & TextBox1.Text)
        ElseIf RadioButton5.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("red:" & "shake:" & TextBox1.Text)
        ElseIf RadioButton5.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("red:" & "slide:" & TextBox1.Text)
        ElseIf RadioButton5.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("red:" & "wave:" & TextBox1.Text)
        ElseIf RadioButton5.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("red:" & "wave2:" & TextBox1.Text)
        ElseIf RadioButton6.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("white:" & "scroll:" & TextBox1.Text)
        ElseIf RadioButton6.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("white:" & "shake:" & TextBox1.Text)
        ElseIf RadioButton6.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("white:" & "slide:" & TextBox1.Text)
        ElseIf RadioButton6.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("white:" & "wave:" & TextBox1.Text)
        ElseIf RadioButton6.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("white:" & "wave2:" & TextBox1.Text)
        ElseIf RadioButton7.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash1:" & "scroll:" & TextBox1.Text)
        ElseIf RadioButton7.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash1:" & "shake:" & TextBox1.Text)
        ElseIf RadioButton7.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash1:" & "slide:" & TextBox1.Text)
        ElseIf RadioButton7.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash1:" & "wave:" & TextBox1.Text)
        ElseIf RadioButton7.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash1:" & "wave2:" & TextBox1.Text)
        ElseIf RadioButton8.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash2:" & "scroll:" & TextBox1.Text)
        ElseIf RadioButton8.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash2:" & "shake:" & TextBox1.Text)
        ElseIf RadioButton8.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash2:" & "slide:" & TextBox1.Text)
        ElseIf RadioButton8.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash2:" & "wave:" & TextBox1.Text)
        ElseIf RadioButton8.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash2:" & "wave2:" & TextBox1.Text)
        ElseIf RadioButton9.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash3:" & "scroll:" & TextBox1.Text)
        ElseIf RadioButton9.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash3:" & "shake:" & TextBox1.Text)
        ElseIf RadioButton9.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash3:" & "slide:" & TextBox1.Text)
        ElseIf RadioButton9.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash3:" & "wave:" & TextBox1.Text)
        ElseIf RadioButton9.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("flash3:" & "wave2:" & TextBox1.Text)
        ElseIf RadioButton10.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow1:" & "scroll:" & TextBox1.Text)
        ElseIf RadioButton10.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow1:" & "shake:" & TextBox1.Text)
        ElseIf RadioButton10.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow1:" & "slide:" & TextBox1.Text)
        ElseIf RadioButton10.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow1:" & "wave:" & TextBox1.Text)
        ElseIf RadioButton10.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow1:" & "wave2:" & TextBox1.Text)
        ElseIf RadioButton11.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow2:" & "scroll:" & TextBox1.Text)
        ElseIf RadioButton11.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow2:" & "shake:" & TextBox1.Text)
        ElseIf RadioButton11.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow2:" & "slide:" & TextBox1.Text)
        ElseIf RadioButton11.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow2:" & "wave:" & TextBox1.Text)
        ElseIf RadioButton11.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow2:" & "wave2:" & TextBox1.Text)
        ElseIf RadioButton12.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow3:" & "scroll:" & TextBox1.Text)
        ElseIf RadioButton12.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow3:" & "shake:" & TextBox1.Text)
        ElseIf RadioButton12.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow3:" & "slide:" & TextBox1.Text)
        ElseIf RadioButton12.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow3:" & "wave:" & TextBox1.Text)
        ElseIf RadioButton12.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text <> Nothing Then
            ListBox1.Items.Add("glow3:" & "wave2:" & TextBox1.Text)
        End If

        If TextBox1.Text <> Nothing Then
            RadioButton1.Checked = True
            RadioButton13.Checked = True
            TextBox1.Text = ""
            TextBox1.Select()
        Else
            MessageBox.Show("The message box contains no characters.")
        End If
    End Sub
---------

Code:
---------
    Private Sub TextBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
        If e.KeyCode = Keys.Enter Then
            e.SuppressKeyPress = True
            Call Button1_Click()
            End If
    End Sub
---------
]]></description>
			<content:encoded><![CDATA[<div><div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; If RadioButton1.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton2.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;cyan:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton3.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;green:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton4.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;purple:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton5.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;red:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton6.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;white:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton7.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash1:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton8.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton9.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash3:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton10.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow1:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton11.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton12.Checked AndAlso RadioButton13.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow3:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton1.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;scroll:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton1.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;shake:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton1.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;slide:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton1.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;wave:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton1.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;wave2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton2.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;cyan:&quot; &amp; &quot;scroll:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton2.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;cyan:&quot; &amp; &quot;shake:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton2.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;cyan:&quot; &amp; &quot;slide:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton2.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;cyan:&quot; &amp; &quot;wave:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton2.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;cyan:&quot; &amp; &quot;wave2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton3.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;green:&quot; &amp; &quot;scroll:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton3.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;green:&quot; &amp; &quot;shake:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton3.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;green:&quot; &amp; &quot;slide:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton3.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;green:&quot; &amp; &quot;wave:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton3.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;green:&quot; &amp; &quot;wave2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton4.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;purple:&quot; &amp; &quot;scroll:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton4.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;purple:&quot; &amp; &quot;shake:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton4.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;purple:&quot; &amp; &quot;slide:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton4.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;purple:&quot; &amp; &quot;wave:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton4.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;purple:&quot; &amp; &quot;wave2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton5.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;red:&quot; &amp; &quot;scroll:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton5.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;red:&quot; &amp; &quot;shake:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton5.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;red:&quot; &amp; &quot;slide:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton5.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;red:&quot; &amp; &quot;wave:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton5.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;red:&quot; &amp; &quot;wave2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton6.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;white:&quot; &amp; &quot;scroll:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton6.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;white:&quot; &amp; &quot;shake:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton6.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;white:&quot; &amp; &quot;slide:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton6.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;white:&quot; &amp; &quot;wave:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton6.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;white:&quot; &amp; &quot;wave2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton7.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash1:&quot; &amp; &quot;scroll:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton7.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash1:&quot; &amp; &quot;shake:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton7.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash1:&quot; &amp; &quot;slide:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton7.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash1:&quot; &amp; &quot;wave:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton7.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash1:&quot; &amp; &quot;wave2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton8.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash2:&quot; &amp; &quot;scroll:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton8.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash2:&quot; &amp; &quot;shake:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton8.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash2:&quot; &amp; &quot;slide:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton8.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash2:&quot; &amp; &quot;wave:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton8.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash2:&quot; &amp; &quot;wave2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton9.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash3:&quot; &amp; &quot;scroll:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton9.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash3:&quot; &amp; &quot;shake:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton9.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash3:&quot; &amp; &quot;slide:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton9.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash3:&quot; &amp; &quot;wave:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton9.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;flash3:&quot; &amp; &quot;wave2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton10.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow1:&quot; &amp; &quot;scroll:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton10.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow1:&quot; &amp; &quot;shake:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton10.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow1:&quot; &amp; &quot;slide:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton10.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow1:&quot; &amp; &quot;wave:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton10.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow1:&quot; &amp; &quot;wave2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton11.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow2:&quot; &amp; &quot;scroll:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton11.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow2:&quot; &amp; &quot;shake:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton11.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow2:&quot; &amp; &quot;slide:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton11.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow2:&quot; &amp; &quot;wave:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton11.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow2:&quot; &amp; &quot;wave2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton12.Checked AndAlso RadioButton14.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow3:&quot; &amp; &quot;scroll:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton12.Checked AndAlso RadioButton15.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow3:&quot; &amp; &quot;shake:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton12.Checked AndAlso RadioButton16.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow3:&quot; &amp; &quot;slide:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton12.Checked AndAlso RadioButton17.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow3:&quot; &amp; &quot;wave:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioButton12.Checked AndAlso RadioButton18.Checked AndAlso TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(&quot;glow3:&quot; &amp; &quot;wave2:&quot; &amp; TextBox1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If TextBox1.Text &lt;&gt; Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RadioButton1.Checked = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RadioButton13.Checked = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextBox1.Text = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextBox1.Select()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;The message box contains no characters.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub</code><hr />
</div><div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; Private Sub TextBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown<br />
&nbsp; &nbsp; &nbsp; &nbsp; If e.KeyCode = Keys.Enter Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.SuppressKeyPress = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Call Button1_Click()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>Flavor Flav</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722141-How-come-this-doesn-t-work</guid>
		</item>
		<item>
			<title>need help wih radiobuttons</title>
			<link>http://www.vbforums.com/showthread.php?722139-need-help-wih-radiobuttons&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 03:36:38 GMT</pubDate>
			<description>I am creating a program, how would it be possible to make the program show a certain video when i click on a certain radiobutton.
for example i have 1 button, 1 radiobutton, 3 pictures, 1 picturebox and 3 videos.
if i choose radiobutton 1 i want my picturebox to show pic 1 and for my button to show video 1 when i click it, when i choose radiobutton 2 i want my picturebox to show pic 2 and for my button to show video 2, etc. i know i can create a button for each video and create a listbox with each picture option using selected cases but i dont want to do that could any body help me?</description>
			<content:encoded><![CDATA[<div>I am creating a program, how would it be possible to make the program show a certain video when i click on a certain radiobutton.<br />
for example i have 1 button, 1 radiobutton, 3 pictures, 1 picturebox and 3 videos.<br />
if i choose radiobutton 1 i want my picturebox to show pic 1 and for my button to show video 1 when i click it, when i choose radiobutton 2 i want my picturebox to show pic 2 and for my button to show video 2, etc. i know i can create a button for each video and create a listbox with each picture option using selected cases but i dont want to do that could any body help me?</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>AA123</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722139-need-help-wih-radiobuttons</guid>
		</item>
		<item>
			<title>VS 2008 rdp auto connect with username and password ?</title>
			<link>http://www.vbforums.com/showthread.php?722131-rdp-auto-connect-with-username-and-password&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 21:46:47 GMT</pubDate>
			<description><![CDATA[Hi, i have been searching all night and looked at loads of examples ect but can not find what i need.

Basically I have several RDP connections that i work from. I need to test the connections every now and again.

I can use tcp client to connect to ip:port and if if its online but that just wont do.

What i need to do is connect to each rdp, pass the username and password and it will connect then login auto. Once loged in, it will tell me logged in. 

It then needs to logout and go to the next rdp ip and repeat the above.

It also need to tell me if it failed to login, then i can manually check that rdp.

This is because a couple of the rdp's have several user on them that i set, i need to make sure that none have changed the password as some have root access as we all work on the safe files there ect. We use the rdp to WFH(work from home).

How would i go about doing this ?

Thanks]]></description>
			<content:encoded><![CDATA[<div>Hi, i have been searching all night and looked at loads of examples ect but can not find what i need.<br />
<br />
Basically I have several RDP connections that i work from. I need to test the connections every now and again.<br />
<br />
I can use tcp client to connect to ip:port and if if its online but that just wont do.<br />
<br />
What i need to do is connect to each rdp, pass the username and password and it will connect then login auto. Once loged in, it will tell me logged in. <br />
<br />
It then needs to logout and go to the next rdp ip and repeat the above.<br />
<br />
It also need to tell me if it failed to login, then i can manually check that rdp.<br />
<br />
This is because a couple of the rdp's have several user on them that i set, i need to make sure that none have changed the password as some have root access as we all work on the safe files there ect. We use the rdp to WFH(work from home).<br />
<br />
How would i go about doing this ?<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>SystemX</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722131-rdp-auto-connect-with-username-and-password</guid>
		</item>
		<item>
			<title>VS 2010 Help!!!???  File corrupt???</title>
			<link>http://www.vbforums.com/showthread.php?722129-Help!!!-File-corrupt&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 21:04:27 GMT</pubDate>
			<description>Hi all,

Bugger, when I open up my form code I get a bunch of garble as per the attached.  Not sure what has happened.  Any ideas how to fix this?  Not sure whether to laugh or cry....

Cheers,
J</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
Bugger, when I open up my form code I get a bunch of garble as per the attached.  Not sure what has happened.  Any ideas how to fix this?  Not sure whether to laugh or cry....<br />
<br />
Cheers,<br />
J</div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
				<div style="padding:10px">
				<img class="attach" src="http://www.vbforums.com/attachment.php?attachmentid=100303&amp;stc=1&amp;d=1368911040" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>jonesin</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722129-Help!!!-File-corrupt</guid>
		</item>
		<item>
			<title>Noob:  checkbox, function, module assistance</title>
			<link>http://www.vbforums.com/showthread.php?722125-Noob-checkbox-function-module-assistance&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 18:20:07 GMT</pubDate>
			<description><![CDATA[I'm in the chapter in my Visual Basic book on creating multiple forms, modules, and menus.  

The first problem, is to create a problem that calculates a total for going to conference.   

it gives MainForm and OptionsForm design.  Below is what I recreated
Attachment 100295 (http://www.vbforums.com/attachment.php?attachmentid=100295)Attachment 100297 (http://www.vbforums.com/attachment.php?attachmentid=100297)

The assignment
---Quote---
The Conference Options form allows the user to select the regular conference registration, the optional opening night dinner, and an optional preconference workshop; user cannot select optional events without selecting registration.  When the Close button is clicked, this form should be removed from the screen and the total registration fee should appear on the main form
---End Quote---
It also gives a tip about using a global variable to hold the total cost, so both form will have access to the variable

I haven't finished the program and most I can do.  I have module setup in addition to the two forms.

this is button on the MainForm to get conference info and total

Code:
---------
 Private Sub btnConferenceOptions_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConferenceOptions.Click
        '==================================
        'declare variables
        '=================================
        Dim frmOptionsForm As New frmOptionsForm

        frmOptionsForm.ShowDialog()

        '==================================
        'display total
        '=================================

        lblTotal.Text = g_decTotalCost.ToString("c")
    End Sub
---------
this is the module

Code:
---------
Module CalucateModule
    '==================================
    'declare global constants and variables
    '==================================
    Public Const g_decRegistration As Decimal = 895
    Public Const g_decDinner As Decimal = 30
    Public Const g_decECommerce As Decimal = 295
    Public Const g_decWeb As Decimal = 295
    Public Const g_decVisualBasic As Decimal = 395
    Public Const g_decNetworkSecurity As Decimal = 395
    Public g_decTotalCost As Decimal

    Public Function ConferenceTotal1() As Decimal

        If frmOptionsForm.chkRegistration.Checked = True Then
            g_decTotalCost += g_decRegistration
            MessageBox.Show("test if IfThen statement")
        End If
        MessageBox.Show("test outside IfThen statement")

        Return g_decTotalCost
    End Function
End Module
---------
this is the OptionsForm code
Code:
---------
Public Class frmOptionsForm

    Private Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClose.Click
        Call ConferenceTotal()

        Me.Close()
    End Sub

    Private Sub btnReset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReset.Click
        chkDinner.Checked = False
        chkRegistration.Checked = False
        lstOptions.SelectedIndex = -1
    End Sub

    Public Function ConferenceTotal() As Decimal

        If chkRegistration.Checked = True Then
            g_decTotalCost += g_decRegistration
        End If

        Return g_decTotalCost
    End Function 
End Class
---------
What I can't figure out, ConferenceTotal function works on the OptionsForm, but not on the CalculateModule.  The I added the 1 to ConferenceTotal so I didn't get some error, and didn't want to delete and retype later.  Somehow I have something off when referencing the chkRegistration on the OptionsForm.  The outside IfThen statement messagebox pops up when I call CalcuateTotal1 function.

It's possible I'm not fully understand module and what can be used in it.  The books says they're meant to contain general purpose procedures, functions, and declarations that are available to all forms in a project.  So, maybe I'm not allowed to use radio buttons, checkboxes, lists and so forth in specific forms.

Once I understand this, I can do the rest.]]></description>
			<content:encoded><![CDATA[<div>I'm in the chapter in my Visual Basic book on creating multiple forms, modules, and menus.  <br />
<br />
The first problem, is to create a problem that calculates a total for going to conference.   <br />
<br />
it gives MainForm and OptionsForm design.  Below is what I recreated<br />
<img src="http://www.vbforums.com/attachment.php?attachmentid=100295&amp;d=1368899024" border="0" alt="Name:  MainForm..jpg
Views: 85
Size:  33.9 KB"  /><img src="http://www.vbforums.com/attachment.php?attachmentid=100297&amp;d=1368899025" border="0" alt="Name:  OptionsForm.jpg
Views: 55
Size:  38.2 KB"  /><br />
<br />
The assignment<div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			The Conference Options form allows the user to select the regular conference registration, the optional opening night dinner, and an optional preconference workshop; user cannot select optional events without selecting registration.  When the <i>Close</i> button is clicked, this form should be removed from the screen and the total registration fee should appear on the main form
			
		<hr />
	</div>
</div>It also gives a tip about using a global variable to hold the total cost, so both form will have access to the variable<br />
<br />
I haven't finished the program and most I can do.  I have module setup in addition to the two forms.<br />
<br />
this is button on the MainForm to get conference info and total<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"> Private Sub btnConferenceOptions_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConferenceOptions.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; '==================================<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'declare variables<br />
&nbsp; &nbsp; &nbsp; &nbsp; '=================================<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim frmOptionsForm As New frmOptionsForm<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; frmOptionsForm.ShowDialog()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; '==================================<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'display total<br />
&nbsp; &nbsp; &nbsp; &nbsp; '=================================<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; lblTotal.Text = g_decTotalCost.ToString(&quot;c&quot;)<br />
&nbsp; &nbsp; End Sub</code><hr />
</div>this is the module<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Module CalucateModule<br />
&nbsp; &nbsp; '==================================<br />
&nbsp; &nbsp; 'declare global constants and variables<br />
&nbsp; &nbsp; '==================================<br />
&nbsp; &nbsp; Public Const g_decRegistration As Decimal = 895<br />
&nbsp; &nbsp; Public Const g_decDinner As Decimal = 30<br />
&nbsp; &nbsp; Public Const g_decECommerce As Decimal = 295<br />
&nbsp; &nbsp; Public Const g_decWeb As Decimal = 295<br />
&nbsp; &nbsp; Public Const g_decVisualBasic As Decimal = 395<br />
&nbsp; &nbsp; Public Const g_decNetworkSecurity As Decimal = 395<br />
&nbsp; &nbsp; Public g_decTotalCost As Decimal<br />
<br />
&nbsp; &nbsp; Public Function ConferenceTotal1() As Decimal<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If frmOptionsForm.chkRegistration.Checked = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g_decTotalCost += g_decRegistration<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;test if IfThen statement&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;test outside IfThen statement&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Return g_decTotalCost<br />
&nbsp; &nbsp; End Function<br />
End Module</code><hr />
</div>this is the OptionsForm code<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Public Class frmOptionsForm<br />
<br />
&nbsp; &nbsp; Private Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClose.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Call ConferenceTotal()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.Close()<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnReset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReset.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; chkDinner.Checked = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; chkRegistration.Checked = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; lstOptions.SelectedIndex = -1<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Public Function ConferenceTotal() As Decimal<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If chkRegistration.Checked = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g_decTotalCost += g_decRegistration<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Return g_decTotalCost<br />
&nbsp; &nbsp; End Function <br />
End Class</code><hr />
</div>What I can't figure out, ConferenceTotal function works on the OptionsForm, but not on the CalculateModule.  The I added the 1 to ConferenceTotal so I didn't get some error, and didn't want to delete and retype later.  Somehow I have something off when referencing the chkRegistration on the OptionsForm.  The outside IfThen statement messagebox pops up when I call CalcuateTotal1 function.<br />
<br />
It's possible I'm not fully understand module and what can be used in it.  The books says they're meant to contain general purpose procedures, functions, and declarations that are available to all forms in a project.  So, maybe I'm not allowed to use radio buttons, checkboxes, lists and so forth in specific forms.<br />
<br />
Once I understand this, I can do the rest.</div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
				<div style="padding:10px">
				<img class="attach" src="http://www.vbforums.com/attachment.php?attachmentid=100295&amp;stc=1&amp;d=1368899024" alt="" />&nbsp;<img class="attach" src="http://www.vbforums.com/attachment.php?attachmentid=100297&amp;stc=1&amp;d=1368899025" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>lovekeiiiy</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722125-Noob-checkbox-function-module-assistance</guid>
		</item>
		<item>
			<title>VS 2010 how to get information from website</title>
			<link>http://www.vbforums.com/showthread.php?722123-how-to-get-information-from-website&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 18:18:55 GMT</pubDate>
			<description>hi guys 
this web site http://www.cma-cgm.com/eBusiness/Tracking/
is Container Tracking company and i must go into their web site to search for my container 
i want program make this search !! not else and see if my container arrived or not !!

and thx !!</description>
			<content:encoded><![CDATA[<div>hi guys <br />
this web site <a rel="nofollow" href="http://www.cma-cgm.com/eBusiness/Tracking/" target="_blank">http://www.cma-cgm.com/eBusiness/Tracking/</a><br />
is Container Tracking company and i must go into their web site to search for my container <br />
i want program make this search !! not else and see if my container arrived or not !!<br />
<br />
and thx !!</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>ahmmkh</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722123-how-to-get-information-from-website</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLVED] pictureboxes and right click menu]]></title>
			<link>http://www.vbforums.com/showthread.php?722111-RESOLVED-pictureboxes-and-right-click-menu&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 14:37:28 GMT</pubDate>
			<description><![CDATA[We have a situation like this:

1. 4 picturebox controls 
2. I want to add or remove picture from picturebux using context meny
3. Contextmenu have to be done with code (no control)

     
Code:
---------
  Dim ctxmnu As New ContextMenu

        Dim item1 As New MenuItem("Add Picture")
        Dim item2 As New MenuItem("Remove")

        AddHandler item1.Click, AddressOf ContextMenuHandler
        AddHandler item2.Click, AddressOf ContextMenuHandler

        ctxmnu.MenuItems.Add(i1)
        ctxmnu.MenuItems.Add(i2)
---------
	 
What we have to do that our program konws which picturebox we want to fill opening fileopen dalog?
	 	
		
	
Code:
---------
	
   Private Sub InputPicture()
        If OpenFileDialog1.ShowDialog(Me) = DialogResult.OK Then
            PictureBox1.Image = Image.FromFile(OpenFileDialog1.FileName)
            PictureBox1.Tag = OpenFileDialog1.FileName
        Else
            OpenFileDialog1.Tag = ""
        End If
    End Sub
---------
I've tried many things to send an argument via InputPicture() which should point to the picturebox we need but without success.]]></description>
			<content:encoded><![CDATA[<div>We have a situation like this:<br />
<br />
1. 4 picturebox controls <br />
2. I want to add or remove picture from picturebux using context meny<br />
3. Contextmenu have to be done with code (no control)<br />
<br />
     <div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; Dim ctxmnu As New ContextMenu<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim item1 As New MenuItem(&quot;Add Picture&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim item2 As New MenuItem(&quot;Remove&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; AddHandler item1.Click, AddressOf ContextMenuHandler<br />
&nbsp; &nbsp; &nbsp; &nbsp; AddHandler item2.Click, AddressOf ContextMenuHandler<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ctxmnu.MenuItems.Add(i1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ctxmnu.MenuItems.Add(i2)</code><hr />
</div>	 <br />
What we have to do that our program konws which picturebox we want to fill opening fileopen dalog?<br />
	 	<br />
		<br />
	<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  Private Sub InputPicture()<br />
&nbsp; &nbsp; &nbsp; &nbsp; If OpenFileDialog1.ShowDialog(Me) = DialogResult.OK Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PictureBox1.Image = Image.FromFile(OpenFileDialog1.FileName)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PictureBox1.Tag = OpenFileDialog1.FileName<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OpenFileDialog1.Tag = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub</code><hr />
</div>I've tried many things to send an argument via InputPicture() which should point to the picturebox we need but without success.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>Goshx</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722111-RESOLVED-pictureboxes-and-right-click-menu</guid>
		</item>
		<item>
			<title>VS 2010 Tabbed web browser error</title>
			<link>http://www.vbforums.com/showthread.php?722109-Tabbed-web-browser-error&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 14:32:15 GMT</pubDate>
			<description><![CDATA[Hello all! I'm currently in the process of re-writing a web browser I had.

Everything has been going well until now. The tab control is being a pain. The video I uploaded below will show you what I mean.

http://youtu.be/EwYWkaBght4

Is there any way I could fix this? It is really annoying, and I haven't found any way to resolve this myself.

Any help would really be nice!


Thank you for taking your time to read my post.]]></description>
			<content:encoded><![CDATA[<div>Hello all! I'm currently in the process of re-writing a web browser I had.<br />
<br />
Everything has been going well until now. The tab control is being a pain. The video I uploaded below will show you what I mean.<br />
<br />

<iframe class="restrain" title="YouTube video player" width="640" height="390" src="//www.youtube.com/embed/EwYWkaBght4?wmode=opaque" frameborder="0"></iframe>
<br />
<br />
Is there any way I could fix this? It is really annoying, and I haven't found any way to resolve this myself.<br />
<br />
Any help would really be nice!<br />
<br />
<br />
Thank you for taking your time to read my post.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>ryanguy426</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722109-Tabbed-web-browser-error</guid>
		</item>
		<item>
			<title>VS 2010 Browser app to bypass work security</title>
			<link>http://www.vbforums.com/showthread.php?722105-Browser-app-to-bypass-work-security&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 14:09:40 GMT</pubDate>
			<description><![CDATA[I run a discussion forum and I have just been told that one of my visitors cannot login to my vbulletin forum due to security restrictions at his workplace. With this in mind, I was wondering if its possible to create some mini app where you enter username/pw and it can login but bypass the security that somehow stops him logging in. He can still view the forum but can't post due to the login issue. I want to get around that.

Any ideas?

Thanks,

Jon]]></description>
			<content:encoded><![CDATA[<div>I run a discussion forum and I have just been told that one of my visitors cannot login to my vbulletin forum due to security restrictions at his workplace. With this in mind, I was wondering if its possible to create some mini app where you enter username/pw and it can login but bypass the security that somehow stops him logging in. He can still view the forum but can't post due to the login issue. I want to get around that.<br />
<br />
Any ideas?<br />
<br />
Thanks,<br />
<br />
Jon</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>Jon12345</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722105-Browser-app-to-bypass-work-security</guid>
		</item>
		<item>
			<title>VS 2008 Error while using recordsets to delete records</title>
			<link>http://www.vbforums.com/showthread.php?722101-Error-while-using-recordsets-to-delete-records&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 13:05:46 GMT</pubDate>
			<description><![CDATA[I am using the following code to delete a record in vb:

"If rspmps2("pmpidno").Value = gvr1.Cells("pmpidno").Value Then
                        rspmps2.Delete()
                        rspmps2.UpdateBatch()"

where rspmps2 is a ADODB record set and gvr1 is a grid view row. but I keep getting the following error message:

"Row handle referred to a deleted row or a row marked for deletion."

Please can somebody assist me in this.]]></description>
			<content:encoded><![CDATA[<div>I am using the following code to delete a record in vb:<br />
<br />
&quot;If rspmps2(&quot;pmpidno&quot;).Value = gvr1.Cells(&quot;pmpidno&quot;).Value Then<br />
                        rspmps2.Delete()<br />
                        rspmps2.UpdateBatch()&quot;<br />
<br />
where rspmps2 is a ADODB record set and gvr1 is a grid view row. but I keep getting the following error message:<br />
<br />
&quot;Row handle referred to a deleted row or a row marked for deletion.&quot;<br />
<br />
Please can somebody assist me in this.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>enigma1810</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722101-Error-while-using-recordsets-to-delete-records</guid>
		</item>
		<item>
			<title>auto run code based on time</title>
			<link>http://www.vbforums.com/showthread.php?722099-auto-run-code-based-on-time&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 12:44:10 GMT</pubDate>
			<description>i have done some research but found nothing on how to run an event based on pc time.


I.e
Say for example a user selects 10pm every day for a file copy to take place how would you set that up in .net</description>
			<content:encoded><![CDATA[<div>i have done some research but found nothing on how to run an event based on pc time.<br />
<br />
<br />
I.e<br />
Say for example a user selects 10pm every day for a file copy to take place how would you set that up in .net</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?25-Visual-Basic-NET">Visual Basic .NET</category>
			<dc:creator>mason84</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722099-auto-run-code-based-on-time</guid>
		</item>
	</channel>
</rss>
