<?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>Visual Basic .NET Forums</title>
		<link>http://www.vbdotnetforums.com/</link>
		<description>Visual Basic .NET forum and discussion area.  The exclusive Visual Studio VB.NET community.  Membership is FREE</description>
		<language>en</language>
		<lastBuildDate>Mon, 27 May 2013 02:29:56 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.vbdotnetforums.com/images/misc/rss.png</url>
			<title>Visual Basic .NET Forums</title>
			<link>http://www.vbdotnetforums.com/</link>
		</image>
		<item>
			<title><![CDATA[Question This tab focus shouldn't be possible]]></title>
			<link>http://www.vbdotnetforums.com/windows-forms/57356-tab-focus-shouldnt-possible.html</link>
			<pubDate>Sun, 26 May 2013 23:30:19 GMT</pubDate>
			<description>When I was setting the tab indices for the items on my form, I noticed that I have some radio buttons that do this: 
 
Attachment 3740 (http://www.vbdotnetforums.com/attachments/windows-forms/3740-tab-focus-shouldnt-possible-ss1.png) 
 
For added complication, some of the radio buttons on the form behave this way, while others...</description>
			<content:encoded><![CDATA[<div>When I was setting the tab indices for the items on my form, I noticed that I have some radio buttons that do this:<br />
<br />
<a href="http://www.vbdotnetforums.com/attachments/windows-forms/3740d1369610590-tab-focus-shouldnt-possible-ss1.png"  title="Name:  ss1.png
Views: 1
Size:  2.9 KB">ss1.png</a><br />
<br />
For added complication, some of the radio buttons on the form behave this way, while others follow the normal tab focus rules.<br />
<br />
I have been assured that this is 100% impossible, that tab doesn't ever move between individual controls inside a container, and that you can never give focus to an unchecked radio button.  But apparently you can and I'd very much like to find out why and how I can emulate or remove this behavior.  Anyone up to it?<br />
<br />
I'm using Visual Studio 2012.</div>


	<div style="padding:10px">

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
			<ul>
			<li>
	<img class="inlineimg" src="http://www.vbdotnetforums.com/images/attach/png.gif" alt="File Type: png" />
	<a href="http://www.vbdotnetforums.com/attachments/windows-forms/3740d1369610590-tab-focus-shouldnt-possible-ss1.png" target="_blank">ss1.png</a> 
(2.9 KB)
</li>
			</ul>
			</fieldset>
	

	

	</div>
]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/windows-forms/">Windows Forms</category>
			<dc:creator>katz</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/windows-forms/57356-tab-focus-shouldnt-possible.html</guid>
		</item>
		<item>
			<title>Question VS Error:The project file could not be loaded.Root element is missing.</title>
			<link>http://www.vbdotnetforums.com/vs-net-general-discussion/57355-vs-error-project-file-could-not-loaded-root-element-missing.html</link>
			<pubDate>Sun, 26 May 2013 18:13:14 GMT</pubDate>
			<description>Tittle says it all so how do I fix it? :confused: 
 
Here I also have picture of error. 
 
Attachment 3739 (http://www.vbdotnetforums.com/attachments/vs-net-general-discussion/3739-vs-error-project-file-could-not-loaded-root-element-missing-mvs-error.png) 
 
EDIT: I fogot to mention that it is happening only for C++ projects.</description>
			<content:encoded><![CDATA[<div>Tittle says it all so how do I fix it? :confused:<br />
<br />
Here I also have picture of error.<br />
<br />
<a href="http://www.vbdotnetforums.com/attachments/vs-net-general-discussion/3739d1369591742-vs-error-project-file-could-not-loaded-root-element-missing-mvs-error.png"  title="Name:  MVS error.png
Views: 2
Size:  22.9 KB">MVS error.png</a><br />
<br />
EDIT: I fogot to mention that it is happening only for C++ projects.</div>


	<div style="padding:10px">

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
			<ul>
			<li>
	<img class="inlineimg" src="http://www.vbdotnetforums.com/images/attach/png.gif" alt="File Type: png" />
	<a href="http://www.vbdotnetforums.com/attachments/vs-net-general-discussion/3739d1369591742-vs-error-project-file-could-not-loaded-root-element-missing-mvs-error.png" target="_blank">MVS error.png</a> 
(22.9 KB)
</li>
			</ul>
			</fieldset>
	

	

	</div>
]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/vs-net-general-discussion/">VS.NET General Discussion</category>
			<dc:creator>CroNiXer</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/vs-net-general-discussion/57355-vs-error-project-file-could-not-loaded-root-element-missing.html</guid>
		</item>
		<item>
			<title>Resolved Masked amount(currency) textbox</title>
			<link>http://www.vbdotnetforums.com/windows-forms/57345-masked-amount-currency-textbox.html</link>
			<pubDate>Sun, 26 May 2013 03:48:52 GMT</pubDate>
			<description>How can I do masked amount textbox like below, you can watch that a very short video for my aim.:confused: 
 
https://www.youtube.com/watch?v=iRm1Buny7Qc</description>
			<content:encoded><![CDATA[<div>How can I do masked amount textbox like below, you can watch that a very short video for my aim.:confused:<br />
<br />
<a href="https://www.youtube.com/watch?v=iRm1Buny7Qc" target="_blank">https://www.youtube.com/watch?v=iRm1Buny7Qc</a></div>

]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/windows-forms/">Windows Forms</category>
			<dc:creator>Socarsky</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/windows-forms/57345-masked-amount-currency-textbox.html</guid>
		</item>
		<item>
			<title>Anyone can help me using JSON Parse?</title>
			<link>http://www.vbdotnetforums.com/third-party-products/57332-anyone-can-help-me-using-json-parse.html</link>
			<pubDate>Sat, 25 May 2013 02:20:56 GMT</pubDate>
			<description><![CDATA[I'm making a system that getting a JSON response using url stream. to get the response I parse it, now i need to get the name and value inside it... 
 
the JSON response looks like this: 
 
{ 
  "status": true, 
  "data": { 
    "2": "Affidavit of Acknowledgement", 
    "3": "Affidavit of...]]></description>
			<content:encoded><![CDATA[<div>I'm making a system that getting a JSON response using url stream. to get the response I parse it, now i need to get the name and value inside it...<br />
<br />
the JSON response looks like this:<br />
<br />
{<br />
  &quot;status&quot;: true,<br />
  &quot;data&quot;: {<br />
    &quot;2&quot;: &quot;Affidavit of Acknowledgement&quot;,<br />
    &quot;3&quot;: &quot;Affidavit of Assurance&quot;,<br />
    &quot;45&quot;: &quot;Affidavit of Assurance for Ex-KSA&quot;,<br />
    &quot;46&quot;: &quot;Affidavit of Assurance for Fingerprints&quot;,<br />
    &quot;55&quot;: &quot;Affidavit of Declaration and Consent&quot;,<br />
    &quot;48&quot;: &quot;Affidavit of Undertaking for MODA&quot;,<br />
    &quot;47&quot;: &quot;Affidavit of Undertaking for Visa Usage&quot;,<br />
    &quot;1&quot;: &quot;Airline Ticket&quot;<br />
}<br />
}<br />
<br />
then  my codes is like this...<br />
<br />
<br />
Dim rawresp As String<br />
            rawresp = reader.ReadToEnd()<br />
            Dim data As New ArrayList<br />
<br />
            Dim jResults As JObject = JObject.Parse(rawresp)<br />
<br />
            For Each PT As JProperty In jResults.Properties()<br />
<br />
                data.Add(PT.Name)<br />
<br />
<br />
            Next<br />
<br />
            For i = 0 To data.Count - 1<br />
                DocuType.Items.Add(data(i))<br />
            Next <br />
<br />
<br />
which have an output of in the listbox:<br />
<br />
status <br />
data<br />
<br />
now i also want to get the collection inside the &quot;data&quot;, how can i get the value there?... can you help me?</div>

]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/third-party-products/">Third Party Products</category>
			<dc:creator>kiko2max</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/third-party-products/57332-anyone-can-help-me-using-json-parse.html</guid>
		</item>
		<item>
			<title>Question Really strange tabcontrol behavior</title>
			<link>http://www.vbdotnetforums.com/windows-forms/57325-really-strange-tabcontrol-behavior.html</link>
			<pubDate>Fri, 24 May 2013 22:48:18 GMT</pubDate>
			<description><![CDATA[There's some very strange stuff going on here that I can't even start to work out.  Bear with me, as this is rather long. 
 
I need to be able to toggle fields between being disabled and being invisible, and I've got a little subroutine that does it recursively for each control and its children: 
...]]></description>
			<content:encoded><![CDATA[<div>There's some very strange stuff going on here that I can't even start to work out.  Bear with me, as this is rather long.<br />
<br />
I need to be able to toggle fields between being disabled and being invisible, and I've got a little subroutine that does it recursively for each control and its children:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; Public Sub ConcealObject(ByVal Parent As Control)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For Each C As Control In Parent.Controls<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If C.Enabled = False OrElse C.Visible = False Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Conceal(C) 'this just disables (and reveals) or hides (and enables) a control, depending on the setting<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ElseIf C.HasChildren Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ConcealObject(C) 'repeats the loop at the next level down (will keep repeating for as many levels as there are)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next C<br />
&nbsp; &nbsp; End Sub</code><hr />
</div>So when that runs, it'll either turn all the disabled fields to invisible (but enabled) or turn all the invisible fields to diabled (but visible).<br />
<br />
It works for most things, but tabcontrols completely mess it up:<br />
<br />
1.  The program starts out with some fields disabled; when I switch them to invisible, the fields on the tab page that has focus turn invisible, but the fields on the other pages stay disabled.<br />
<br />
2a. Then, when I switch back to disabled (keeping focus on the same tab page), the tab page with focus still works correctly, but <i>all </i>the controls on the other pages are disabled, not just the ones that were previously invisible.<br />
<br />
2b. But here's the really inexplicable (to me) part: If, instead of keeping focus on the same page when I switch back to disabled, I click on a different tab page (one of the pages where the disabled fields should have been hidden, but weren't) and then I switch back to disabled, then <i>all the contents of that tab page disappear and are replaced by the contents of the first tab page</i>.  The page with index 0.  All disabled.<br />
<br />
3b.  If I then click on a different tab (including the one with index 0), it will show the correct controls at least (but all disabled), and then if I switch back to the tab that was displaying the wrong controls, it goes back to normal (but still all disabled).<br />
<br />
I am completely lost.  Does anyone know how this little subroutine could be causing such weird problems?</div>

]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/windows-forms/">Windows Forms</category>
			<dc:creator>katz</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/windows-forms/57325-really-strange-tabcontrol-behavior.html</guid>
		</item>
		<item>
			<title>How to Directly Print a Crystal Reports to Default Client Printer from ASP.NET withou</title>
			<link>http://www.vbdotnetforums.com/vendor-announcements/57307-how-directly-print-crystal-reports-default-client-printer-asp-net-withou.html</link>
			<pubDate>Fri, 24 May 2013 17:27:03 GMT</pubDate>
			<description><![CDATA[*How to Directly Print a Crystal Reports to Default Client Printer from ASP.NET without Preview or Printer Dialog* 
 
In this walkthrough, you'll learn how to *directly print a Crystal Reports (RPT file) to the Default Client printer from an ASP.NET* website without preview! In fact, you'll be able...]]></description>
			<content:encoded><![CDATA[<div><b>How to Directly Print a Crystal Reports to Default Client Printer from ASP.NET without Preview or Printer Dialog</b><br />
<br />
In this walkthrough, you'll learn how to <b>directly print a Crystal Reports (RPT file) to the Default Client printer from an ASP.NET</b> website without preview! In fact, you'll be able to print the RPT report to any installed printer at the client machine without displaying any Printer Dialog at all! And one important thing... <b>it works with any browser on Windows OS like IE (6 or later), Chrome, Firefox, Opera &amp; Safari!</b><br />
<br />
<img src="http://www.neodynamic.com/articles/How-to-Directly-Print-Crystal-Reports-to-Default-Client-Printer-from-ASP-NET-without-Preview-or-Printer-Dialog/Directly-Print-Crystal-Reports-Default-Client-Printer-ASP-NET-without-Preview.jpg" border="0" alt="" /><br />
Directly Print Crystal Reports to Default Client Printer from ASP.NET without Preview or Printer Dialog <br />
<br />
The sample report is a Crystal Reports (RPT) designed to print a products list of the classic and famous MS Northwind Traders database. In a simple ASP.NET webpage, we provide all the needed code in C# and <acronym title="Visual Basic">VB</acronym> to print the rpt sample report file without previewing or displaying any printer dialog by using <a href="http://www.neodynamic.com/products/printing/raw-data/aspnet-mvc" target="_blank">WebClientPrint for ASP.NET</a> solution<br />
<br />
By using <b>WebClientPrint</b> solution in your ASP.NET website, your users will be able to <b>print the Crystal Reports RPT file to the Default client printer</b> as well as to <b>any other installed printer available at the client machine without displaying any print dialog.</b><br />
<br />
<b>Want to add client printing for IE, Firefox &amp; Chrome to CrystalReportViewer?</b> <a href="http://www.neodynamic.com/articles/How-to-add-Custom-Printing-ASP-NET-Crystal-Reports-Viewer-toolbar" target="_blank">How to add Custom Printing options to ASP.NET Crystal Reports Viewer toolbar</a><br />
<br />
<b>Requirements</b><br />
<b>Development/Server-side</b><br />
- <a href="http://www.neodynamic.com/products/printing/raw-data/aspnet-mvc" target="_blank">WebClientPrint 2.0 for ASP.NET</a> (or greater) <br />
- ASP.NET 3.5 (or greater) <br />
- Visual Studio 2010 / VWD 2010 (or greater) <br />
- SAP Crystal Reports for Visual Studio 2010 <br />
- jQuery 1.4.1 (or greater)<br />
<br />
<b>Client-side</b><br />
- WebClientPrint Processor 2.0 for Windows (WCPP) - Part of WebClientPrint Solution <br />
- Adobe Reader<br />
<br />
<b>NOTE:</b> In this guide we used VS 2010, ASP.NET 3.5 &amp; SAP Crystal Reports for Visual Studio 2010 but the same code &amp; concept can be applied to VS 2005/2008 and ASP.NET 2.0 as well as VS 2012 and ASP.NET 4.x with other Crystal Reports editions<br />
<br />
<b>Follow up these steps</b><br />
- Download &amp; install <a href="http://www.neodynamic.com/products/printing/raw-data/aspnet-mvc/download" target="_blank">WebClientPrint for ASP.NET</a><br />
- Open <b>Visual Studio</b> and create a new <b>ASP.NET 3.5 Website</b> naming it <b>PrintCrystalReports</b><br />
- Add a reference to <b>Neodynamic.SDK.WebClientPrint.dll</b> to your project<br />
- Be sure that your website references <b>CrystalDecisions.CrystalReports.Engine.dll</b> and <b>CrystalDecisions.Shared.dll</b><br />
  If they are missing, then please add both references to your project.<br />
- Open your <b>web.config</b> file and add the following entries:<br />
<br />
<system.web><br />
...<br />
<httpHandlers><br />
...   <br />
<add verb="*" path="wcp.axd" type="Neodynamic.SDK.Web.WebClientPrint, Neodynamic.SDK.WebClientPrint"/><br />
...   <br />
</httpHandlers><br />
...<br />
</system.web><br />
<system.webServer><br />
...   <br />
<handlers><br />
...<br />
<add name="WCP" verb="*" path="wcp.axd" type="Neodynamic.SDK.Web.WebClientPrint, Neodynamic.SDK.WebClientPrint"/><br />
...<br />
</handlers><br />
...<br />
</system.webServer><br />
<br />
- Open the <b>default.aspx</b> page and paste the following markup. The task of this page is to try to detect the WCPP and ask the user to install it if it's missing.<br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head runat="server"><br />
<title></title><br />
 <br />
<style><br />
body{font: 13px 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;}        <br />
</style><br />
 <br />
<%-- WCPP-detection meta tag for IE10 --%>       <br />
<%= Neodynamic.SDK.Web.WebClientPrint.GetWcppDetection  MetaTag() %><br />
</head><br />
<body><br />
<form id="form1" runat="server"><br />
<div id="msgInProgress"><br />
<div id="mySpinner" style="width:32px;height:32px"></div><br />
<br /><br />
Detecting WCPP utility at client side... <br />
<br /><br />
Please wait a few seconds...<br />
<br /><br />
</div><br />
<div id="msgInstallWCPP" style="display:none;">    <br />
<h3>#1 Install WebClientPrint Processor (WCPP)!</h3><br />
<p><br />
<strong>WCPP is a native Windows app (without any dependencies!)</strong> that handles all print jobs <br />
generated by the <strong>WebClientPrint ASP.NET component</strong> at the server side. The WCPP <br />
is in charge of the whole printing process and can be <br />
installed on Windows 98, 2000, Me, XP, Vista, Windows 7 and Windows 8 (Desk-mode). It can print to Serial Port RS232 (e.g. COM1), <br />
Parallel Port (e.g. LPT1), your Windows-Installed Printers (USB) and Network/IP Ethernet printers.<br />
</p><br />
<p><br />
The <strong>WCPP</strong> utility <strong>is digitally-signed with a Windows Authenticode</strong> issued by <a href="http://www.digicert.com">DigiCert, Inc.</a>. <strong>Install WCPP only if the <u>Publisher is Neodynamic SRL</u></strong>, otherwise do not proceed. <br /><br /><br />
<a href="http://www.neodynamic.com/downloads/wcpp20-installer.exe" target="_blank">Download and Install WCPP from Neodynamic website</a><br />             <br />
</p>        <br />
<h3>#2 After installing WCPP...</h3><br />
<p><br />
<a href="PrintCrystalReports.aspx">You can go and test WebClientPrint for ASP.NET</a><br />
</p><br />
 <br />
</div><br />
</form><br />
 <br />
<%-- Add Reference to jQuery at Google CDN --%><br />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script><br />
 <br />
<%-- Add Reference to spin.js (an animated spinner) --%><br />
<script src="http://fgnass.github.io/spin.js/dist/spin.min.js"></script><br />
 <br />
<script type="text/javascript"><br />
<br />
var wcppPingDelay_ms = 10000; <br />
<br />
function wcppDetectOnSuccess(){<br />
<%-- WCPP utility is installed at the client side<br />
redirect to WebClientPrint sample page --%><br />
<br />
<%-- get WCPP version --%><br />
var wcppVer = arguments[0];<br />
if(wcppVer == "2.0.0.0")<br />
window.location.href = "PrintCrystalReports.aspx";<br />
else //force to install WCPP v2.0<br />
wcppDetectOnFailure();<br />
}<br />
<br />
function wcppDetectOnFailure() {<br />
<%-- It seems WCPP is not installed at the client side<br />
ask the user to install it --%><br />
$('#msgInProgress').hide();<br />
$('#msgInstallWCPP').show();                <br />
}<br />
<br />
$(document).ready(function () {<br />
<%-- Create the Spinner with options (<a href="http://fgnass.github.io/spin.js/" target="_blank">spin.js</a>) --%><br />
var spinner = new Spinner({<br />
lines: 12, <br />
length: 7, <br />
width: 3, <br />
radius: 10, <br />
color: '#336699', <br />
speed: 1, <br />
trail: 60               <br />
}).spin($('#mySpinner')[0]); <br />
});<br />
<br />
</script><br />
<br />
<%-- WCPP detection script --%>       <br />
<%= Neodynamic.SDK.Web.WebClientPrint.CreateWcppDetect  ionScript() %><br />
<br />
</body><br />
</html><br />
<br />
- The <b>Crystal Reports (RPT)</b> we've created for this sample is a simple product list for <b>MS Northwind Traders</b> database and it has an <b>XML data source</b>. The report looks like the following figure.<br />
<br />
<img src="http://www.neodynamic.com/articles/How-to-Directly-Print-Crystal-Reports-to-Default-Client-Printer-from-ASP-NET-without-Preview-or-Printer-Dialog/sample-crystal-reports-rpt-northwind-traders-products.jpg" border="0" alt="" /><br />
Sample Crystal Reports (RPT) featuring Northwind Traders products list <br />
<br />
- Download and copy both <a href="http://www.neodynamic.com/articles/How-to-Directly-Print-Crystal-Reports-to-Default-Client-Printer-from-ASP-NET-without-Preview-or-Printer-Dialog/MyProducts-NorthwindProducts.zip" target="_blank">MyProducts.rpt &amp; NorthwindProducts.xml</a> files to your website root folder<br />
- Finally, add a <b>new ASPX page</b> and name it <b>PrintCrystalReports.aspx</b> (be sure to <b>UNSELECT</b> the "<b>Place code in separate file</b>" checkbox) <br />
<br />
This page allows your user to print the RPT report file to their local printers. It basically converts/exports the RPT report to PDF format and then passes it to the WCPP utility to print it to the specified printer. Please note that the user is required to have Adobe Reader installed to get this code working.<br />
<br />
Please paste the following markup and code depending on your preferred language i.e. C# or <acronym title="Visual Basic">VB</acronym> on your PrintCrystalReports.aspx file.<br />
<br />
<b><acronym title="Visual Basic">VB</acronym></b><br />
<%@ Page Title="Directly Print Crystal Reports to default client printer without Preview or Print Dialog!" Language="VB" %><br />
<br />
<%@ Import Namespace="System.Data" %><br />
<%@ Import Namespace="System.IO" %><br />
<%@ Import Namespace="Neodynamic.SDK.Web" %><br />
<%@ Import Namespace="CrystalDecisions.CrystalReports.Engine" %><br />
<%@ Import Namespace="CrystalDecisions.Shared" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<script runat="server"><br />
Protected Sub Page_Init(sender As Object, e As EventArgs)<br />
'Print report???<br />
If WebClientPrint.ProcessPrintJob(Request) Then<br />
<br />
'load and set report's data source<br />
Dim ds As New DataSet()<br />
ds.ReadXml(Server.MapPath("~/NorthwindProducts.xml"))<br />
<br />
'create and load rpt in memory<br />
Dim myCrystalReport As New ReportDocument()<br />
myCrystalReport.Load(Server.MapPath("~/MyProducts.rpt"))<br />
myCrystalReport.SetDataSource(ds.Tables(0))<br />
<br />
'Export rpt to a temp PDF and get binary content            <br />
Dim pdfContent As Byte() = Nothing<br />
Using ms As MemoryStream = DirectCast(myCrystalReport.ExportToStream(ExportFo  rmatType.PortableDocFormat), MemoryStream)<br />
pdfContent = ms.ToArray()<br />
End Using<br />
<br />
'Now send this file to the client side for printing<br />
'IMPORTANT: Adobe Reader needs to be installed at the client side<br />
<br />
Dim useDefaultPrinter As Boolean = (Request("useDefaultPrinter") = "checked")<br />
Dim printerName As String = Server.UrlDecode(Request("printerName"))<br />
<br />
'create a temp file name for our PDF report...<br />
Dim fileName As String = Guid.NewGuid().ToString("N") + ".pdf"<br />
<br />
'Create a PrintFile object with the pdf report<br />
Dim file As New PrintFile(pdfContent, fileName)<br />
'Create a ClientPrintJob and send it back to the client!<br />
Dim cpj As New ClientPrintJob()<br />
'set file to print...<br />
cpj.PrintFile = file<br />
'set client printer...<br />
If useDefaultPrinter OrElse printerName = "null" Then<br />
cpj.ClientPrinter = New DefaultPrinter()<br />
Else<br />
cpj.ClientPrinter = New InstalledPrinter(printerName)<br />
End If<br />
'send it...<br />
<br />
cpj.SendToClient(Response)<br />
End If<br />
End Sub<br />
</script><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head id="Head1" runat="server"><br />
<br />
<style><br />
body{font: 13px 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;background:#ddd;color:#333;margin:0;}<br />
h1{background:#333;color:#fff;padding:10px;font: 29px 'Segoe UI Light', 'Tahoma Light', 'Arial Light', 'Helvetica Light', sans-serif;}<br />
.myRow{width:auto;padding:0 20px 0 20px;height:auto;}        <br />
.myMenu{float:left;margin:0 20px 0 0;padding:2px;color:#333;}  <br />
.cBlue{border-bottom: 5px solid #6B89B7;}<br />
.cSand{border-bottom: 5px solid #CCCC66;}<br />
</style><br />
<br />
</head><br />
<body><br />
<%-- Store User's SessionId --%><br />
<input type="hidden" id="sid" name="sid" value="<%=Session.SessionID%>" /><br />
<br />
<form id="form1" runat="server"><br />
<br />
<h1>Directly Print Crystal Reports without Preview or Print Dialog!</h1><br />
<div class="myRow">  <br />
<a href="#">              <br />
<div class="myMenu cBlue">                <br />
<h2>Print Report</h2><br />
<p>Print the RPT report without preview!</p>                <br />
</div>     <br />
</a><br />
<br />
<a href="http://www.neodynamic.com/products/printing/raw-data/aspnet-mvc/" target="_blank">              <br />
<div class="myMenu cSand">                <br />
<h2>About WebClientPrint</h2><br />
<p>Know more about WebClientPrint for ASP.NET</p>                <br />
</div>     <br />
</a><br />
</div>        <br />
<div class="myRow" style="clear:both;background-color:#e3e3e3;" id="pnlPrintSettings"><br />
<br /><br />
<h3>Print the Crystal Reports (RPT) sample.</h3><br />
<label class="checkbox"><br />
<input type="checkbox" id="useDefaultPrinter"> <strong>Use default printer</strong> or...<br />
</label><br />
<div id="loadPrinters"><br />
<br /><br />
WebClientPrint can detect the installed printers in your machine.<br />
<br /><br />
<input type="button" onclick="javascript<b></b>:jsWebClientPrint.getPrinters();" value="Load installed printers..." /><br />
<br />
<br /><br /><br />
</div><br />
<div id="installedPrinters" style="visibility:hidden"><br />
<br /><br />
<label for="installedPrinterName">Select an installed Printer:</label><br />
<select name="installedPrinterName" id="installedPrinterName"></select><br />
</div><br />
<br />
<br /><br /><br />
<input type="button" style="font-size:18px" onclick="javascript<b></b>:jsWebClientPrint.print('useDefaultPrint  er=' + $('#useDefaultPrinter').attr('checked') + '&amp;printerName=' + $('#installedPrinterName').val());" value="Print Report..." /><br />
<br />
<script type="text/javascript"><br />
var wcppGetPrintersDelay_ms = 5000; //5 sec<br />
<br />
function wcpGetPrintersOnSuccess(){<br />
<%-- Display client installed printers --%><br />
if(arguments[0].length > 0){<br />
var p=arguments[0].split("|");<br />
var options = '';<br />
for (var i = 0; i < p.length; i++) {<br />
options += '<option>' + p[i] + '</option>';<br />
}<br />
$('#installedPrinters').css('visibility','visible'  );<br />
$('#installedPrinterName').html(options);<br />
$('#installedPrinterName').focus();<br />
$('#loadPrinters').hide();                                                        <br />
}else{<br />
alert("No printers are installed in your system.");<br />
}<br />
}<br />
<br />
function wcpGetPrintersOnFailure() {<br />
<%-- Do something if printers cannot be got from the client --%><br />
alert("No printers are installed in your system.");<br />
}<br />
</script><br />
</div>    <br />
<br />
</form><br />
<br />
<%-- Add Reference to jQuery at Google CDN --%><br />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script><br />
<br />
<%-- Register the WebClientPrint script code --%><br />
<%=Neodynamic.SDK.Web.WebClientPrint.CreateScript()  %><br />
<br />
</body><br />
</html><br />
<br />
<b>C#</b><br />
<%@ Page Title="Directly Print Crystal Reports to default client printer without Preview or Print Dialog!" Language="C#" %><br />
<br />
<%@ Import Namespace="System.Data" %><br />
<%@ Import Namespace="System.IO" %><br />
<%@ Import Namespace="Neodynamic.SDK.Web" %><br />
<%@ Import Namespace="CrystalDecisions.CrystalReports.Engine" %><br />
<%@ Import Namespace="CrystalDecisions.Shared" %><br />
 <br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<script runat="server"><br />
<br />
protected void Page_Init(object sender, EventArgs e)<br />
{<br />
//Print report???<br />
if (WebClientPrint.ProcessPrintJob(Request))<br />
{<br />
<br />
//load and set report's data source<br />
DataSet ds = new DataSet();<br />
ds.ReadXml(Server.MapPath("~/NorthwindProducts.xml"));<br />
<br />
//create and load rpt in memory<br />
ReportDocument myCrystalReport = new ReportDocument();<br />
myCrystalReport.Load(Server.MapPath("~/MyProducts.rpt"));<br />
myCrystalReport.SetDataSource(ds.Tables[0]);<br />
<br />
//Export rpt to a temp PDF and get binary content<br />
byte[] pdfContent = null;<br />
using (MemoryStream ms = (MemoryStream)myCrystalReport.ExportToStream(Expor  tFormatType.PortableDocFormat))<br />
{<br />
pdfContent = ms.ToArray();<br />
}<br />
<br />
//Now send this file to the client side for printing<br />
//IMPORTANT: Adobe Reader needs to be installed at the client side<br />
<br />
bool useDefaultPrinter = (Request["useDefaultPrinter"] == "checked");<br />
string printerName = Server.UrlDecode(Request["printerName"]);<br />
<br />
//create a temp file name for our PDF report...<br />
string fileName = Guid.NewGuid().ToString("N") + ".pdf";<br />
<br />
//Create a PrintFile object with the pdf report<br />
PrintFile file = new PrintFile(pdfContent, fileName);<br />
//Create a ClientPrintJob and send it back to the client!<br />
ClientPrintJob cpj = new ClientPrintJob();<br />
//set file to print...<br />
cpj.PrintFile = file;<br />
//set client printer...<br />
if (useDefaultPrinter || printerName == "null")<br />
cpj.ClientPrinter = new DefaultPrinter();<br />
else<br />
cpj.ClientPrinter = new InstalledPrinter(printerName);<br />
//send it...<br />
cpj.SendToClient(Response);            <br />
<br />
}<br />
}<br />
<br />
</script><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head id="Head1" runat="server"><br />
<br />
<style><br />
body{font: 13px 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;background:#ddd;color:#333;margin:0;}<br />
h1{background:#333;color:#fff;padding:10px;font: 29px 'Segoe UI Light', 'Tahoma Light', 'Arial Light', 'Helvetica Light', sans-serif;}<br />
.myRow{width:auto;padding:0 20px 0 20px;height:auto;}        <br />
.myMenu{float:left;margin:0 20px 0 0;padding:2px;color:#333;}  <br />
.cBlue{border-bottom: 5px solid #6B89B7;}<br />
.cSand{border-bottom: 5px solid #CCCC66;}<br />
</style><br />
<br />
</head><br />
<body><br />
<%-- Store User's SessionId --%><br />
<input type="hidden" id="sid" name="sid" value="<%=Session.SessionID%>" /><br />
<br />
<form id="form1" runat="server"><br />
<br />
<h1>Directly Print Crystal Reports without Preview or Print Dialog!</h1><br />
<div class="myRow">  <br />
<a href="#">              <br />
<div class="myMenu cBlue">                <br />
<h2>Print Report</h2><br />
<p>Print the RPT report without preview!</p>                <br />
</div>     <br />
</a><br />
<br />
<a href="http://www.neodynamic.com/products/printing/raw-data/aspnet-mvc/" target="_blank">              <br />
<div class="myMenu cSand">                <br />
<h2>About WebClientPrint</h2><br />
<p>Know more about WebClientPrint for ASP.NET</p>                <br />
</div>     <br />
</a><br />
</div>        <br />
<div class="myRow" style="clear:both;background-color:#e3e3e3;" id="pnlPrintSettings"><br />
<br /><br />
<h3>Print the Crystal Reports (RPT) sample.</h3><br />
<label class="checkbox"><br />
<input type="checkbox" id="useDefaultPrinter"> <strong>Use default printer</strong> or...<br />
</label><br />
<div id="loadPrinters"><br />
<br /><br />
WebClientPrint can detect the installed printers in your machine.<br />
<br /><br />
<input type="button" onclick="javascript<b></b>:jsWebClientPrint.getPrinters();" value="Load installed printers..." /><br />
<br />
<br /><br /><br />
</div><br />
<div id="installedPrinters" style="visibility:hidden"><br />
<br /><br />
<label for="installedPrinterName">Select an installed Printer:</label><br />
<select name="installedPrinterName" id="installedPrinterName"></select><br />
</div><br />
<br />
<br /><br /><br />
<input type="button" style="font-size:18px" onclick="javascript<b></b>:jsWebClientPrint.print('useDefaultPrint  er=' + $('#useDefaultPrinter').attr('checked') + '&amp;printerName=' + $('#installedPrinterName').val());" value="Print Report..." /><br />
<br />
<script type="text/javascript"><br />
var wcppGetPrintersDelay_ms = 5000; //5 sec<br />
<br />
function wcpGetPrintersOnSuccess(){<br />
<%-- Display client installed printers --%><br />
if(arguments[0].length > 0){<br />
var p=arguments[0].split("|");<br />
var options = '';<br />
for (var i = 0; i < p.length; i++) {<br />
options += '<option>' + p[i] + '</option>';<br />
}<br />
$('#installedPrinters').css('visibility','visible'  );<br />
$('#installedPrinterName').html(options);<br />
$('#installedPrinterName').focus();<br />
$('#loadPrinters').hide();                                                        <br />
}else{<br />
alert("No printers are installed in your system.");<br />
}<br />
}<br />
<br />
function wcpGetPrintersOnFailure() {<br />
<%-- Do something if printers cannot be got from the client --%><br />
alert("No printers are installed in your system.");<br />
}<br />
</script><br />
</div>    <br />
<br />
</form><br />
<br />
<%-- Add Reference to jQuery at Google CDN --%><br />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script><br />
<br />
<%-- Register the WebClientPrint script code --%><br />
<%=Neodynamic.SDK.Web.WebClientPrint.CreateScript()  %><br />
<br />
</body><br />
</html><br />
<br />
- That's it! Run your website and test it. You can <b>print it to the Default client printer</b> or you can get a <b>list of the installed printers available at the client machine</b> and select one for printing the report.<br />
<br />
<b>Links:</b><br />
<a href="http://www.neodynamic.com/articles/How-to-Directly-Print-Crystal-Reports-to-Default-Client-Printer-from-ASP-NET-without-Preview-or-Printer-Dialog/" target="_blank">This Demos</a><br />
<a href="http://www.neodynamic.com/products/printing/raw-data/aspnet-mvc/articles/" target="_blank">Demos</a><br />
<a href="http://www.neodynamic.com/products/printing/raw-data/aspnet-mvc/download/" target="_blank">Download WebClientPrint for ASP.NET</a><br />
<a href="http://www.neodynamic.com/products/printing/raw-data/aspnet-mvc/" target="_blank">More Information about Neodynamic WebClientPrint for ASP.NET</a><br />
<br />
Neodynamic<br />
NET Components &amp; Controls<br />
<a href="http://www.neodynamic.com" target="_blank">Barcode, Labeling, Printing &amp; Imaging components for .NET by Neodynamic</a></div>

]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/vendor-announcements/">Vendor Announcements</category>
			<dc:creator>Neodynamic</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/vendor-announcements/57307-how-directly-print-crystal-reports-default-client-printer-asp-net-withou.html</guid>
		</item>
		<item>
			<title>Question Control storyboard inside custom control...by code</title>
			<link>http://www.vbdotnetforums.com/windows-presentation-foundation-wpf/57306-control-storyboard-inside-custom-control-code.html</link>
			<pubDate>Fri, 24 May 2013 12:10:50 GMT</pubDate>
			<description><![CDATA[Hello, 
How do I please control (start, stop, pause, go to specific time) a controltemplate storyboard inside a custom control..by code? 
 
The XAML: 
 
Code: 
--------- 
<Window 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
   ...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
How do I please control (start, stop, pause, go to specific time) a controltemplate storyboard inside a custom control..by code?<br />
<br />
The XAML:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;Window<br />
&nbsp; &nbsp; xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;<br />
&nbsp; &nbsp; xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot; xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot; xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; mc:Ignorable=&quot;d&quot; x:Class=&quot;Window6&quot;<br />
&nbsp; &nbsp; Title=&quot;MainWindow&quot; Height=&quot;394&quot; Width=&quot;324&quot;&gt;<br />
&nbsp; &nbsp; &lt;Window.Resources&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- ********** Button template **********--&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;Style x:Key=&quot;Arrow&quot; TargetType=&quot;{x:Type Button}&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Setter Property=&quot;Template&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Setter.Value&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ControlTemplate TargetType=&quot;{x:Type Button}&quot; x:Name=&quot;CTarrow&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ControlTemplate.Resources&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Storyboard x:Key=&quot;Storyboard1&quot; RepeatBehavior=&quot;Forever&quot; AutoReverse=&quot;True&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ColorAnimationUsingKeyFrames Storyboard.TargetProperty=&quot;(Shape.Fill).(SolidColorBrush.Color)&quot; Storyboard.TargetName=&quot;rectangle&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DiscreteColorKeyFrame KeyTime=&quot;0&quot; Value=&quot;#FF0080FF&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DiscreteColorKeyFrame KeyTime=&quot;0:0:0.5&quot; Value=&quot;#FF004D99&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DiscreteColorKeyFrame KeyTime=&quot;0:0:0.8&quot; Value=&quot;#FF0080FF&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ColorAnimationUsingKeyFrames&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/Storyboard&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ControlTemplate.Resources&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Grid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ContentPresenter RecognizesAccessKey=&quot;True&quot; SnapsToDevicePixels=&quot;{TemplateBinding SnapsToDevicePixels}&quot; HorizontalAlignment=&quot;Center&quot; VerticalAlignment=&quot;Center&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Rectangle x:Name=&quot;rectangle&quot; Height=&quot;30&quot; Width=&quot;50&quot; Fill=&quot;Black&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/Grid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ControlTemplate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/Setter.Value&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/Setter&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/Style&gt;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;/Window.Resources&gt;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;Grid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Button HorizontalAlignment=&quot;Left&quot; VerticalAlignment=&quot;Top&quot; Style=&quot;{DynamicResource Arrow}&quot; x:Name=&quot;Arrow&quot; /&gt;<br />
&nbsp;  &lt;/Grid&gt;<br />
&lt;/Window&gt;</code><hr />
</div>In these 3 attemps, the debugger complains about not being able to resolve 'rectangle':<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Dim myStoryboard As New Storyboard<br />
myStoryboard = Arrow.FindResource(&quot;Storyboard1&quot;)<br />
myStoryboard.Begin()</code><hr />
</div><div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Dim myStoryboard As New Storyboard<br />
myStoryboard = CType(Me.Resources(&quot;Storyboard1&quot;), Storyboard)<br />
myStoryboard.Begin(Arrow)</code><hr />
</div><div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Dim myStoryboard As Storyboard = TryCast(Arrow.Template.Resources(&quot;Storyboard1&quot;), Storyboard)<br />
If myStoryboard IsNot Nothing Then<br />
&nbsp; myStoryboard.Begin(Arrow)<br />
End If</code><hr />
</div>With this one, I can verify that neither the template is not found:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Dim ct As ControlTemplate = TryCast(Me.FindName(&quot;CTarrow&quot;), ControlTemplate)<br />
If ct IsNot Nothing Then<br />
&nbsp;  Debug.Print(&quot;ControlTemplate found&quot;)<br />
&nbsp;  Dim sb As Storyboard = TryCast(ct.Resources(&quot;Storyboard1&quot;), Storyboard)<br />
&nbsp;  If sb IsNot Nothing Then<br />
&nbsp; &nbsp;  sb.Begin()<br />
&nbsp; &nbsp;  Debug.Print(&quot;Storyboard found&quot;)<br />
&nbsp;  End If<br />
End If</code><hr />
</div>Please help!! ;-)</div>

]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/windows-presentation-foundation-wpf/">Windows Presentation Foundation (WPF)</category>
			<dc:creator>Jayme65</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/windows-presentation-foundation-wpf/57306-control-storyboard-inside-custom-control-code.html</guid>
		</item>
		<item>
			<title>Random Code bit for textbox values: no need to respond</title>
			<link>http://www.vbdotnetforums.com/test-zone/57301-random-code-bit-textbox-values-no-need-respond.html</link>
			<pubDate>Thu, 23 May 2013 12:20:23 GMT</pubDate>
			<description><![CDATA[PrivateSub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click 
'clears each box back to zero so it does not stack. 
onehun.Text = "0" 
fifty.Text = "0" 
twenty.Text = "0" 
ten.Text = "0" 
five.Text = "0" 
two.Text = "0" 
one.Text = "0" 
pfive.Text = "0"]]></description>
			<content:encoded><![CDATA[<div><span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Private</font></span><span style="font-family: Consolas"><font color="#0000ff">Sub</font></span><span style="font-family: Consolas"> Button1_Click(sender </span><span style="font-family: Consolas"><font color="#0000ff">As</font></span><span style="font-family: Consolas"> System.</span><span style="font-family: Consolas"><font color="#2b91af">Object</font></span><span style="font-family: Consolas">, e </span><span style="font-family: Consolas"><font color="#0000ff">As</font></span><span style="font-family: Consolas"> System.</span><span style="font-family: Consolas"><font color="#2b91af">EventArgs</font></span><span style="font-family: Consolas">) </span><span style="font-family: Consolas"><font color="#0000ff">Handles</font></span><span style="font-family: Consolas"> Button1.Click</span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#008000">'clears each box back to zero so it does not stack.</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">onehun.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">fifty.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">twenty.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">ten.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">five.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">two.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">one.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">pfive.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">ptwenty.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">pten.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">pointfive.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#008000">'each of these if statements and loops are designed so that it checks if the'</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#008000">'sum fits inside the ammount of money left to give if it fits it minuses the note from the sum and adds one to how many notes you need.'</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Do</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">If</font></span><span style="font-family: Consolas"> TextBox2.Text / 100 &gt;= 1 </span><span style="font-family: Consolas"><font color="#0000ff">Then</font></span></span><br />
<span style="font-family: Consolas"><span style="font-family: Consolas">onehun.Text = Val(onehun.Text) + 1<br />
TextBox2.Text = Val(TextBox2.Text) - 100<br />
</span></span><span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">End</font></span><span style="font-family: Consolas"><font color="#0000ff">If</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Loop</font></span><span style="font-family: Consolas"><font color="#0000ff">Until</font></span><span style="font-family: Consolas"> TextBox2.Text / 100 &lt; 1 </span><span style="font-family: Consolas"><font color="#0000ff">Or</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">TextBox2.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Do</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">If</font></span><span style="font-family: Consolas"> TextBox2.Text / 50 &gt;= 1 </span><span style="font-family: Consolas"><font color="#0000ff">Then</font></span></span><br />
<span style="font-family: Consolas"><span style="font-family: Consolas">fifty.Text = Val(fifty.Text) + 1<br />
TextBox2.Text = Val(TextBox2.Text) - 50<br />
</span></span><span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">End</font></span><span style="font-family: Consolas"><font color="#0000ff">If</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Loop</font></span><span style="font-family: Consolas"><font color="#0000ff">Until</font></span><span style="font-family: Consolas"> TextBox2.Text / 50 &lt; 1 </span><span style="font-family: Consolas"><font color="#0000ff">Or</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">TextBox2.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Do</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">If</font></span><span style="font-family: Consolas"> TextBox2.Text / 20 &gt;= 1 </span><span style="font-family: Consolas"><font color="#0000ff">Then</font></span></span><br />
<span style="font-family: Consolas"><span style="font-family: Consolas">twenty.Text = Val(twenty.Text) + 1<br />
TextBox2.Text = Val(TextBox2.Text) - 20<br />
</span></span><span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">End</font></span><span style="font-family: Consolas"><font color="#0000ff">If</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Loop</font></span><span style="font-family: Consolas"><font color="#0000ff">Until</font></span><span style="font-family: Consolas"> TextBox2.Text / 20 &lt; 1 </span><span style="font-family: Consolas"><font color="#0000ff">Or</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">TextBox2.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Do</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">If</font></span><span style="font-family: Consolas"> TextBox2.Text / 10 &gt;= 1 </span><span style="font-family: Consolas"><font color="#0000ff">Then</font></span></span><br />
<span style="font-family: Consolas"><span style="font-family: Consolas">ten.Text = Val(ten.Text) + 1<br />
TextBox2.Text = Val(TextBox2.Text) - 10<br />
</span></span><span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">End</font></span><span style="font-family: Consolas"><font color="#0000ff">If</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Loop</font></span><span style="font-family: Consolas"><font color="#0000ff">Until</font></span><span style="font-family: Consolas"> TextBox2.Text / 10 &lt; 1 </span><span style="font-family: Consolas"><font color="#0000ff">Or</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">TextBox2.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Do</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">If</font></span><span style="font-family: Consolas"> TextBox2.Text / 5 &gt;= 1 </span><span style="font-family: Consolas"><font color="#0000ff">Then</font></span></span><br />
<span style="font-family: Consolas"><span style="font-family: Consolas">five.Text = Val(five.Text) + 1<br />
TextBox2.Text = Val(TextBox2.Text) - 5<br />
</span></span><span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">End</font></span><span style="font-family: Consolas"><font color="#0000ff">If</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Loop</font></span><span style="font-family: Consolas"><font color="#0000ff">Until</font></span><span style="font-family: Consolas"> TextBox2.Text / 5 &lt; 1 </span><span style="font-family: Consolas"><font color="#0000ff">Or</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">TextBox2.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Do</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">If</font></span><span style="font-family: Consolas"> TextBox2.Text / 2 &gt;= 1 </span><span style="font-family: Consolas"><font color="#0000ff">Then</font></span></span><br />
<span style="font-family: Consolas"><span style="font-family: Consolas">two.Text = Val(two.Text) + 1<br />
TextBox2.Text = Val(TextBox2.Text) - 2<br />
</span></span><span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">End</font></span><span style="font-family: Consolas"><font color="#0000ff">If</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Loop</font></span><span style="font-family: Consolas"><font color="#0000ff">Until</font></span><span style="font-family: Consolas"> TextBox2.Text / 2 &lt; 1 </span><span style="font-family: Consolas"><font color="#0000ff">Or</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">TextBox2.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Do</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">If</font></span><span style="font-family: Consolas"> TextBox2.Text / 1 &gt;= 1 </span><span style="font-family: Consolas"><font color="#0000ff">Then</font></span></span><br />
<span style="font-family: Consolas"><span style="font-family: Consolas">one.Text = Val(one.Text) + 1<br />
TextBox2.Text = Val(TextBox2.Text) - 1<br />
</span></span><span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">End</font></span><span style="font-family: Consolas"><font color="#0000ff">If</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Loop</font></span><span style="font-family: Consolas"><font color="#0000ff">Until</font></span><span style="font-family: Consolas"> TextBox2.Text / 1 &lt; 1 </span><span style="font-family: Consolas"><font color="#0000ff">Or</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">TextBox2.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Do</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">If</font></span><span style="font-family: Consolas"> TextBox2.Text / 0.5 &gt;= 1 </span><span style="font-family: Consolas"><font color="#0000ff">Then</font></span></span><br />
<span style="font-family: Consolas"><span style="font-family: Consolas">pfive.Text = Val(pfive.Text) + 1<br />
TextBox2.Text = Val(TextBox2.Text) - 0.5<br />
</span></span><span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">End</font></span><span style="font-family: Consolas"><font color="#0000ff">If</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Loop</font></span><span style="font-family: Consolas"><font color="#0000ff">Until</font></span><span style="font-family: Consolas"> TextBox2.Text / 0.5 &lt; 1 </span><span style="font-family: Consolas"><font color="#0000ff">Or</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">TextBox2.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Do</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">If</font></span><span style="font-family: Consolas"> TextBox2.Text / 0.2 &gt;= 1 </span><span style="font-family: Consolas"><font color="#0000ff">Then</font></span></span><br />
<span style="font-family: Consolas"><span style="font-family: Consolas">ptwenty.Text = Val(ptwenty.Text) + 1<br />
TextBox2.Text = Val(TextBox2.Text) - 0.2<br />
</span></span><span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">End</font></span><span style="font-family: Consolas"><font color="#0000ff">If</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Loop</font></span><span style="font-family: Consolas"><font color="#0000ff">Until</font></span><span style="font-family: Consolas"> TextBox2.Text / 0.2 &lt; 1 </span><span style="font-family: Consolas"><font color="#0000ff">Or</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">TextBox2.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Do</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">If</font></span><span style="font-family: Consolas"> TextBox2.Text / 0.1 &gt;= 1 </span><span style="font-family: Consolas"><font color="#0000ff">Then</font></span></span><br />
<span style="font-family: Consolas"><span style="font-family: Consolas">pten.Text = Val(pten.Text) + 1<br />
TextBox2.Text = Val(TextBox2.Text) - 0.1<br />
</span></span><span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">End</font></span><span style="font-family: Consolas"><font color="#0000ff">If</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Loop</font></span><span style="font-family: Consolas"><font color="#0000ff">Until</font></span><span style="font-family: Consolas"> TextBox2.Text / 0.1 &lt; 1 </span><span style="font-family: Consolas"><font color="#0000ff">Or</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">TextBox2.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Do</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">If</font></span><span style="font-family: Consolas"> TextBox2.Text / 0.05 &gt;= 1 </span><span style="font-family: Consolas"><font color="#0000ff">Then</font></span></span><br />
<span style="font-family: Consolas"><span style="font-family: Consolas">pointfive.Text = Val(pointfive.Text) + 1<br />
TextBox2.Text = Val(TextBox2.Text) - 0.05<br />
</span></span><span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">End</font></span><span style="font-family: Consolas"><font color="#0000ff">If</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">Loop</font></span><span style="font-family: Consolas"><font color="#0000ff">Until</font></span><span style="font-family: Consolas"> TextBox2.Text / 0.05 &lt; 1 </span><span style="font-family: Consolas"><font color="#0000ff">Or</font></span></span><br />
<span style="font-family: arial"><span style="font-family: Consolas">TextBox2.Text = </span><span style="font-family: Consolas"><font color="#a31515">&quot;0&quot;</font></span></span><br />
<span style="font-family: Consolas"><span style="font-family: Consolas">&#12288;<br />
</span></span><span style="font-family: arial"><span style="font-family: Consolas"><font color="#0000ff">End</font></span><span style="font-family: Consolas"><font color="#0000ff">Sub<br />
<br />
</font></span><a href="http://www.vbdotnetforums.com/attachments/test-zone/3737d1369311596-random-code-bit-textbox-values-no-need-respond-change-code.jpg"  title="Name:  change code.jpg
Views: 4
Size:  20.0 KB">change code.jpg</a></span></div>


	<div style="padding:10px">

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
			<ul>
			<li>
	<img class="inlineimg" src="http://www.vbdotnetforums.com/images/attach/jpg.gif" alt="File Type: jpg" />
	<a href="http://www.vbdotnetforums.com/attachments/test-zone/3737d1369311596-random-code-bit-textbox-values-no-need-respond-change-code.jpg" target="_blank">change code.jpg</a> 
(20.0 KB)
</li>
			</ul>
			</fieldset>
	

	

	</div>
]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/test-zone/">Test Zone</category>
			<dc:creator>weldos</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/test-zone/57301-random-code-bit-textbox-values-no-need-respond.html</guid>
		</item>
		<item>
			<title>How to create a loop for: adding x number to a textbox, after every y number.</title>
			<link>http://www.vbdotnetforums.com/vb-net-general-discussion/57296-how-create-loop-adding-x-number-textbox-after-every-y-number.html</link>
			<pubDate>Thu, 23 May 2013 07:35:37 GMT</pubDate>
			<description>so pretty much what im looking to do is by using a loop of some sort ( my vb skills isnt that great, so im not entirely familiar with loops) to add 1 to a Textbox (in this case happens to be txtbCat1Items.text) for every 4 in the same text box.  
 
question for reference/better understanding of...</description>
			<content:encoded><![CDATA[<div>so pretty much what im looking to do is by using a loop of some sort ( my <acronym title="Visual Basic">vb</acronym> skills isnt that great, so im not entirely familiar with loops) to add 1 to a Textbox (in this case happens to be txtbCat1Items.text) for every 4 in the same text box. <br />
<br />
question for reference/better understanding of what im trying to do: &quot;For every 4 Category 1 items ordered, the 5th one is free&quot; - so for every 4 items in category 1, add 1 to the items to make it 5, and i need to do this in some sort of loop form. <br />
|<br />
<br />
thankyou</div>

]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/vb-net-general-discussion/">VB.NET General Discussion</category>
			<dc:creator>weldos</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/vb-net-general-discussion/57296-how-create-loop-adding-x-number-textbox-after-every-y-number.html</guid>
		</item>
		<item>
			<title>writing platform independent s/w</title>
			<link>http://www.vbdotnetforums.com/vs-net-general-discussion/57295-writing-platform-independent-s-w.html</link>
			<pubDate>Thu, 23 May 2013 05:41:57 GMT</pubDate>
			<description>Hi, 
i am beginer to vb.net coding.i have wrote a s/w in vb6 and want to upgrade in vb.net using vs2008 and also platform independent.In the vb project I have used API calls to draw line,circle,arc on a picture box.I have wrote my main logic functions in modules and class modules and used global...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
i am beginer to <acronym title="Visual Basic">vb</acronym>.net coding.i have wrote a s/w in vb6 and want to upgrade in <acronym title="Visual Basic">vb</acronym>.net using vs2008 and also platform independent.In the <acronym title="Visual Basic">vb</acronym> project I have used API calls to draw line,circle,arc on a picture box.I have wrote my main logic functions in modules and class modules and used global variables.Is it required to write main logic code in dlls? I want all functions with getting parameters and returning parameters.And how can I manage the API calls? <br />
I am little confused about platform independent code and its requirements!<br />
can anybody help me on this topic?</div>

]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/vs-net-general-discussion/">VS.NET General Discussion</category>
			<dc:creator>Micro</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/vs-net-general-discussion/57295-writing-platform-independent-s-w.html</guid>
		</item>
		<item>
			<title>combine ReadOnlyCollection(of String)</title>
			<link>http://www.vbdotnetforums.com/windows-forms/57294-combine-readonlycollection-string.html</link>
			<pubDate>Thu, 23 May 2013 03:11:23 GMT</pubDate>
			<description>can you combine 2 readonlycollection(of string) ? I tried Directcast(a.union(b),objectmodel.readonlycollection(of string)) but that give me error on casting. Do i need to conect it to an array first?</description>
			<content:encoded><![CDATA[<div>can you combine 2 readonlycollection(of string) ? I tried Directcast(a.union(b),objectmodel.readonlycollecti  on(of string)) but that give me error on casting. Do i need to conect it to an array first?</div>

]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/windows-forms/">Windows Forms</category>
			<dc:creator>Zexor</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/windows-forms/57294-combine-readonlycollection-string.html</guid>
		</item>
		<item>
			<title>Question Question about unbound DataGridView</title>
			<link>http://www.vbdotnetforums.com/winforms-grids/57293-question-about-unbound-datagridview.html</link>
			<pubDate>Thu, 23 May 2013 03:06:25 GMT</pubDate>
			<description><![CDATA[Dear All, 
 
I'm very new in VB.NET. 
I'm now facing a problem on developing unbound datagridview. 
My datagridview consist of 2 column - Column A and column B. 
 
MY problem is when user key in new record on column A and pressed "Tab" or "Enter" button, then i would like the program to check for...]]></description>
			<content:encoded><![CDATA[<div>Dear All,<br />
<br />
I'm very new in <acronym title="Visual Basic">VB</acronym>.NET.<br />
I'm now facing a problem on developing unbound datagridview.<br />
My datagridview consist of 2 column - Column A and column B.<br />
<br />
MY problem is when user key in new record on column A and pressed &quot;Tab&quot; or &quot;Enter&quot; button, then i would like the program to check for duplicate column A value. if column A value existed, then i want the program to prompt message to inform user the new value of column A already exist , and then the cursor must focus on column A. How can i do that?<br />
<br />
And when user key in new record on column A, if column A value not exist, then i want the cursor to focus on column B instead of next record of column A. How can i do that?<br />
<br />
Can anyone help me on it?<br />
<br />
Thank you very much!</div>

]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/winforms-grids/">Winforms Grids</category>
			<dc:creator>XiaoHong</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/winforms-grids/57293-question-about-unbound-datagridview.html</guid>
		</item>
		<item>
			<title>Resolved Using numerical values instead of enums</title>
			<link>http://www.vbdotnetforums.com/vb-net-general-discussion/57291-using-numerical-values-instead-enums.html</link>
			<pubDate>Wed, 22 May 2013 20:51:42 GMT</pubDate>
			<description>Hi all, 
 
I have come across a minor glitch in my plans to store FontStyle values in the database. My plan was to  store the values as base-2 numbers in the database, eg. 
 
regular = 0 
bold = 1 
Italics = 2 
strikethrough = 4 
 
etc etc....</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I have come across a minor glitch in my plans to store FontStyle values in the database. My plan was to  store the values as base-2 numbers in the database, eg.<br />
<br />
regular = 0<br />
bold = 1<br />
Italics = 2<br />
strikethrough = 4<br />
<br />
etc etc.... <br />
<br />
So when I want a bold+italics font, I store the number 3 (this is how the enums work as it is but bold + italics looks like: FontStyle.Bold Or FontStyle.Italics)<br />
<br />
My problem is, I can not figure out how to cast these numbers back to the enum so that New Font() will accept them.<br />
<br />
Has anyone got any hints or suggestions on this issue?<br />
<br />
I appreciate your help :)<br />
<br />
Cheers!</div>

]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/vb-net-general-discussion/">VB.NET General Discussion</category>
			<dc:creator>SnakeRider</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/vb-net-general-discussion/57291-using-numerical-values-instead-enums.html</guid>
		</item>
		<item>
			<title>pdf file can not be found</title>
			<link>http://www.vbdotnetforums.com/windows-forms/57292-pdf-file-can-not-found.html</link>
			<pubDate>Wed, 22 May 2013 19:33:17 GMT</pubDate>
			<description>I have a program call the pdf file is not saved in the database. while in another run in computer pdf file can not be found due to different local disk dictionary. pardon my language a lot wrong. thank you.  
Such coding 
     
---Quote--- 
Sub PersegiPanjang() 
        Dim FileName As String =...</description>
			<content:encoded><![CDATA[<div>I have a program call the pdf file is not saved in the database. while in another run in computer pdf file can not be found due to different local disk dictionary. pardon my language a lot wrong. thank you. <br />
<font color="#333333"><span style="font-family: arial"><br />
</span></font><font color="#333333"><span style="font-family: arial">Such coding<br />
    <div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			Sub PersegiPanjang()<br />
        Dim FileName As String = &quot;D:\KamusMatematika\PDF\Bangun Datar\Definisi Persegi Panjnag.pdf&quot;<br />
        WebBrowser1.Navigate(FileName) <br />
    End Sub
			
		<hr />
	</div>
</div></span></font></div>

]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/windows-forms/">Windows Forms</category>
			<dc:creator>mangian</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/windows-forms/57292-pdf-file-can-not-found.html</guid>
		</item>
		<item>
			<title>Code Help</title>
			<link>http://www.vbdotnetforums.com/windows-forms/57289-code-help.html</link>
			<pubDate>Wed, 22 May 2013 17:18:29 GMT</pubDate>
			<description><![CDATA[Hey guys im trying to code a "seemingly easy program" which turns out not to be easy in my understandings. What im tring to do is have 3 Main Buttons (Function/Up/Down) and an image that constantly changes. When the function button is pressed the image will change from XXX to RUN. Once RUN is...]]></description>
			<content:encoded><![CDATA[<div>Hey guys im trying to code a &quot;seemingly easy program&quot; which turns out not to be easy in my understandings. What im tring to do is have 3 Main Buttons (Function/Up/Down) and an image that constantly changes. When the function button is pressed the image will change from XXX to RUN. Once RUN is displayed the middle and right button will then toggle between the other &quot;images&quot; (settings .. like HI LOW MED) ... however your not suppose to be able to toggle the other images UNLESS run was first displayed. .. Please help! I attached a brief image of the controller</div>


	<div style="padding:10px">

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
			<ul>
			<li>
	<img class="inlineimg" src="http://www.vbdotnetforums.com/images/attach/jpg.gif" alt="File Type: jpg" />
	<a href="http://www.vbdotnetforums.com/attachments/windows-forms/3734d1369243050-code-help-untitled.jpg" target="_blank">Untitled.jpg</a> 
(34.3 KB)
</li>
			</ul>
			</fieldset>
	

	

	</div>
]]></content:encoded>
			<category domain="http://www.vbdotnetforums.com/windows-forms/">Windows Forms</category>
			<dc:creator>basacwards</dc:creator>
			<guid isPermaLink="true">http://www.vbdotnetforums.com/windows-forms/57289-code-help.html</guid>
		</item>
	</channel>
</rss>
