<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Otak Atik [dot] Com &#187; Visual Basic</title>
	<atom:link href="http://www.otakatik.com/category/visual-basic/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.otakatik.com</link>
	<description>Empowering Computer</description>
	<lastBuildDate>Wed, 25 Jan 2012 09:06:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Show MySQL Version On Status Bar</title>
		<link>http://www.otakatik.com/show-mysql-version-on-status-bar/</link>
		<comments>http://www.otakatik.com/show-mysql-version-on-status-bar/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 14:13:18 +0000</pubDate>
		<dc:creator>Edi Kwie</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://www.otakatik.com/?p=76</guid>
		<description><![CDATA[Every time I programmed database system with Visual Basic, I always put MySQL version on status bar so that I always reminded to upgrade MySQL server. To create it, you just need to create a simple procedure. This is the tutorial: 1. Bring your Visual Basic to design mode first, open your MDI form so [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0032/logo.jpg" alt="" /><br />
Every time I programmed database system with Visual Basic, I always put MySQL version on status bar so that I always reminded to upgrade MySQL server. To create it, you just need to create a simple procedure.<span id="more-76"></span></p>
<p>This is the tutorial:</p>
<p>1. Bring your Visual Basic to design mode first, open your MDI form so that you can edit the status bar properties. To open status bar property pages, right click the status bar and then click <strong>Properties</strong> menu.</p>
<p><img title="Right click status bar" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0032/picture-1.jpg" alt="Right click status bar" /></p>
<p>2. In <strong>Property Pages</strong>, click <strong>Panels</strong> tab, insert new panel by click <strong>Insert Panel</strong> button, set Minimum Width to at least <em>2500</em> then click <strong>OK</strong> button. Don’t forget to watch the index of panel.</p>
<p><img title="Insert a new panel" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0032/picture-2.jpg" alt="Insert a new panel" /></p>
<p>3. Then write this script in your MDI main form or you can also write it on module.</p>
<pre name="code" class"ruby">Private Sub versi_server()
Dim rs_versi As New ADODB.Recordset
Dim str_versi As String
'/string sql
On Error GoTo versi_server_Error

str_versi = "SELECT VERSION() AS versi"
'/open recordset
With rs_versi
    .CursorLocation = adUseClient
    .Open str_versi, myconn, adOpenStatic, adLockReadOnly
StatusBar1.Panels(8).Text = "MySQL " &amp; .Fields("versi")
StatusBar1.Panels(10).Text = "Connected"
'Call set_lampu_connect(1)
End With
Set rs_versi = Nothing
'-----------------------------------------------------------------
On Error GoTo 0
Exit Sub

versi_server_Error:
    MsgBox "Got error ! " &amp; vbCrLf &amp; "Error number : " &amp; Err.Number &amp; vbCrLf &amp; "Deskripsi : " &amp; Err.Description &amp; vbCrLf &amp; "in procedure versi_server in [Form]-&gt;frmutama"
End Sub</pre>
<p><img title="Write te script" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0032/picture-3.jpg" alt="Write the script" /></p>
<p>4. After you write it (you can copy paste my script above), call it (versi_server procedure) on <em>Form_Load</em> procedure to load it every time your MDI main is loaded.</p>
<p><em>(article no:0032)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.otakatik.com/show-mysql-version-on-status-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Registry Editor Using VB Script</title>
		<link>http://www.otakatik.com/disable-registry-editor-using-vb-script/</link>
		<comments>http://www.otakatik.com/disable-registry-editor-using-vb-script/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 09:50:28 +0000</pubDate>
		<dc:creator>Edi Kwie</dc:creator>
				<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[Visual basic script]]></category>

		<guid isPermaLink="false">http://www.otakatik.com/disable-registry-editor-using-vb-script/</guid>
		<description><![CDATA[As you know that Registry Editor is a gate that can change the all your Windows registry value. It means if somebody want to destroy your Windows XP just open Registry Editor and change the important. So I want to share the trick to disable or enable Registry Editor with one click&#8230; There are so [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/logo.png" alt="Logo" title="Logo" /><br />
As you know that Registry Editor is a gate that can change the all your Windows registry value. It means if somebody want to destroy your Windows XP just open Registry Editor and change the important. So I want to share the trick to disable or enable Registry Editor with one click&#8230;<br />
<span id="more-29"></span><br />
There are so many tricks to enable / disable Registry Editor but I think this trick is easy enough to do that although we need to writing a script to first time but after your script has done then it&#8217;s be easier, we will use the Visual Basic Script language here.</p>
<p>OK, follow this trick:<br />
1. Open Notepad (or your favorite text editor) to type the script via <strong>Start &#8211; Run</strong> menu and type <code>notepad</code> in textbox then click OK button or press Enter<br />
key.<br />
<img src="http://www.otakatik.com/wp-content/uploads/general/start-run-notepad.jpg" alt="Open notepad" title="Open notepad" /></p>
<p>2. And type the script like this:</p>
<pre name="code" class="vb">
Dim otakatik
ManageRegedit()
Sub ManageRegedit()
Set otakatik=WScript.CreateObject("wscript.shell")
describe="Type 0 or 1 : " &amp; VbCrLf &amp;_
             "[0] -&gt; Enable Regedit." &amp; VbCrLf &amp;_
             "[1] -&gt; Disable Regedit."

question=InputBox(describe, "Edit Regedit",0)
otakatik.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion" &amp;_
                        "\Policies\System\DisableRegistryTools",question,"REG_DWORD"

If question=1 Then
   MsgBox "Registry is disabled.",VbInformation, "Disabled"
Else
   If question=0 Then
      Msgbox "Registry is enabled.",VbInformation, "Enabled"
      otakatik.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion" &amp;_
                                "\Policies\System\DisableRegistryTools"
   Else
      Msgbox "Input 0 or 1 only !",VbInformation, "Wrong Input"
      ManageRegedit()
   End If
End If
End Sub</pre>
<p>You can copy and paste to your notepad.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/type_script_1.jpg" alt="Type script" title="Typing the script" /></p>
<p>3. Save it, click <strong>File &#8211; Save As</strong>.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/save_as_2.jpg" alt="Save As" title="Save As" /></p>
<p>4. Change <strong>Save As Type</strong> to <strong>All Files</strong> and give it the name <code>regedit.vbs</code> (or whatever you want but the extension has to <code>vbs</code>).<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/give_file_name_3.jpg" alt="Save As Type" title="Change type of file" /></p>
<p>5. Then make sure that you have the right file name format, you can see it on Notepad title bar.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/saved_4.jpg" alt="Make sure" title="Ensuring that you have the right file name" /></p>
<p>6. Open your folder that containing <code>regedit.vbs</code> file.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/open_folder_vbs_5.jpg" alt="Open vbs folder" title="Open folder which contains vbs file" /></p>
<p>7. Double click that file and <strong>Edit Regedit</strong> window will opened.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/edit_regedit_6.jpg" alt="Edit Regedit window" title="Edit regedit" /></p>
<p>8. If you fill the textbox with value 0, Registry Editor will enable to open.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/registry_enable_7.jpg" alt="Message box" title="Registry is enabled" /></p>
<p>9. But if you fill it with value 1,<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/type_value_1_8.jpg" alt="Typing value to 1" title="Typing value to 1" /></p>
<p>Registry Editor will disable to open.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/reg_disable_9.jpg" alt="Message box" title="Registry is disabled" /></p>
<p>10. Now, try to open your Registry Editor and you will get a notification that Registry Editor is disabled.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/msgbox_10.jpg" alt="Message box" title="Registry is disabled" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.otakatik.com/disable-registry-editor-using-vb-script/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Make Visual Basic Result Has XP looking</title>
		<link>http://www.otakatik.com/make-visual-basic-result-has-xp-looking/</link>
		<comments>http://www.otakatik.com/make-visual-basic-result-has-xp-looking/#comments</comments>
		<pubDate>Thu, 12 Apr 2007 15:10:41 +0000</pubDate>
		<dc:creator>Edi Kwie</dc:creator>
				<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[manifest file]]></category>

		<guid isPermaLink="false">http://www.otakatik.com/make-visual-basic-result-has-xp-looking/</guid>
		<description><![CDATA[What do you bore with Windows 9x looking at your Visual Basic IDE and project, just turn it to XP looking and you&#8217;ll get a modern looking . OK, follow these steps : 1. Type this script : version="1.0.0.0" processorArchitecture="X86" name="WindowsXP" type="win32" /&#62; Your application description here. type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*" /&#62; at [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0031/logo.jpg" alt="Logo" title="Logo" /><br />
What do you bore with Windows 9x looking at your Visual Basic IDE and project, just turn it to XP looking and you&#8217;ll get a modern looking <img src='http://www.otakatik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .<br />
<span id="more-14"></span><br />
OK, follow these steps :<br />
1. Type this script :</p>
<pre name="code" class="xml">
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestversion="1.0">
<assemblyidentity>
</assemblyidentity>version="1.0.0.0"
processorArchitecture="X86"
name="WindowsXP"
type="win32"
/&gt;
<description>Your application description here.</description>
<dependency>
<dependentassembly>
<assemblyidentity>
</assemblyidentity>type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/&gt;
</dependentassembly>
</dependency>
</assembly></pre>
<p>at your text editor such as <strong>Notepad</strong>.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0031/picture-1.jpg" alt="Write notepad" title="Write notepad" /></p>
<p>2. Save that script with name: <code>application.exe.manifest</code> (in this case I save it as vb.exe.manifest) and save in the same folder that application installed (in my case I save it at C:\Program Files\Microsoft Visual Studio\VB98 folder).<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0031/picture-2.jpg" alt="Save in the same folder" title="Save in the same folder" /></p>
<p>3. And try it with your Visual Basic 6 now, and you can apply this tricks to the other application (but that&#8217;s not always work).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.otakatik.com/make-visual-basic-result-has-xp-looking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

