<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8582723520471196104</id><updated>2024-09-10T10:22:29.561-07:00</updated><category term="VB.NET"/><category term="Visual Basic"/><category term="Basic Controls"/><category term="Executing SQL Queries"/><category term="SQL"/><category term="SQL Server 2005"/><category term="User Control"/><category term="Textbox"/><title type='text'>My Code Snippets</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jcm-mcs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://jcm-mcs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8582723520471196104.post-6042436586770304538</id><published>2010-12-17T02:37:00.000-08:00</published><updated>2011-09-18T03:37:57.923-07:00</updated><title type='text'>Container Transparency in HTML</title><content type='html'>As a beginner in web design, I’ve recently found out two ways to apply transparency to a container. First one makes the container and all its contents like image or text transparent.&lt;pre&gt;&amp;lt;div style=&quot;filter:alpha(opacity=0.8); opacity:0.8;&quot;&amp;gt;&lt;br&gt;&amp;lt;p&amp;gt;Some contents here!&amp;lt;/p&amp;gt;&lt;br&gt;&amp;lt;/div&amp;gt; &lt;/pre&gt;The &lt;b&gt;filter:alpha(opacity=0.8)&lt;/b&gt; enables Internet Explorer 8 and Opera 9.x to make transparency.&lt;br&gt;&lt;br /&gt;&lt;p&gt;While this certainly should work across well known browsers, there are times when you only need the actual container transparent but not its content. Accomplishing such requirement is easy. You only need to use a CSS property rgba which stands for RED-GREEN-BLUE-ALPHA spectrum. ALPHA value is where you would put your transparency value.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;To use:&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&amp;lt; div style=&quot;background-color: rgba ( 255, 0, 0, 0.5 )&quot; &amp;gt;&lt;br&gt;&amp;lt;p&amp;gt;Some contents here!&amp;lt;/p&amp;gt;&lt;br&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Notice the text in this demo does not appear transparent but rather opaque against it&#39;s background.&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://jcm-mcs.blogspot.com/feeds/6042436586770304538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jcm-mcs.blogspot.com/2010/12/container-transparency-in-html.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/6042436586770304538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/6042436586770304538'/><link rel='alternate' type='text/html' href='http://jcm-mcs.blogspot.com/2010/12/container-transparency-in-html.html' title='Container Transparency in HTML'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8582723520471196104.post-3504347381875094960</id><published>2010-12-10T02:39:00.000-08:00</published><updated>2011-09-18T03:40:06.888-07:00</updated><title type='text'>How Do You Extract Image from a Flash File Library?</title><content type='html'>&lt;p&gt;Even with the Adobe Flash CS3 Professional, a tool to extract images into image files is not provided. But, this is how you can do just that – so easy!  &lt;ul&gt; &lt;li&gt;Open the flash project file aka the .fla source file in Adobe Flash editor.  &lt;li&gt;Press &quot;CTRL+L&quot; to access a flash library window  &lt;li&gt;Locate the desired image and select.  &lt;li&gt;Create a new flash document (File&amp;gt;&amp;gt;New)  &lt;li&gt;Drag&#39;N&#39;drop the bitmap symbol to the new flash library  &lt;li&gt;Drag&#39;n&#39;drop the chosen symbol from the new library window to the stage (The white canvas area).  &lt;li&gt;Export the flash file as image. Go to &quot;File&amp;gt;&amp;gt;Export Image&quot; and save the picture as a JPG or PNG file.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;There is no way you can export multiple selections. Whatever is placed inside the stage will be exported. This should work for you without problem.&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://jcm-mcs.blogspot.com/feeds/3504347381875094960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jcm-mcs.blogspot.com/2010/12/how-do-you-extract-image-from-flash.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/3504347381875094960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/3504347381875094960'/><link rel='alternate' type='text/html' href='http://jcm-mcs.blogspot.com/2010/12/how-do-you-extract-image-from-flash.html' title='How Do You Extract Image from a Flash File Library?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8582723520471196104.post-3812151767325655111</id><published>2010-12-09T02:43:00.000-08:00</published><updated>2011-09-18T03:44:30.978-07:00</updated><title type='text'>Error When Trying to Attach an Existing Database</title><content type='html'>&lt;p&gt;When trying to attach a SQL 2008 database today, I encountered this error:&lt;/p&gt; &lt;p&gt;&lt;font color=&quot;#c0504d&quot;&gt;&lt;em&gt;CREATE FILE encountered operating system error 5 (error not found) while attempting to open or create the physical file &#39;D:\Databases\&amp;lt;filename&amp;gt;.mdf&#39;. (.Net SqlClient Data Provider)&lt;/em&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;I’ve come across this issue every once in a while but somehow there’s this habit of forgetting the work around. So here, I post this bagger so I wouldn’t have to Google every time.&lt;/p&gt; &lt;p&gt;The error has something to do with SQL Server’s improved security for permissions.&lt;/p&gt; &lt;p&gt;Because I was logged in via SQL Server Authentication, it did not allow me to attach the database that way so that, &lt;u&gt;I had to disconnect from the server and re-logon my Enterprise Manager thru Windows Authentication&lt;/u&gt;. Then, retried attaching my existing SQL database. And it worked!&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://jcm-mcs.blogspot.com/feeds/3812151767325655111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jcm-mcs.blogspot.com/2010/12/error-when-trying-to-attach-existing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/3812151767325655111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/3812151767325655111'/><link rel='alternate' type='text/html' href='http://jcm-mcs.blogspot.com/2010/12/error-when-trying-to-attach-existing.html' title='Error When Trying to Attach an Existing Database'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8582723520471196104.post-7708509045004029363</id><published>2008-12-15T22:44:00.001-08:00</published><updated>2008-12-15T22:51:19.575-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basic Controls"/><category scheme="http://www.blogger.com/atom/ns#" term="Executing SQL Queries"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2005"/><category scheme="http://www.blogger.com/atom/ns#" term="User Control"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>Fill Listview Control Dynamically</title><content type='html'>&lt;blockquote&gt;   &lt;p&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;&lt;strong&gt;Code to fill the listview control in vb.net dynamically&lt;/strong&gt;         &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;Dim rdGetData As SqlClient.SqlDataReader        &lt;br /&gt;Try         &lt;br /&gt;&amp;#160;&amp;#160; If ListView1.Items.Count &amp;gt; 0 Then ListView1.Items.Clear()         &lt;br /&gt;&amp;#160;&amp;#160; SQLCmd.CommandType = CommandType.Text         &lt;br /&gt;&amp;#160;&amp;#160; SQLCmd.CommandText = &amp;quot;SELECT * from table&amp;quot;         &lt;br /&gt;&amp;#160;&amp;#160; rdGetData = SQLCmd.ExecuteReader         &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;&amp;#160;&amp;#160; Dim intCount As Decimal = 0        &lt;br /&gt;&amp;#160;&amp;#160; While rdGetData.Read         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ListView1.Items.Add(Trim(&amp;quot;FieldName&amp;quot;)) &#39;col no. 1         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ListView1.Items(CInt(intCount)).SubItems.Add(Trim         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (rdGetContactsInfo(&amp;quot;FieldName&amp;quot;))) &#39;col no. 2         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ListView1.Items(CInt(intCount)).SubItems.Add(Trim         &lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (rdGetContactsInfo(&amp;quot;FieldName&amp;quot;))) &#39;col no. 3        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; intCount = intCount + 1         &lt;br /&gt;&amp;#160;&amp;#160; End While         &lt;br /&gt;&amp;#160;&amp;#160; &lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;&amp;#160;&amp;#160; rdGetData.Close()        &lt;br /&gt;&amp;#160;&amp;#160; rdGetData = Nothing         &lt;br /&gt;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160; Catch Exp As Exception         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; intNumError = Err.Number()         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MsgBox(&amp;quot;[ &amp;quot; &amp;amp; CStr(intNumError) + &amp;quot; ] &amp;quot; + Err.Description,         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MsgBoxStyle.Critical, &amp;quot; (Program Error)&amp;quot;)         &lt;br /&gt;&amp;#160;&amp;#160; End Try&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;&lt;strong&gt;Code to get selected item in the textbox control into the button&#39;s click event or according to your requirment.          &lt;br /&gt;          &lt;br /&gt;&lt;/strong&gt;TextBox1.Text = ListView1.SelectedItems(0).Text         &lt;br /&gt;TextBox2.Text = ListView1.SelectedItems(0).SubItems(2).Text         &lt;br /&gt;        &lt;br /&gt;&lt;strong&gt;This will copy the selected item&#39;s first value and 2nd value into the textboxes.&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;&lt;strong&gt;To display the selected text in the textbox.&lt;/strong&gt;        &lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;       &lt;br /&gt;Private Sub ListView1_ItemDrag(ByVal sender AsObject,&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ByVal e As System.Windows.Forms.ItemDragEventArgs)        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Handles ListView1.ItemDrag        &lt;br /&gt;&amp;#160;&amp;#160; TextBox1.Text = e.Item.ToString        &lt;br /&gt;End Sub&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;  </content><link rel='replies' type='application/atom+xml' href='http://jcm-mcs.blogspot.com/feeds/7708509045004029363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jcm-mcs.blogspot.com/2008/12/fill-listview-control-dynamically.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/7708509045004029363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/7708509045004029363'/><link rel='alternate' type='text/html' href='http://jcm-mcs.blogspot.com/2008/12/fill-listview-control-dynamically.html' title='Fill Listview Control Dynamically'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8582723520471196104.post-7717698793611933502</id><published>2008-12-14T02:15:00.001-08:00</published><updated>2008-12-14T02:16:47.356-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Executing SQL Queries"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2005"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>Handy Code for Executing SQL Queries</title><content type='html'>&lt;blockquote&gt;   &lt;p&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;Public Function &lt;strong&gt;ExecuteNonQuery&lt;/strong&gt;(ByVal sSQLCmd As String, _        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Optional ByRef sErrMsg As String = &amp;quot;&amp;quot;)        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; As Boolean        &lt;br /&gt;&amp;#160;&amp;#160; Try        &lt;br /&gt;&amp;#160;&amp;#160; Dim strConn As String = GetConnectionString()        &lt;br /&gt;&amp;#160;&amp;#160; Dim cConn As SqlConnection = New SqlConnection(strConn)        &lt;br /&gt;&amp;#160;&amp;#160; cConn.Open()        &lt;br /&gt;&amp;#160;&amp;#160; If cConn.State = ConnectionState.Open Then        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Dim cCmd As SqlCommand = New SqlCommand(sSQLCmd, cConn)        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; cCmd.ExecuteNonQuery()        &lt;br /&gt;&amp;#160;&amp;#160; End If        &lt;br /&gt;&amp;#160;&amp;#160; If cConn.State = ConnectionState.Open Then cConn.Close()        &lt;br /&gt;&amp;#160;&amp;#160; Return True        &lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;Catch ex As Exception       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; sErrMsg = ex.Message        &lt;br /&gt;&amp;#160;&amp;#160; End Try        &lt;br /&gt;End Function&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;  </content><link rel='replies' type='application/atom+xml' href='http://jcm-mcs.blogspot.com/feeds/7717698793611933502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jcm-mcs.blogspot.com/2008/12/handy-code-for-executing-sql-queries_14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/7717698793611933502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/7717698793611933502'/><link rel='alternate' type='text/html' href='http://jcm-mcs.blogspot.com/2008/12/handy-code-for-executing-sql-queries_14.html' title='Handy Code for Executing SQL Queries'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8582723520471196104.post-8343599491481986018</id><published>2008-12-14T02:14:00.001-08:00</published><updated>2008-12-14T02:14:36.425-08:00</updated><title type='text'>Handy Code for Executing SQL Queries - Gives Table</title><content type='html'>&lt;blockquote&gt;   &lt;p&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;Public Function &lt;strong&gt;ExecuteQuery&lt;/strong&gt;(ByVal strQuery As String, _        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Optional ByRef sErrMsg As String = &amp;quot;&amp;quot;)        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; As Data.DataSet&amp;#160; &lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;Dim oDs As New DataSet &lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;       &lt;br /&gt;Try        &lt;br /&gt;Dim strConn As String = GetConnectionString()        &lt;br /&gt;Dim cConn As SqlConnection = New SqlConnection(strConn)        &lt;br /&gt;cConn.Open()        &lt;br /&gt;        &lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;If (cConn.State = ConnectionState.Open) Then       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Dim oDa As New SqlDataAdapter(strQuery, cConn)        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; oDa.Fill(oDs)        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Return oDs        &lt;br /&gt;End If        &lt;br /&gt;If (cConn.State = ConnectionState.Open) Then cConn.Close()        &lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;Catch ex As Exception       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; sErrMsg = ex.Message        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; End Try        &lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;Return oDs &lt;/font&gt;      &lt;br /&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;End Function&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;  </content><link rel='replies' type='application/atom+xml' href='http://jcm-mcs.blogspot.com/feeds/8343599491481986018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jcm-mcs.blogspot.com/2008/12/handy-code-for-executing-sql-queries.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/8343599491481986018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/8343599491481986018'/><link rel='alternate' type='text/html' href='http://jcm-mcs.blogspot.com/2008/12/handy-code-for-executing-sql-queries.html' title='Handy Code for Executing SQL Queries - Gives Table'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8582723520471196104.post-3674154200878280901</id><published>2008-12-14T01:04:00.001-08:00</published><updated>2008-12-14T01:20:40.342-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basic Controls"/><category scheme="http://www.blogger.com/atom/ns#" term="Textbox"/><category scheme="http://www.blogger.com/atom/ns#" term="User Control"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>Creating a TextBox Control During Runtime</title><content type='html'>&lt;blockquote&gt;   &lt;p&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;Public Class Form1 Inherits System.Windows.Forms.Form        &lt;br /&gt;        &lt;br /&gt;&amp;#160;&amp;#160; Private Sub Form1_Load(ByVal sender As System.Object, _        &lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ByValue As System.EventArgs) _       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Handles MyBase.Load&amp;#160; &lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;&amp;#160;&amp;#160; Dim TextBox1 as New TextBox()        &lt;br /&gt;&amp;#160;&amp;#160; With TextBox1        &lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; .Text = &amp;quot;Hello World...&amp;quot;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; .Location = New Point(100,50)         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; .Size = New Size(75,23)         &lt;br /&gt;&amp;#160;&amp;#160; End With&lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;       &lt;br /&gt;&amp;#160;&amp;#160; Me.Controls.Add(TextBox1)         &lt;br /&gt;End Sub         &lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;1&quot; face=&quot;Courier New&quot;&gt;       &lt;br /&gt;End Class&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;  </content><link rel='replies' type='application/atom+xml' href='http://jcm-mcs.blogspot.com/feeds/3674154200878280901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jcm-mcs.blogspot.com/2008/12/creating-textbox-control-during-runtime.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/3674154200878280901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8582723520471196104/posts/default/3674154200878280901'/><link rel='alternate' type='text/html' href='http://jcm-mcs.blogspot.com/2008/12/creating-textbox-control-during-runtime.html' title='Creating a TextBox Control During Runtime'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>