<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>C# &amp; VB.NET School Support Forum RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from the 'C# &amp; VB.NET School Support' forum at Programmer's Heaven, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Thu, 09 Feb 2012 06:39:38 -0800</pubDate>
    <lastBuildDate>Thu, 09 Feb 2012 06:39:38 -0800</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Program Deployment - VB.NET - How's it done now?</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/425198/425198/program-deployment---vbnet---hows-it-done-now/</link>
      <description>Hey, I'm trying to teach myself VB.NET (I learned VB 6 back in the 90's) and I've run into many issues regarding deployment of even some of the simplest programs I've written so far.  Once I've compiled to an .exe I can take the easy but unprofessional route of just distributing the executable file...but that leads to some of my issues/questions:&lt;br /&gt;
&lt;br /&gt;
-How do I find out what files I need to package with my executable &lt;br /&gt;
&lt;br /&gt;
-What happened to the "Package &amp;amp; Deployment Wizard"?&lt;br /&gt;
&lt;br /&gt;
I read somewhere that there is no longer a deployment option with .NET so that is not really an issue since I can use Install Shield or NSIS.  Really the most important question is how do I discover the dependencies for my programs so I know what files to include with the installer?&lt;br /&gt;
&lt;br /&gt;
I'm new (again) to this site since it's been years since my first signup.  So since I've been unable to find answers to these questions so far, if anyone would be kind enough to point me to an appropriate post or even try to answer my questions, your help would be much appreciated!  Thanks in advance.&lt;br /&gt;
&lt;hr /&gt;&lt;br /&gt;
Don't be afraid to correct me if I'm wrong...nobody knows it all!! &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.bsbweb.net"&gt;http://www.bsbweb.net&lt;/a&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/425198/425198/program-deployment---vbnet---hows-it-done-now/</guid>
      <pubDate>Mon, 10 Oct 2011 04:09:41 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>Situation with command propt and vbc</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/417398/417398/situation-with-command-propt-and-vbc/</link>
      <description>Hi&lt;br /&gt;
&lt;br /&gt;
I am new on this forum and alsow new with learning VB.NET.&lt;br /&gt;
During second lesson when I put all data for get "Hello World" I get on command prompt that vbc is not known neither like intern or extern command or like program or batch.&lt;br /&gt;
I check file name, make sure for code in txt file is OK.&lt;br /&gt;
I really don't know what can be?&lt;br /&gt;
Please can you help me, may be for many of you this can be so easly but in this moment not for me.&lt;br /&gt;
Thanks&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/417398/417398/situation-with-command-propt-and-vbc/</guid>
      <pubDate>Wed, 23 Jun 2010 03:35:13 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>new theme for my application under vb.net</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/413957/413957/new-theme-for-my-application-under-vbnet/</link>
      <description>hello every body,&lt;br /&gt;
i want to know how to set a theme for my applications under vb.net if it's possible?.&lt;br /&gt;
can you help me please. Have a nice time&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/413957/413957/new-theme-for-my-application-under-vbnet/</guid>
      <pubDate>Fri, 26 Feb 2010 12:48:14 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>question in c#</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/413770/413770/question-in-c/</link>
      <description>&lt;span style="font-size: small;"&gt;hello everyone,&lt;br /&gt;
i am new here and i am also a new programmer and i am learning c#..i am using visual studio 2008 and started to build some very simple windows form apllication and now i am facing a problem.&lt;br /&gt;
how can i open a new form to replace the old form in a way such that when i close the second form ..all of the application gets terminated..something like the installation wizard of a program or a game..when you hit the next button the window form changes completely and whenver i press the (x)button on top right the installation wizard terminates completelly..i hope someone helps me as i really need to learn that so i can keep going&lt;br /&gt;
&lt;br /&gt;
 i hope i can find the help i need here..thanks all in advance&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/413770/413770/question-in-c/</guid>
      <pubDate>Mon, 22 Feb 2010 20:43:17 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>question in c#</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/413769/413769/question-in-c/</link>
      <description>&lt;span style="font-size: small;"&gt;hello everyone,&lt;br /&gt;
i am new here and i am also a new programmer and i am learning c#..i am using visual studio 2008 and started to build some very simple windows form apllication and now i am facing a problem.&lt;br /&gt;
how can i open a new form to replace the old form in a way such that when i close the second form ..all of the application gets terminated..something like the installation wizard of a program or a game..when you hit the next button the window form changes completely and whenver i press the (x)button on top right the installation wizard terminates completelly..i hope someone helps me as i really need to learn that so i can keep going&lt;br /&gt;
&lt;br /&gt;
 i hope i can find the help i need here..thanks all in advance&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/413769/413769/question-in-c/</guid>
      <pubDate>Mon, 22 Feb 2010 20:41:27 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>need help!!!~</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/412713/412713/need-help/</link>
      <description>heyy guys~&lt;br /&gt;
does anybody know how to develop fuzzy logic source code for humidity sensor that works with timer?&lt;br /&gt;
&lt;br /&gt;
for example.. when the humidity sensor sense a value of certain amount, it will on the timer for certain time..&lt;br /&gt;
&lt;br /&gt;
i'm begging for your help!!!!&lt;br /&gt;
&lt;br /&gt;
you can email me directly at firdausshukri@yahoo.com&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/412713/412713/need-help/</guid>
      <pubDate>Mon, 01 Feb 2010 07:20:33 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>job requirements</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/412519/412519/job-requirements/</link>
      <description>i got an offer to work developing sharepoint and vb.net and asp.net&lt;br /&gt;
&lt;br /&gt;
the job will train me on sharepoint, but i am more of a php guy than asp. &lt;br /&gt;
&lt;br /&gt;
i was wondering if anyone can point me in the write direction on where to start for learning this language. i was using this, but this was very basic and i felt it wasnt giving me what i needed.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.homeandlearn.co.uk/NET/vbNET.html"&gt;http://www.homeandlearn.co.uk/NET/vbNET.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
thanks in advance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/412519/412519/job-requirements/</guid>
      <pubDate>Thu, 28 Jan 2010 14:40:23 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>VB.net - ending the programme, but not by using the X at top-right!</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/410237/410237/vbnet---ending-the-programme-but-not-by-using-the-x-at-top-right/</link>
      <description>Hi, I've been reading through the turtorial, seeing as I've moved from VB6 to VB.net. However, I'm having troubles with closing the programm created, but not by using the X that is normally found in the top-right corner. It was easy when I was using VB6, so how can someone close the programme without using the X?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/410237/410237/vbnet---ending-the-programme-but-not-by-using-the-x-at-top-right/</guid>
      <pubDate>Thu, 03 Dec 2009 03:33:35 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>Capture url in open web page</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/395307/395307/capture-url-in-open-web-page/</link>
      <description>I can't seem to find a way to get my URL variable to hold the url of the internet explorer window i have opened..... any ideas why?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is my code so far:&lt;br /&gt;
&lt;br /&gt;
Public Class Form1&lt;br /&gt;
&lt;br /&gt;
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;
&lt;br /&gt;
Dim Text As String = ""&lt;br /&gt;
Dim Webbrowser1 As Object&lt;br /&gt;
Dim url As String&lt;br /&gt;
&lt;br /&gt;
Webbrowser1 = CreateObject("InternetExplorer.Application")&lt;br /&gt;
Webbrowser1.visible = True&lt;br /&gt;
Webbrowser1.Navigate("Http://www.facebook.com")&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Do Until (Webbrowser1.busy = False)&lt;br /&gt;
Loop&lt;br /&gt;
&lt;br /&gt;
Line2:&lt;br /&gt;
&lt;br /&gt;
Dim PauseTime1 As Long = 1&lt;br /&gt;
Do Until (PauseTime1 = 400000000)&lt;br /&gt;
PauseTime1 = PauseTime1 + 1&lt;br /&gt;
Loop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
url =           &lt;span style="color: Red;"&gt;Here i need the url to be captured&lt;/span&gt;&lt;br /&gt;
MsgBox(url)&lt;br /&gt;
&lt;br /&gt;
If url = ("http://www.facebook.com/") Then&lt;br /&gt;
Else&lt;br /&gt;
GoTo Line2&lt;br /&gt;
End If&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
My.Computer.Keyboard.SendKeys("{Tab 14}")&lt;br /&gt;
My.Computer.Keyboard.SendKeys("Email")&lt;br /&gt;
My.Computer.Keyboard.SendKeys("{Tab}")&lt;br /&gt;
My.Computer.Keyboard.SendKeys("Password")&lt;br /&gt;
My.Computer.Keyboard.SendKeys("{enter}")&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/395307/395307/capture-url-in-open-web-page/</guid>
      <pubDate>Tue, 18 Aug 2009 15:57:19 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>Capture url in open web page</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/395306/395306/capture-url-in-open-web-page/</link>
      <description>I can't seem to find a way to get my URL variable to hold the url of the internet explorer window i have opened..... any ideas why?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is my code so far:&lt;br /&gt;
&lt;br /&gt;
Public Class Form1&lt;br /&gt;
&lt;br /&gt;
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;
&lt;br /&gt;
Dim Text As String = ""&lt;br /&gt;
Dim Webbrowser1 As Object&lt;br /&gt;
Dim url As String&lt;br /&gt;
&lt;br /&gt;
Webbrowser1 = CreateObject("InternetExplorer.Application")&lt;br /&gt;
Webbrowser1.visible = True&lt;br /&gt;
Webbrowser1.Navigate("Http://www.facebook.com")&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Do Until (Webbrowser1.busy = False)&lt;br /&gt;
Loop&lt;br /&gt;
&lt;br /&gt;
Line2:&lt;br /&gt;
&lt;br /&gt;
Dim PauseTime1 As Long = 1&lt;br /&gt;
Do Until (PauseTime1 = 400000000)&lt;br /&gt;
PauseTime1 = PauseTime1 + 1&lt;br /&gt;
Loop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
url =           &lt;span style="color: Red;"&gt;Here i need the url to be captured&lt;/span&gt;&lt;br /&gt;
MsgBox(url)&lt;br /&gt;
&lt;br /&gt;
If url = ("http://www.facebook.com/") Then&lt;br /&gt;
Else&lt;br /&gt;
GoTo Line2&lt;br /&gt;
End If&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
My.Computer.Keyboard.SendKeys("{Tab 14}")&lt;br /&gt;
My.Computer.Keyboard.SendKeys("Email")&lt;br /&gt;
My.Computer.Keyboard.SendKeys("{Tab}")&lt;br /&gt;
My.Computer.Keyboard.SendKeys("Password")&lt;br /&gt;
My.Computer.Keyboard.SendKeys("{enter}")&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/395306/395306/capture-url-in-open-web-page/</guid>
      <pubDate>Tue, 18 Aug 2009 15:56:04 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>linking between projects with one solution ( vb.net)</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/392938/392938/linking-between-projects-with-one-solution--vbnet/</link>
      <description>Ho evrybody, i need your help please&lt;br /&gt;
i have 5 projets and i want to link between them.&lt;br /&gt;
i used 1 solution and i put the 5 projects into it&lt;br /&gt;
but how can i call forms from different projects .&lt;br /&gt;
please i need your halp&lt;br /&gt;
thanks &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{I'm using  on vb.net}&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/392938/392938/linking-between-projects-with-one-solution--vbnet/</guid>
      <pubDate>Sat, 27 Jun 2009 06:09:01 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>How can I compile c# program from command line</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/391063/391063/how-can-i-compile-c-program-from-command-line/</link>
      <description>I tried to compile c# program from command line but I received this message "The name specified is not recognized as an internal or external command, operable program or batch file." what can I do to? &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/391063/391063/how-can-i-compile-c-program-from-command-line/</guid>
      <pubDate>Sat, 16 May 2009 07:17:48 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>ClassLibrary.B is not accessible in this context b's it is Friend</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/390708/390708/classlibraryb-is-not-accessible-in-this-context-bs-it-is-friend/</link>
      <description>I am trying to run examples in VB.NET class in &lt;br /&gt;
Visual Basic 2008 Express Edition&lt;br /&gt;
&lt;br /&gt;
Here's my Classes&lt;br /&gt;
&lt;br /&gt;
Class A&lt;br /&gt;
  Protected Sub DoWork()&lt;br /&gt;
     Console.WriteLine(" DoWork called")&lt;br /&gt;
  End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Class B&lt;br /&gt;
Inherits A&lt;br /&gt;
  Public Sub New()&lt;br /&gt;
     DoWork()&lt;br /&gt;
  End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Imports ClassLibrary&lt;br /&gt;
Module Module1&lt;br /&gt;
  Sub Main()&lt;br /&gt;
      Dim bObj As New B()&lt;br /&gt;
      bObj.DoWork()&lt;br /&gt;
  End Sub&lt;br /&gt;
End Module&lt;br /&gt;
&lt;br /&gt;
I got the error "ClassLibrary.B is not accessible&lt;br /&gt;
in this context because it is Friend " on &lt;br /&gt;
Dim bObj As New B() statement.&lt;br /&gt;
&lt;br /&gt;
Please someone answer this question. I am sure&lt;br /&gt;
it's simple but I am try t learn</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/390708/390708/classlibraryb-is-not-accessible-in-this-context-bs-it-is-friend/</guid>
      <pubDate>Sat, 09 May 2009 08:59:08 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>Difference between String and String()</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/390216/390216/difference-between-string-and-string/</link>
      <description>Can someone explain the difference between &lt;br /&gt;
String type and String() type.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/390216/390216/difference-between-string-and-string/</guid>
      <pubDate>Fri, 01 May 2009 09:27:56 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>Nit picking question about enum and default value.</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/388372/388372/nit-picking-question-about-enum-and-default-value/</link>
      <description>In other languages I have used the default value for an enum is the first value.&lt;br /&gt;
&lt;br /&gt;
    enum displayType : byte&lt;br /&gt;
    {&lt;br /&gt;
        visible=0xa,&lt;br /&gt;
        invisible&lt;br /&gt;
    } &lt;br /&gt;
&lt;br /&gt;
    struct Points&lt;br /&gt;
    {   &lt;br /&gt;
        public int x;&lt;br /&gt;
        public int y;&lt;br /&gt;
        public displayType dsp;&lt;br /&gt;
    }&lt;br /&gt;
-----Main porgram-----------&lt;br /&gt;
Points pts = new Points();&lt;br /&gt;
int i = (int) dsp;&lt;br /&gt;
Console.WriteLine("Point 1: {0}", i);&lt;br /&gt;
-----------------------------&lt;br /&gt;
Results in a value of '0';&lt;br /&gt;
&lt;br /&gt;
Question 1: What is the C# definition of the default value for a enum type?&lt;br /&gt;
&lt;br /&gt;
Question 2: Should the default constructor set dsp= 0xa on creation? If so it is a bug in Visual C# 2008 express ,and I will file it.  Or is the default value derived from the base type of enum in this case 'BYTE'.  In which case the Visual C# is correct and the C# eBook just needs a description of how the default values are defined for enum. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/388372/388372/nit-picking-question-about-enum-and-default-value/</guid>
      <pubDate>Tue, 31 Mar 2009 15:21:20 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>number to word conversion code required in c#.net</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/387230/387230/number-to-word-conversion-code-required-in-cnet/</link>
      <description>hi guys,&lt;br /&gt;
&lt;br /&gt;
i have 1 textbox &amp;amp; 1 label on a page. textbox accepts numeric value &amp;amp; it should convert it into words &amp;amp; display it on label.&lt;br /&gt;
&lt;br /&gt;
For eg : &lt;br /&gt;
If textbox accepts 10863 then it should display its equivalent value in label as "Ten Thousand Eight Hundred Sixty Three Only"&lt;br /&gt;
&lt;br /&gt;
Thanks in advance for any help or solution.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
ravindra.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/387230/387230/number-to-word-conversion-code-required-in-cnet/</guid>
      <pubDate>Thu, 12 Mar 2009 06:25:37 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>C# Is it possible to connect to a PC from different "Local Network"?</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/386972/386972/c-is-it-possible-to-connect-to-a-pc-from-different-local-network/</link>
      <description>Is it possible to connect to a PC which is from a different "local network", given that you know that computer's PUBLIC IP ADDRESS and PRIVATE IP ADDRESS?&lt;br /&gt;
&lt;br /&gt;
If it is possible, how will this be done in C#.Net?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/386972/386972/c-is-it-possible-to-connect-to-a-pc-from-different-local-network/</guid>
      <pubDate>Sun, 08 Mar 2009 10:58:44 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>Any other SQL or OLE databases available?</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/386939/386939/any-other-sql-or-ole-databases-available/</link>
      <description>I'm working through the lessons at Programmer’s Heaven's "C# School", and I'm currently on lesson 13, "Data Access in .Net using ADO.Net", so of course I've been trying to connect to Programmer’s Heaven's SQL and MS Access / OleDb databases. Unfortunately, they're now offline. Can anyone please tell me, are there other such databases available for those learning ADO to practice connecting to?&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/386939/386939/any-other-sql-or-ole-databases-available/</guid>
      <pubDate>Sat, 07 Mar 2009 10:36:36 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>How to run an external script from a C# script? Please help Urgent</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/384989/384989/how-to-run-an-external-script-from-a-c-script-please-help-urgent/</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I have a script written in C# (.NET) and within this script I have an IF statement and when this IF statement is TRUE I want to execute the following external script that I placed just under the &amp;lt;/head&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script  id='name' type='text/javascript' src='https://xx' integration='jscart-wizard'&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How can I do that?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thank you in Advance&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/384989/384989/how-to-run-an-external-script-from-a-c-script-please-help-urgent/</guid>
      <pubDate>Thu, 29 Jan 2009 15:37:56 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>How to enable a list box from a combobox in C#?</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/383621/383621/how-to-enable-a-list-box-from-a-combobox-in-c/</link>
      <description>Hello everybody. I'm new in C# and i have a question. What i want to do is to enable a listbox from a combobox. Let me give you an example so you can understand!!!&lt;br /&gt;
&lt;br /&gt;
Lets say that the combobox has these values:1,2,3&lt;br /&gt;
I want when the user chooses the 2 a listbox to be enabled with information about 2. If he chooses the 1 a listbox to be enabled with information about 1.&lt;br /&gt;
&lt;br /&gt;
Can somebody help me???&lt;br /&gt;
&lt;br /&gt;
Thanks and merry Christmas!!!!!!!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/383621/383621/how-to-enable-a-list-box-from-a-combobox-in-c/</guid>
      <pubDate>Sun, 28 Dec 2008 10:07:12 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>Add Button not working in storing grades to files</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/383530/383530/add-button-not-working-in-storing-grades-to-files/</link>
      <description>Hello. I am having trouble getting my Add button to work. My output is giving me a syntax error. Please let me know what to do. Below is what I have. I want to use the Add button to add a record but it doesn't work. Please help as soon as possible. Thanks.&lt;pre class="sourcecode"&gt;Imports System.IO
Imports System.Runtime.Serialization.Formatters.Binary
Imports System.Runtime.Serialization
Public Class Form1
    Private fileWriter As StreamWriter 'writes data to text file
    Private output As FileStream 'maintains connection to file
    Private input As FileStream
    Private fileReader As StreamReader
    'event handler for Save Button
    Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
        'create dialog box enabling user to save file
        Dim fileChooser As New SaveFileDialog()
        Dim result As DialogResult = fileChooser.ShowDialog()
        Dim fileName As String 'name of file to save data

        fileChooser.CheckFileExists = False 'allow user to create file
        'exit event handler if user clicked "Cancel"
        If result = Windows.Forms.DialogResult.Cancel Then
            Return
        End If
        fileName = fileChooser.FileName 'get specified filename
        'show error if user specified invalid file
        If fileName = "" Or fileName Is Nothing Then
            MessageBox.Show("Invalid File Name", "Error", _
            MessageBoxButtons.OK, MessageBoxIcon.Error)
        Else
            'save file via FileStream if user specified valid file
            Try
                'open file with write access
                output = New FileStream(fileName, FileMode.OpenOrCreate, _
                FileAccess.Write)
                'sets file to where data is written
                fileWriter = New StreamWriter(output)
                'disable Save button and enable Add button
                btnSave.Enabled = False
                btnExit.Enabled = False
                btnRead.Enabled = False
                btnAdd.Enabled = True
                'handle exception if there is a problem opening the file
            Catch ex As IOException
                'notify user if file does not exist
                MessageBox.Show("Error opening file", "Error", _
                MessageBoxButtons.OK, MessageBoxIcon.Error)

            End Try
        End If
    End Sub

    'event handler for Add button

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        'store Textbox values string away
        Dim values As String() = GetTextBoxValues()
        'record containing TextBox values to serialize
        Dim record As New Record()
        'store textbox field in record

        'determine whether Textbox ID field is empty
        If values(TextBoxIndices.ID) &amp;lt;&amp;gt; "" Then
            'store TextB ox values in record and serialize record
            Try
                'get ID number value from Textbox
                Dim IDNumber As Integer = _
                Int32.Parse(values(TextBoxIndices.ID))

                'determine whether IDNumber is valid
                If IDNumber &amp;gt; 0 Then
                    'store Textbox field in record
                    record.ID = IDNumber
                    record.FirstName = values(TextBoxIndices.FIRST)
                    record.LastName = values(TextBoxIndices.LAST)
                    record.ClassName = values(TextBoxIndices.CLASSNAME)
                    record.Grade = values(TextBoxIndices.GRADE)

                    'write record to file stream
                    &lt;span style="color: Blue;"&gt;fileWriter.WriteLine(record.ID &amp;amp; "," &amp;amp; record.FirstName &amp;amp; "," &amp;amp; _
                    record.LastName &amp;amp; vbTab &amp;amp; record.ClassName &amp;amp; vbTab &amp;amp; record.Grade)&lt;/span&gt;                Else
                    'notify user if invalid ID Number
                    MessageBox.Show("Invalid ID Number", "Error", _
                    MessageBoxButtons.OK, MessageBoxIcon.Error)

                End If
                'notify user if error occurs in serialization
            Catch ex As IOException
                MessageBox.Show("Error Writing to File", "Error", _
                MessageBoxButtons.OK, MessageBoxIcon.Error)

                'notify user if error occurs regarding parameter format

            Catch ex As FormatException
                MessageBox.Show("invalid Format", "Error", _
                MessageBoxButtons.OK, MessageBoxIcon.Error)
            End Try
        End If
        ClearTextBoxes() ' clear textbox values

    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        txtDisplay.Text = "ID" &amp;amp; vbTab &amp;amp; "Name" &amp;amp; vbTab &amp;amp; "Grade" &amp;amp; vbTab &amp;amp; "Class"
        Dim fileChooser As New OpenFileDialog()
        Dim result As DialogResult = fileChooser.ShowDialog()
        Dim fileName As String

        'exit event handler if user clicked the Cancel
        If result = Windows.Forms.DialogResult.Cancel Then
            Return
        End If
        fileName = fileChooser.FileName 'get specified file name
        ClearTextBoxes()

        'show error if user specified invalid file
        If fileName = "" Or fileName Is Nothing Then
            MessageBox.Show("Invalid File Number", "Error", _
            MessageBoxButtons.OK, MessageBoxIcon.Error)
        Else
            'create FileStream to obtain read access to file
            input = New FileStream(fileName, FileMode.Open, FileAccess.Read)

            'set file from where data is read
            fileReader = New StreamReader(input)
        End If

    End Sub
    Protected TextBoxCount As Integer = 5

    'enumeration constants specify Textbox indices
    Public Enum TextBoxIndices
        ID
        FIRST
        LAST
        CLASSNAME
        GRADE
    End Enum
    'clear all textboxes
    Public Sub ClearTextBoxes()
        'iterate through every Control on form
        For i As Integer = 0 To Controls.Count - 1
            Dim myControl As Control = Controls(i) 'get control
            'determine whether COntrol is TextBox
            If TypeOf myControl Is TextBox Then
                'clear Text property (set to empty sting)
                myControl.Text = ""
            End If
        Next i
    End Sub
    'set text box values to string array values
    Public Sub SetTextBoxValues(ByVal values() As String)
        'determine whether string array has correct length
        If values.Length &amp;lt;&amp;gt; TextBoxCount Then
            'throw exception if not correct length
            Throw New ArgumentException("There must be " &amp;amp; (TextBoxCount + 1) &amp;amp; _
            " strings in the array")
            'set array values if array has correct length
        Else
            'set array values to text box values
            txtID.Text = values(Convert.ToInt32(TextBoxIndices.ID))
            txtFirstName.Text = values(Convert.ToInt32(TextBoxIndices.FIRST))
            txtLastName.Text = values(Convert.ToInt32(TextBoxIndices.LAST))
            txtClassName.Text = values(Convert.ToInt32(TextBoxIndices.CLASSNAME))
            txtGrades.Text = values(Convert.ToInt32(TextBoxIndices.GRADE))
        End If
    End Sub
    'return text box values as string array
    Public Function GetTextBoxValues() As String()
        Dim values(TextBoxCount) As String
        'copy text box fields to string array
        values(Convert.ToInt32(TextBoxIndices.ID)) = txtID.Text
        values(Convert.ToInt32(TextBoxIndices.FIRST)) = txtFirstName.Text
        values(Convert.ToInt32(TextBoxIndices.LAST)) = txtLastName.Text
        values(Convert.ToInt32(TextBoxIndices.CLASSNAME)) = txtClassName.Text
        values(Convert.ToInt32(TextBoxIndices.GRADE)) = txtGrades.Text
        Return values
    End Function

    Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
        'determine whether file exists
        If output IsNot Nothing Then
            Try
                fileWriter.Close() 'close StreamWriter
                output.Close() 'close file
                'notify user of error closing file
            Catch ex As IOException
                MessageBox.Show("Cannot close file", "Error", _
                MessageBoxButtons.OK, MessageBoxIcon.Error)
            End Try
        End If
        Application.Exit()
    End Sub
End Class



&lt;/pre&gt;&lt;br /&gt;
Please, I need your help with this. Only the Add button is not working and I know the write file has to do with it. Thanks for your help.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/383530/383530/add-button-not-working-in-storing-grades-to-files/</guid>
      <pubDate>Fri, 26 Dec 2008 02:16:36 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>Layered Approach in VB.net</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/383260/383260/layered-approach-in-vbnet/</link>
      <description>Hi,&lt;br /&gt;
    I am a beginner of Vb.net 2005. How to separate the Whole project into Layered Approach like Presentation Layer,Business Logic Details and Data access Layer. Please Give any tips or ideas....&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/383260/383260/layered-approach-in-vbnet/</guid>
      <pubDate>Thu, 18 Dec 2008 03:05:12 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>Where can I download free visual studio.net</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/374798/374798/where-can-i-download-free-visual-studionet/</link>
      <description>In order to be able to write, compile, run... C# code, what software do I need to download?&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
Grace&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/374798/374798/where-can-i-download-free-visual-studionet/</guid>
      <pubDate>Tue, 02 Sep 2008 10:37:10 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>Problems in C#</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/374130/374130/problems-in-c/</link>
      <description>1-&lt;br /&gt;
this.Cursor = Cursors.WaitCursor;&lt;br /&gt;
this.Cursor = Cursors.Default;&lt;br /&gt;
 &lt;br /&gt;
I asked about these lines before &amp;amp; i got the following :&lt;br /&gt;
 &lt;br /&gt;
These are just to set the current mouse Cursor to a certain status: either waiting status or default status.&lt;br /&gt;
&lt;br /&gt;
But i still didn't understand them because i didn't feel a really effect of them,so can you give me a practical simple example ?&lt;br /&gt;
&lt;br /&gt;
2-&lt;br /&gt;
int [,,] ar =new int [2,2,2];&lt;br /&gt;
ar [0, 0, 0] = 7;&lt;br /&gt;
ar [2, 1, 2] = 88;&lt;br /&gt;
Console.WriteLine(ar [0, 0, 0]);&lt;br /&gt;
&lt;br /&gt;
Error: Index was outside the bounds of the array.&lt;br /&gt;
&lt;br /&gt;
3-&lt;br /&gt;
class Program&lt;br /&gt;
    {&lt;br /&gt;
&lt;br /&gt;
        static void Main(string[] args)&lt;br /&gt;
        {&lt;br /&gt;
            Program p = new Program();&lt;br /&gt;
            p.ss();&lt;br /&gt;
        }&lt;br /&gt;
        void ss()&lt;br /&gt;
        {&lt;br /&gt;
            Console.WriteLine("ss");&lt;br /&gt;
        }&lt;br /&gt;
            &lt;br /&gt;
     }  &lt;br /&gt;
why i must make the method ss() static to call it directly from the Main() or i must make an object from the class program  to call it ?&lt;br /&gt;
Why i can't call it directly from the Main() ?&lt;br /&gt;
&lt;br /&gt;
4-&lt;br /&gt;
what's the Index ? when i use it ? what's its Syntax with a simple example ?&lt;br /&gt;
&lt;br /&gt;
Thank You...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/374130/374130/problems-in-c/</guid>
      <pubDate>Wed, 13 Aug 2008 09:21:09 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
    <item>
      <title>C# Creating Class Libraries with Enum</title>
      <link>http://www.programmersheaven.com/mb/csharpschool/374084/374084/c-creating-class-libraries-with-enum/</link>
      <description>Ok,&lt;br /&gt;
&lt;br /&gt;
I'm trying to create a class library that enables me to use a enum. Simple I thought. But the&lt;br /&gt;
&lt;br /&gt;
more and more I dig the deeper the rabbit whole goes. I've tried to Substitute the obvious DDD in&lt;br /&gt;
&lt;br /&gt;
the public void Main method still no luck. I'm able to compile but my error "is a type which isn't&lt;br /&gt;
&lt;br /&gt;
valid is DataObjects.DDD is a 'type', which is not valid in the given context. Maybe someone&lt;br /&gt;
&lt;br /&gt;
can correct the error in my ways. Thanks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
///--------------------Class Library Code.&lt;br /&gt;
&lt;br /&gt;
public enum DDD : int{&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UserCentric = 1,&lt;br /&gt;
&lt;br /&gt;
RoleCentric = 2 ,&lt;br /&gt;
&lt;br /&gt;
TeamCentric = 3,&lt;br /&gt;
&lt;br /&gt;
OfficeCentric = 4,&lt;br /&gt;
&lt;br /&gt;
LineOfBusinessCentric = 5 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
class Document&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
public void Main(DDD DDD)&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
switch (DDD)&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
case DDD.UserCentric:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
System.Console.WriteLine("UserCentric");&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
break;&lt;br /&gt;
&lt;br /&gt;
case DDD.RoleCentric:&lt;br /&gt;
&lt;br /&gt;
Debug.WriteLine("RoleCentric");&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
break;&lt;br /&gt;
&lt;br /&gt;
case DDD.TeamCentric:&lt;br /&gt;
&lt;br /&gt;
Debug.WriteLine("TeamCentric");&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
break;&lt;br /&gt;
&lt;br /&gt;
case DDD.OfficeCentric:&lt;br /&gt;
&lt;br /&gt;
Debug.WriteLine("OfficeCentric");&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
break;&lt;br /&gt;
&lt;br /&gt;
case DDD.LineOfBusinessCentric:&lt;br /&gt;
&lt;br /&gt;
Debug.WriteLine("LineOfBusinessCentric");&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
break;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&lt;br /&gt;
&lt;br /&gt;
///------------------------------------------end of class library code.&lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
&lt;br /&gt;
using System.Configuration;&lt;br /&gt;
&lt;br /&gt;
using System.Data;&lt;br /&gt;
&lt;br /&gt;
using System.Linq;&lt;br /&gt;
&lt;br /&gt;
using System.Web;&lt;br /&gt;
&lt;br /&gt;
using System.Web.Security;&lt;br /&gt;
&lt;br /&gt;
using System.Web.UI;&lt;br /&gt;
&lt;br /&gt;
using System.Web.UI.HtmlControls;&lt;br /&gt;
&lt;br /&gt;
using System.Web.UI.WebControls;&lt;br /&gt;
&lt;br /&gt;
using System.Web.UI.WebControls.WebParts;&lt;br /&gt;
&lt;br /&gt;
using System.Xml.Linq;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
public partial class _Default : System.Web.UI.Page&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
string mm;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mm = DocumentDataObject.DDD;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mm = Label1.Text;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharpschool/374084/374084/c-creating-class-libraries-with-enum/</guid>
      <pubDate>Mon, 11 Aug 2008 14:07:26 -0800</pubDate>
      <category>C# &amp; VB.NET School Support</category>
    </item>
  </channel>
</rss>
