<?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</title>
		<link>http://www.vbforums.com/</link>
		<description>Visual Basic Discussions plus .NET, C#, game programming, and more (http://www.VBForums.com)</description>
		<language>en</language>
		<lastBuildDate>Sun, 19 May 2013 00:35:17 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.vbforums.com/images/misc/rss.png</url>
			<title>VBForums</title>
			<link>http://www.vbforums.com/</link>
		</image>
		<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>peraph Dsum..???? in query</title>
			<link>http://www.vbforums.com/showthread.php?722127-peraph-Dsum-in-query&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 18:54:10 GMT</pubDate>
			<description><![CDATA[Have 2 table:
table_total and table_single.

all tables have field Account, Amount and Cod

i need to summ all value in Amount in table_single, based the match/join Account>Account and Cod>Cod and update table_total amount from the realted summ of Amount from table table_single.

Googoling i have see Dsum, is correct? if yes how to via query?

Tks.]]></description>
			<content:encoded><![CDATA[<div>Have 2 table:<br />
table_total and table_single.<br />
<br />
all tables have field Account, Amount and Cod<br />
<br />
i need to summ all value in Amount in table_single, based the match/join Account&gt;Account and Cod&gt;Cod and update table_total amount from the realted summ of Amount from table table_single.<br />
<br />
Googoling i have see Dsum, is correct? if yes how to via query?<br />
<br />
Tks.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?3-Database-Development">Database Development</category>
			<dc:creator>luca90</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722127-peraph-Dsum-in-query</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: 66
Size:  33.9 KB"  /><img src="http://www.vbforums.com/attachment.php?attachmentid=100297&amp;d=1368899025" border="0" alt="Name:  OptionsForm.jpg
Views: 41
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>Dilemma with Using a Form and textbox with Access</title>
			<link>http://www.vbforums.com/showthread.php?722119-Dilemma-with-Using-a-Form-and-textbox-with-Access&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 17:35:05 GMT</pubDate>
			<description><![CDATA[I think this is the right forum since the question is db related really. 
I had to build this app in Access, because that is the only thing I'm allowed to code in at the office.

I created a form and put some labels and textboxes on it. One box is txtNotes, where I put notes on particular records (yes they are coming from the db, but the question is more about the object).  Initially, I wanted to have a vertical scrollbar on this large text box, so that when the note was too large, the user could scroll down.  I found that on the Access Form, the textbox has to have focus to show the scrollbar.  That was fine.  I set focus to it as the last step each time.  

Then I encountered a new issue.  I was using txtNotes.Text = RS("notes") and eventually, one of my notes was too long and I got an error telling me so.  To fix this, I switched from txtNotes.Text to txtNotes.Value.  That solved the "too long" problem, but created a new problem.  Now when .SetFocus kicks in, the entire contents of the box is highlighted.

So the problem is, if I don't Set Focus, then I don't get scrollbars.  If I do set focus, then my text gets highlighted.  I could set .Value back to .text, but then some of my notes will be too long.  (BTW, what is the limit, I haven't found it anywhere).

So that's it.  Suggestions? 
I should mention that the text in the box is a mix of English and Chinese, so any ideas that involve counting characters and acting accordingly will be hard to implement with any accuracy.

Thanks.]]></description>
			<content:encoded><![CDATA[<div>I think this is the right forum since the question is db related really. <br />
I had to build this app in Access, because that is the only thing I'm allowed to code in at the office.<br />
<br />
I created a form and put some labels and textboxes on it. One box is txtNotes, where I put notes on particular records (yes they are coming from the db, but the question is more about the object).  Initially, I wanted to have a vertical scrollbar on this large text box, so that when the note was too large, the user could scroll down.  I found that on the Access Form, the textbox has to have focus to show the scrollbar.  That was fine.  I set focus to it as the last step each time.  <br />
<br />
Then I encountered a new issue.  I was using txtNotes.Text = RS(&quot;notes&quot;) and eventually, one of my notes was too long and I got an error telling me so.  To fix this, I switched from txtNotes.Text to txtNotes.Value.  That solved the &quot;too long&quot; problem, but created a new problem.  Now when .SetFocus kicks in, the entire contents of the box is highlighted.<br />
<br />
So the problem is, if I don't Set Focus, then I don't get scrollbars.  If I do set focus, then my text gets highlighted.  I could set .Value back to .text, but then some of my notes will be too long.  (BTW, what is the limit, I haven't found it anywhere).<br />
<br />
So that's it.  Suggestions? <br />
I should mention that the text in the box is a mix of English and Chinese, so any ideas that involve counting characters and acting accordingly will be hard to implement with any accuracy.<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?37-Office-Development">Office Development</category>
			<dc:creator>wengang</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722119-Dilemma-with-Using-a-Form-and-textbox-with-Access</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLVED] "Attempt to write a read-only database"]]></title>
			<link>http://www.vbforums.com/showthread.php?722117-RESOLVED-quot-Attempt-to-write-a-read-only-database-quot&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 17:10:33 GMT</pubDate>
			<description>Hi,

I have developed a program that connects to a .db database.
When I debug it, it works fine as the database on my computer is not set to read only (when I check by right clicking the file and going to properties).
However when I build the project and install it on another machine, the database somehow gets set to read only and I get the error that is in my title.

Does anybody know how I would go about solving this?
Thanks</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have developed a program that connects to a .db database.<br />
When I debug it, it works fine as the database on my computer is not set to read only (when I check by right clicking the file and going to properties).<br />
However when I build the project and install it on another machine, the database somehow gets set to read only and I get the error that is in my title.<br />
<br />
Does anybody know how I would go about solving this?<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?3-Database-Development">Database Development</category>
			<dc:creator>Karl.Green</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722117-RESOLVED-quot-Attempt-to-write-a-read-only-database-quot</guid>
		</item>
		<item>
			<title>how do display the last customers entry</title>
			<link>http://www.vbforums.com/showthread.php?722115-how-do-display-the-last-customers-entry&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 16:59:07 GMT</pubDate>
			<description>hello everyone
i have a database with customers that i add each day
im trying to figure out how to see the new entries that i add in the same day
how many customers i added in the same day
like a report or something like that
i need a idea where to start this
regards salsa</description>
			<content:encoded><![CDATA[<div>hello everyone<br />
i have a database with customers that i add each day<br />
im trying to figure out how to see the new entries that i add in the same day<br />
how many customers i added in the same day<br />
like a report or something like that<br />
i need a idea where to start this<br />
regards salsa</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?1-Visual-Basic-6-and-Earlier">Visual Basic 6 and Earlier</category>
			<dc:creator>salsa31</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722115-how-do-display-the-last-customers-entry</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><![CDATA[MSHFlexGrid edit problem: textbox won't show]]></title>
			<link>http://www.vbforums.com/showthread.php?722107-MSHFlexGrid-edit-problem-textbox-won-t-show&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 14:23:25 GMT</pubDate>
			<description><![CDATA[I'm working on a program, which included an "editable" grid (MSHFlexGrid). I borrowed code from a VB book, which told me to superimpose a textbox whenever I click a cell.

   With MSHFlexgrid1
        ' Cancel range selection, if any.
        .RowSel = .Row
        .ColSel = .Col
        ' Move the cell editor into place by making it one pixel smaller
        ' than the current cell.
        txtCellEditor.Move .Left + .CellLeft, .Top + .CellTop, _
            .CellWidth - ScaleX(1, vbPixels, vbTwips), _
            .CellHeight - ScaleY(1, vbPixels, vbTwips)
        ' Transfer the contents of the current cell into the TextBox.
        txtCellEditor.Text = .Text
        ' Move the TextBox in front of the grid.
        txtCellEditor.Visible = True
        txtCellEditor.ZOrder
        txtCellEditor.SetFocus
        ' Remember current coordinates for later.
        cellRow = .Row
        cellCol = .Col
    End With

I really don't see any problem with the code. I just don't know why the textbox (txtCellEditor) won't show whenever I invoke the click button on the grid. More surprisingly, the data I enter in the textbox is entered into the grid after the textbox loses focus. Just wondering how to make that textbox appear and let the user see what he is editing.

Hope anyone can help. Thanks in advance!!!]]></description>
			<content:encoded><![CDATA[<div>I'm working on a program, which included an &quot;editable&quot; grid (MSHFlexGrid). I borrowed code from a VB book, which told me to superimpose a textbox whenever I click a cell.<br />
<br />
   With MSHFlexgrid1<br />
        ' Cancel range selection, if any.<br />
        .RowSel = .Row<br />
        .ColSel = .Col<br />
        ' Move the cell editor into place by making it one pixel smaller<br />
        ' than the current cell.<br />
        txtCellEditor.Move .Left + .CellLeft, .Top + .CellTop, _<br />
            .CellWidth - ScaleX(1, vbPixels, vbTwips), _<br />
            .CellHeight - ScaleY(1, vbPixels, vbTwips)<br />
        ' Transfer the contents of the current cell into the TextBox.<br />
        txtCellEditor.Text = .Text<br />
        ' Move the TextBox in front of the grid.<br />
        txtCellEditor.Visible = True<br />
        txtCellEditor.ZOrder<br />
        txtCellEditor.SetFocus<br />
        ' Remember current coordinates for later.<br />
        cellRow = .Row<br />
        cellCol = .Col<br />
    End With<br />
<br />
I really don't see any problem with the code. I just don't know why the textbox (txtCellEditor) won't show whenever I invoke the click button on the grid. More surprisingly, the data I enter in the textbox is entered into the grid after the textbox loses focus. Just wondering how to make that textbox appear and let the user see what he is editing.<br />
<br />
Hope anyone can help. Thanks in advance!!!</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?1-Visual-Basic-6-and-Earlier">Visual Basic 6 and Earlier</category>
			<dc:creator>jlynoel25</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722107-MSHFlexGrid-edit-problem-textbox-won-t-show</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>Connection string data source name</title>
			<link>http://www.vbforums.com/showthread.php?722103-Connection-string-data-source-name&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 13:08:50 GMT</pubDate>
			<description><![CDATA[I have written my first app using a database. One of my connection string is as follows,

m_cn1.ConnectionString = "Data Source=.\SQLEXPRESS; AttachDbFilename = " & _
        m_cn1mdfPath & ";Integrated Security=True; Connect Timeout=30;" & _
   "User Instance=True"

I have installed this app on a few computers and all works well, but one.

My data source name on that PC is "SDCO".

My question is, is there a way to determine what the datasource name is and assign it to a string?

something like 

public condatasourcename as string = my data source name on this PC

m_cn1.ConnectionString = "Data Source=.\" & condatasourcename & ; AttachDbFilename = " & _
        m_cn1mdfPath & ";Integrated Security=True; Connect Timeout=30;" & _
   "User Instance=True"]]></description>
			<content:encoded><![CDATA[<div>I have written my first app using a database. One of my connection string is as follows,<br />
<br />
<font color="#FFD700">m_cn1.ConnectionString</font> = &quot;Data Source=.\<font color="#00FF00">SQLEXPRESS</font>; AttachDbFilename = &quot; &amp; _<br />
        <font color="#FFD700">m_cn1mdfPath</font> &amp; &quot;;Integrated Security=True; Connect Timeout=30;&quot; &amp; _<br />
   &quot;User Instance=True&quot;<br />
<br />
I have installed this app on a few computers and all works well, but one.<br />
<br />
My data source name on that PC is &quot;<font color="#00FF00">SDCO</font>&quot;.<br />
<br />
My question is, is there a way to determine what the datasource name is and assign it to a string?<br />
<br />
something like <br />
<br />
public condatasourcename as string = my data source name on this PC<br />
<br />
<font color="#FFD700">m_cn1.ConnectionString</font> = &quot;Data Source=.\<font color="#00FF00">&quot; &amp; condatasourcename &amp; </font>; AttachDbFilename = &quot; &amp; _<br />
        <font color="#FFD700">m_cn1mdfPath</font> &amp; &quot;;Integrated Security=True; Connect Timeout=30;&quot; &amp; _<br />
   &quot;User Instance=True&quot;</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?3-Database-Development">Database Development</category>
			<dc:creator>jkatshor</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722103-Connection-string-data-source-name</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>
