Visual Basic Express Edition ForumQuestions about Visual Basic Express Edition and getting started with Visual Basic.© 2009 Microsoft Corporation. All rights reserved.Sat, 28 Nov 2009 17:40:33 Z2dbbf3a6-a6bf-450e-be2c-c481b7bf0a03http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/17db9176-32a2-44b1-902c-11b41fbb7ad6http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/17db9176-32a2-44b1-902c-11b41fbb7ad6Evoluatorhttp://social.msdn.microsoft.com/Profile/en-US/?user=EvoluatorWhy you should not learn VB!<p class=MsoNormal><span>  </span><br></p> <p class=MsoNormal style="text-indent:0.25in">Learning a new programming language is as hard as learning a new language. Most aspects of learning a new language could be point of simile when it comes to learning a new programming language.</p> <p class=MsoNormal style="text-indent:0.25in"><br></p> <p class=MsoNormal style="text-indent:0.25in">Indeed before the brain starts making the necessary connections between its different parts it will take a while, however, a programming language like VB is much more simpler to learn because the language is some form of written English which large number of people know. This is one of the most important aspects of VB which makes is ideal for students. This is not a random fact as during the 1960s Basic (Visual Basic is some sort of Basic) was created to be the programming language that students learn and hence it took advantage of the fact that most English speaking students would already know the language which in turn makes learning a programming language with English as its infrastructure more simple</p> <p class=MsoNormal style="text-indent:0.25in">. </p> <p class=MsoNormal style="text-indent:0.25in">But why should we learn VB? Or should we not? Of course as discussed above learning VB is simpler than most other programming languages, however, is it capable of performing all the actions that one could perform with other languages? Well the answer to this question is not as straight forward as one might think, but if the language is easy to learn why do other people learn other languages? I think the reason for this is that other languages could provide a better efficiency and performance with some advanced features. So when some advanced coding skills is required VB comes to a dead end at the present time.</p> <p class=MsoNormal style="text-indent:0.25in"><br></p> <p class=MsoNormal style="text-indent:0.25in">I’ll give you a simple example from my personal experience. I coded two identical programs in VB and C#, so both were based on .NET 3.0 and compiled with Visual Studio 2008 beta 2. Then I created a .dll of both codes and linked them to one other code which was able to use the code in the .dll. I then calculated process speed for both codes the results are staggering (They are average results):</p> <p class=MsoNormal style="text-indent:0.25in"><br></p> <p class=MsoNormal style="text-indent:0.25in">VB .NET:<span>       </span>520 KB/s</p> <p class=MsoNormal style="text-indent:0.25in">C# .NET:<span>       </span>934 KB/s</p> <p class=MsoNormal style="text-indent:0.25in"><br></p> <p class=MsoNormal style="text-indent:0.25in">I have to say that the .dll only plays a small part in the program. So when the above data is analysed we could conclude that the .dll produces by VB runs slower than the one produced by C#. So “why learn VB at all?”. I don’t mean that one should not learn VB but I am trying to say is “what is the point of learning VB?” While the same time could be spend learning a language like C or even better C++; which in turn would virtually work on any operating system! </p> <p class=MsoNormal style="text-indent:0.25in"><br></p> <p class=MsoNormal style="text-indent:0.25in">If you are planning to learn VB “DON’T”. Because as you develop new coding skills you would find that VB is limiting your abilities. At this time you will be looking for a new language and indeed you need to start learning from scratch. This means all the time spend becoming fluent in VB was nothing but waste of time. This is only my personal opinion about the language. The first language that I have leant was VB. And I have to mention that I truly respect everyone that codes in VB and everyone else who doesn’t.</p><br> <p class=MsoNormal style="text-indent:0.25in"><br></p> <p class=MsoNormal style="text-indent:0.25in">I welcome any critisism, spelling mistakes or any other type of comments and I would like to think why I might be biased towards this isuee.</p> <p class=MsoNormal style="text-indent:0.25in"><br></p><br> <p class=MsoNormal style="text-indent:0.25in">Thanks you<br></p><br> <p class=MsoNormal style="text-indent:0.25in"></p><br>Sun, 28 Oct 2007 23:07:02 Z2009-11-28T17:40:33Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/4f95de01-ec31-4e64-8295-c26227e77e29http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/4f95de01-ec31-4e64-8295-c26227e77e29Jeff - www.SRSoft.ushttp://social.msdn.microsoft.com/Profile/en-US/?user=Jeff%20-%20www.SRSoft.usHelp you use events and a VB / C# compare questionSince i am reworking my current project from scratch with new ways to handle code, i am trying to get out of my vb comfort zone.<br/><br/>So this is an example using events to pass back a value to a parent form from a child form using an event.<br/><br/>This should help those of you out there new to this and it would be a good topic to discuss further to compare a few points to how this might be handled similar to what might be done in C#.  Hopefully some C#'ers will post with some thoughts.<br/><br/><br/>I'll start with the child form code<br/><br/> <pre lang=x-vbnet>Public Class frmLogin Public Event LoginHandled(ByVal LoggedIn As Boolean) Private Sub cmdLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLogin.Click If Me.txtPassword.Text = My.Settings.Password Then RaiseEvent LoginHandled(True) End If End Sub Private Sub cmdExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdExit.Click RaiseEvent LoginHandled(False) End Sub End Class</pre> Above is just a simple form which i am using for a login for the user to enter a password.<br/><br/>There is a public event declared (LoginHandled) with a boolean parameter (LoggedIn).  Public to be accessed from other classes through a new instance of the form.<br/><br/>When the login button is clicked, the event is raised with a value of true to show the user has logged in successfully, if the correct password was supplied.<br/><br/>When the Exit button is clicked, the event is raised with the value of false to show the user is not logged in.<br/><br/><br/><br/><br/>Below is the parent code.  This is an MDI Parent form (just for example; could be a regular form as well)<br/> <pre lang=x-vbnet>Imports System.Windows.Forms Public Class MDIParent1 'Private WithEvents LoginForm As frmLogin Private LoginForm As frmLogin Private Sub MDIParent1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load LoginForm = New frmLogin AddHandler LoginForm.LoginHandled, AddressOf LoginHandler LoginForm.ShowDialog() End Sub 'Private Sub LoginForm_LoginHandled(ByVal LoggedIn As Boolean) Handles LoginForm.LoginHandled 'End Sub Private Sub LoginHandler(ByVal LoggedIn As Boolean) If LoggedIn = True Then MsgBox(&quot;logged in&quot;) Else MsgBox(&quot;not logged in&quot;) Application.Exit() End If LoginForm.Close() LoginForm.Dispose() End Sub End Class</pre> <br/>The frmLogin form is declared as LoginForm.  This is declared as a member level variable so it is accessible in several subs in this form class.<br/><br/>In the load event, a new instance of the frmLogin form is created.<br/><br/>A handler is added to the frmLogin (declared as LoginForm) form's LoginHandled event (declared as a public event in frmLogin code), with an address set to the LoginHandler sub in the MDIParent1 code.<br/><br/>The frmLogin is then shown modally so it is the only accessible form, disabling the parent form while working in the login form.<br/><br/><br/>In the LoginHandler sub, a parameter is declared to allow the result of the rasied event to be passed in.  A boolean in this case since we will be returning true or false based on whether the user logged in or not.<br/><br/>In this example:<br/>if True is passed in, a messagebox is shown displaying &quot;logged in&quot;<br/>If False is passeed in, messagebox is shown &quot;not logged in&quot;<br/><br/>Whichever result is passed in, the instance of the frmLogin is closed and disposed of since we do not need the form anymore until the next time the parent form is loaded.<br/><br/><br/><br/><br/>You will also see there is a commented out declaration of the frmLogin as Private WithEvents.  And you can see the commented out sub LoginForm_LoginHandled.  if you declare the form instance WithEvents, this will give you access to the events in the IDE dropdown event list at the top of the form code window.  This is gives you access to the events in the class just like any control in the toolbox.<br/><br/><br/><br/><br/>alright, well i hope this helps some of you out there.<br/><br/>The question i have about comparing this to C#: Would a C#'er do it this way as well, and does the IDE also allow to declare WithEvents to have access to the events in the IDE?<br/><br/>I could just try this out in a test C# project but i thought it would help to hear it from C#'er side here in the forum.<hr class="sig"><a href="http://www.srsoft.us" style="color:#CC0099">FREE DEVELOPER TOOLS, CODE &amp; PROJECTS at </a> <a href="http://www.srsoft.us/"> www.srsoft.us </a> <a href="http://www.srsoft.us/" style="color:#FF0000">Database Code Generator and Tutorial</a>Wed, 25 Nov 2009 03:53:22 Z2009-11-28T16:57:19Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/5e318413-8b68-46c7-8f10-ce1f8ae3be47http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/5e318413-8b68-46c7-8f10-ce1f8ae3be47Mitkramhttp://social.msdn.microsoft.com/Profile/en-US/?user=MitkramHow to print records using crystal report? Hi Guyz! I'm trying to print a record in vb.net(vb2008 express edition) and what I'm familiar with printing was using data report way back when i was in vb6.0 but when i moved to vb.net lately i heard about using crystal report but im not familiar with it so i don't really know how to start with.I know it sounds like im depending too much but what im just trying to ask is a little favor just to give me a brief heads up to start with it in a first place and i'll do the rest. For example,I would like to print a line of text which is &quot;I'm a sweet lover&quot;. Please give me a complete procedures on how to start with it in setting these all up using crystal report which detects the default printer as well as its simple codes which corresponds to it. I would really appreciate if you could give me a brief heads up to start with it... Sat, 28 Nov 2009 11:36:56 Z2009-11-28T11:36:57Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/a8521552-b71e-4495-80e0-bd404a37fcf9http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/a8521552-b71e-4495-80e0-bd404a37fcf9tangomousehttp://social.msdn.microsoft.com/Profile/en-US/?user=tangomouseneed help with listviewhi. i have a checked listviewbox with 2 columns ,first is filename 2nd is path ,filename and path are added to listbox while searching a drive for a file ,how do i get the selected checkboxes listview1 &quot;path&quot; to string  <br/> <br/> ListView1.Items.Add(New ListViewItem(New String() {fname, paths}, nIndex))<br/>                     nIndex = nIndex + 1<br/> <br/> i just want paths to string.. any ideas?<br/> its doing my head in now!Fri, 27 Nov 2009 22:36:06 Z2009-11-28T00:29:58Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/bd2ec909-e306-4f83-8c2a-20606168aa11http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/bd2ec909-e306-4f83-8c2a-20606168aa11Salanewthttp://social.msdn.microsoft.com/Profile/en-US/?user=SalanewtUnshared items in Listbox Tabs?Hello. A little while ago, somebody gave me an excellent code, but there is a slight problem with it (which I have been trying to fix, but just can not figure it out). This code should force the items in a Listbox to create multiple panels, and this system is practically a tab system that is much more compact. However, the items that are drawn with this code seem to share the same data (Comboboxes all have the same items in them, when I want them to be different). Could somebody please fix this for me? Here is the code:<br/><br/><strong>salanewt</strong> , as you stated..<br/>you would rather have 1 panel to interact w/the listbox selection, which i think it is a good idea to use, considering you only have a certain amount of controls to rearrange, change location, visibility, content, etc.. much better to have 10 controls over 100 tabs w/10 controls on each tab.<br/><br/>as <strong>jeff</strong> , stated, you will have to use the <strong>ListBox1_SelectedIndexChanged</strong> event, to interact w/your panel and the controls on it..<br/>personally,<strong> i would use the case..select option over the if..elseif in the matter of having so many options</strong> in the listbox...<br/>therefore, this reply and the following example.<br/><br/><strong>1 listbox, 1 panel, 1 combobox and 1 label inside the panel</strong> <br/><br/> <div style="background-color:white;color:black"> <pre><span style="color:blue">Public</span> <span style="color:blue">Class</span> Form1 <span style="color:blue">Private</span> <span style="color:blue">Sub</span> Form1_Load(<span style="color:blue">ByVal</span> sender <span style="color:blue">As</span> System.Object, <span style="color:blue">ByVal</span> e <span style="color:blue">As</span> System.EventArgs) <span style="color:blue">Handles</span> <span style="color:blue">MyBase</span>.Load ListBox1.Items.Add(<span style="color:#a31515">&quot;panel 1&quot;</span>) ListBox1.Items.Add(<span style="color:#a31515">&quot;panel 2&quot;</span>) ListBox1.Items.Add(<span style="color:#a31515">&quot;panel 3&quot;</span>) <span style="color:blue">End</span> <span style="color:blue">Sub</span> <span style="color:blue">Private</span> <span style="color:blue">Sub</span> ListBox1_SelectedIndexChanged(<span style="color:blue">ByVal</span> sender <span style="color:blue">As</span> System.Object, <span style="color:blue">ByVal</span> e <span style="color:blue">As</span> System.EventArgs) <span style="color:blue">Handles</span> ListBox1.SelectedIndexChanged <span style="color:blue">Select</span> <span style="color:blue">Case</span> ListBox1.SelectedItem <span style="color:green">'-------------------------</span> <span style="color:blue">Case</span> <span style="color:#a31515">&quot;panel 1&quot;</span> <span style="color:green">'-------------------------</span> <span style="color:blue">With</span> ComboBox1 .Items.Clear() .Items.Add(<span style="color:#a31515">&quot;item 1&quot;</span>) .Items.Add(<span style="color:#a31515">&quot;item 2&quot;</span>) .Items.Add(<span style="color:#a31515">&quot;item 3&quot;</span>) .Location = <span style="color:blue">New</span> Point(0, 0) <span style="color:blue">End</span> <span style="color:blue">With</span> <span style="color:green">'-------------------------</span> <span style="color:blue">With</span> Label1 .Text = <span style="color:#a31515">&quot;panel 1&quot;</span> .Location = <span style="color:blue">New</span> Point(20, 20) <span style="color:blue">End</span> <span style="color:blue">With</span> <span style="color:green">'-------------------------</span> <span style="color:blue">Case</span> <span style="color:#a31515">&quot;panel 2&quot;</span> <span style="color:green">'-------------------------</span> <span style="color:blue">With</span> ComboBox1 .Items.Clear() .Items.Add(<span style="color:#a31515">&quot;item 5&quot;</span>) .Items.Add(<span style="color:#a31515">&quot;item 6&quot;</span>) .Items.Add(<span style="color:#a31515">&quot;item 7&quot;</span>) .Location = <span style="color:blue">New</span> Point(10, 10) <span style="color:blue">End</span> <span style="color:blue">With</span> <span style="color:green">'-------------------------</span> <span style="color:blue">With</span> Label1 .Text = <span style="color:#a31515">&quot;panel 2&quot;</span> .Location = <span style="color:blue">New</span> Point(30, 30) <span style="color:blue">End</span> <span style="color:blue">With</span> <span style="color:green">'-------------------------</span> <span style="color:blue">Case</span> <span style="color:#a31515">&quot;panel 3&quot;</span> <span style="color:green">'-------------------------</span> <span style="color:blue">With</span> ComboBox1 .Items.Clear() .Items.Add(<span style="color:#a31515">&quot;item 7&quot;</span>) .Items.Add(<span style="color:#a31515">&quot;item 8&quot;</span>) .Items.Add(<span style="color:#a31515">&quot;item 9&quot;</span>) .Location = <span style="color:blue">New</span> Point(20, 20) <span style="color:blue">End</span> <span style="color:blue">With</span> <span style="color:green">'-------------------------</span> <span style="color:blue">With</span> Label1 .Text = <span style="color:#a31515">&quot;panel 3&quot;</span> .Location = <span style="color:blue">New</span> Point(40, 40) <span style="color:blue">End</span> <span style="color:blue">With</span> <span style="color:green">'-------------------------</span> <span style="color:blue">End</span> <span style="color:blue">Select</span> <span style="color:blue">End</span> <span style="color:blue">Sub</span> <span style="color:blue">End</span> <span style="color:blue">Class</span> </pre> <br/>Thank you in advance.<br/><br/>Have a nice day.<br/></div>Fri, 27 Nov 2009 21:04:09 Z2009-11-27T22:28:36Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/c2e2e85a-1aeb-4810-b841-bfdec83c9663http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/c2e2e85a-1aeb-4810-b841-bfdec83c9663angliaboyhttp://social.msdn.microsoft.com/Profile/en-US/?user=angliaboyButton Click event to highlight all recordsHi, <br/> <br/> on my form that contains an active database through a persistent ODBC connection I have a button that says 'Select all records' to give the user access to delete the records, but the problem I'm having is I cannot get it to highlight all records or any records for that matter.<br/> <br/> i have tried the selectionmode = FullRowSelect  text but don't know what context to use it in so it just comes up with errors, plus this would just highlight one row anyway.<br/> <br/> <br/> Can anyone make a suggestion please?<br/> <br/> <br/> many thanksThu, 26 Nov 2009 22:36:53 Z2009-11-27T21:40:59Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/d9103e23-168d-4db6-9704-6348a1d6d09ehttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/d9103e23-168d-4db6-9704-6348a1d6d09eStdedoshttp://social.msdn.microsoft.com/Profile/en-US/?user=StdedosConsole Application, Cannot be debugged in Windows VistaI have a simple console program, that simply copies three folders to another location, separating them with day/time timestamps ...<br/> The problem is that, it is fully functional on XP, but on Vista, even the debugger is unable to run it<br/> The complied program although, it has an 0xc000007b error code, before it is killed.<br/> <br/> Is there anything to do for it?<br/>Fri, 27 Nov 2009 19:26:53 Z2009-11-27T21:22:26Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/ef019252-8cd5-403a-8cf6-cf08daa5b6ddhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/ef019252-8cd5-403a-8cf6-cf08daa5b6dddagedudehttp://social.msdn.microsoft.com/Profile/en-US/?user=dagedudeSearch and Highlight found textIs there any code that works in VB 2008 (Visual Studio 9.0) that will let the user type something into a textbox (TextBox1), click a button (Button1), and search and highlight it in a rich text box(txt)? I have tried several &quot;If, Then&quot; statements and &quot;Try&quot; StatementsThu, 26 Nov 2009 04:30:59 Z2009-11-27T21:21:54Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/f2d124f1-7942-4cd1-9060-54b320d78e5bhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/f2d124f1-7942-4cd1-9060-54b320d78e5bDJSTUhttp://social.msdn.microsoft.com/Profile/en-US/?user=DJSTUFlash IntegrationDoes anyone know of any third party components that will let me stream flash videos into my vb.net application?<hr class="sig">** CHECK OUT HTTP://www.rapidsoftware.co.uk MY NEW APPLICATIONS SILENT SCREEN &amp; RAPID DJ **Fri, 27 Nov 2009 20:55:18 Z2009-11-27T21:02:52Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/87af53a4-a6d5-4270-a27a-56973ce40744http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/87af53a4-a6d5-4270-a27a-56973ce40744ilias_ioannouhttp://social.msdn.microsoft.com/Profile/en-US/?user=ilias_ioannouupgrade failed<strong>[upgrade failed...could not load comdlg32.ocx  ridhtx32.ocx...]</strong> <br/> thats the message i get when i try to upgrade a project from VB6.0 in VB2008.<br/> i have installed  VB2008 express edition in my pc and nothing else.<br/> do i have to (re)install vb6.0?or just some missing components???<br/> thanks in advance:-)Fri, 27 Nov 2009 18:18:23 Z2009-11-27T21:01:19Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/ac010bf6-a24e-4be0-8feb-0b015c1550b8http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/ac010bf6-a24e-4be0-8feb-0b015c1550b8jtehttp://social.msdn.microsoft.com/Profile/en-US/?user=jteAnimated gif and time-consuming code handlingHi all,<br/> <br/> I made an application, where on the form I placed an animted gif so the user knows that the application is busy.<br/> Now when the user push the button, the program starts handling some time consuming code, and the goal was to<br/> start the animated gif. There is my problem, it does not animate.<br/> <br/> As far as I know it has to do with threads, but this is <em>Unknown territory</em> for me. I experimented with it, but it is not<br/> that easy.<br/> <br/> Can someone give me some hints/tips so to help me fix my problem, animate the animated gif.<br/> <br/> With kind regards,<br/> JurgenMon, 23 Nov 2009 07:26:11 Z2009-11-27T20:09:15Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/9487d529-5e9b-483f-a56f-6dfeeef8b2f6http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/9487d529-5e9b-483f-a56f-6dfeeef8b2f6Silver_Gateshttp://social.msdn.microsoft.com/Profile/en-US/?user=Silver_GatesAudio Record and playback via MCI DeviceHi folks , I was trying to develop an Audio chat application and i am trying to use the MCI device. I know how to record the application and save it to a wave file and then play it. using the following method:<br/><br/>'Declare the API<br/> <p class=MsoNormal style="margin:0in 0in 0pt;text-autospace:ideograph-numeric;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><span style="font-size:9pt;color:darkblue;font-family:'Courier New'">Declare Function mciSendString Lib &quot;winmm&quot; Alias &quot;mciSendStringA&quot; (ByVal _</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;text-autospace:ideograph-numeric;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><span style="font-size:9pt;color:darkblue;font-family:'Courier New'"><span style="">    </span>lpstrCommand As String, ByVal lpstrReturnString As String, _</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;text-autospace:ideograph-numeric;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><span style="font-size:9pt;color:darkblue;font-family:'Courier New'"><span style="">    </span>ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long</span></p> <br/> <p class=MsoNormal style="margin:0in 0in 0pt;text-autospace:ideograph-numeric;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><span style="font-size:9pt;color:darkblue;font-family:'Courier New'">CommandString = &quot;Open new type waveaudio alias RecWavFile&quot;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;text-autospace:ideograph-numeric;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><span style="font-size:9pt;color:green;font-family:'Courier New'">' start recording</span><span style="font-size:9pt;color:darkblue;font-family:'Courier New'"></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;text-autospace:ideograph-numeric;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><span style="font-size:9pt;color:darkblue;font-family:'Courier New'">CommandString = &quot;Record RecWavFile&quot;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;text-autospace:ideograph-numeric;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><span style="font-size:9pt;color:darkblue;font-family:'Courier New'">CommandString = &quot;Record RecWavFile to 2000 wait&quot;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;text-autospace:ideograph-numeric;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><span style="font-size:9pt;color:darkblue;font-family:'Courier New'">CommandString = &quot;Save RecWavFile &quot; &amp; &quot;c:\mysound.wav&quot;<br/></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;text-autospace:ideograph-numeric;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><span style="font-size:9pt;color:darkblue;font-family:'Courier New'">CommandString = &quot;Close RecWavFile&quot;<br/><br/>'Now to play it I could go like<br/>retVal = mciSendString(&quot;open &quot; &amp; &quot;c:\myound.wav&quot; &amp; &quot; type mpegvideo alias asound&quot;,0,0,0)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;text-autospace:ideograph-numeric;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><span style="font-size:9pt;color:darkblue;font-family:'Courier New'">retVal = mciSendString(&quot;play asound&quot;, 0, 0, 0)<br/><br/>what i am trying to achieve here is a way or a method through which I dont have to save the stream to a file for transmission , a way or a method that i could just send the stream over to the other computer via sockets and when it is received there its automatically played.<br/>any help regarding this issue would be be appreciated ...thanks.</span></p><hr class="sig">A candle loses nothing by lighting another candle.Mon, 23 Nov 2009 18:05:08 Z2009-11-27T18:44:24Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/2ceafce1-df03-4045-950b-054fb3fa7eb3http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/2ceafce1-df03-4045-950b-054fb3fa7eb3Collin Sauvehttp://social.msdn.microsoft.com/Profile/en-US/?user=Collin%20SauveProject-to-Project references.So I've got a problem.  At the moment all of my projects for a certain product i work on are solution-less.  Our reasoning for doing this is because different people might want different solutions, so keep your solution files in your local working folder, but never commit them to source control.  (keep them to yourselves)<br/> <br/> My problem arises when I have multiple projects in a solution, and I want to use &quot;Go to definition&quot; or &quot;Find all references&quot;.  If the definition is in a different project, then Visual Studio opens the Object Browser, it does not go to the 2nd project and find the definition in the code.  This is because the reference is targeted at the 2nd project's build path, it is not a Project-to-Project reference.<br/> <br/> If I change the reference to be a Project-to-Project reference, &quot;Go to definition&quot; and &quot;Find all references&quot; works, but if someone else on my team opens one of the projects while not in the solution (since its my solution, they don't have it), the reference will become invalid.  This is also the case if I &quot;unload&quot; the 2nd project in the solution (which I have a habit of doing when i have several dozen projects in the same solution - for larger products this can happen a lot).<br/> <br/> Is there any way to fix it so that it is a project-to-project reference, failing that it goes to a specific path to find it?  I've already tried using a reference path to no avail. <hr class=sig> Collin SauveThu, 26 Nov 2009 21:10:03 Z2009-11-27T17:51:25Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/c54fc762-e5d7-472c-94a5-961056da86bahttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/c54fc762-e5d7-472c-94a5-961056da86baQuestionableWorthhttp://social.msdn.microsoft.com/Profile/en-US/?user=QuestionableWorthVB6 Converting File informationI was wondering if VB6 can read .text document numbers then VB will display the lowest, largest, total number used in the file and the average use of numbers.<br/><br/>The problem I have is that I know you can open files into VB (or well open the file and display it) but since the file is usually a .text document and has words (or numbers) in it I don't understand how to intergrate the files content into forming the format i want it to appear.<br/><br/>I'm using MS notepad and the file I'm using (Or document I have saved .text) is being displayed but the document only has numbers in it (Thats a good thing cause I only want numbers) I don't want VB to read the document as a DOCUMENT but I want it to read the file then display all the numbers within the document then sort them in a particular order like; Largest, lowest, average numbers found, and the total of numbers within the document. <br/><br/>I was thinking that I had to use a conversion command but I don't think <span style="font-size:medium">CStr,CDbl, CInt would apply to a document. If anyone has any suggestions please answer. &gt;~&lt;</span>Fri, 27 Nov 2009 15:58:48 Z2009-11-27T17:21:28Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/6eda41dc-eef3-418c-9ba4-cf6a9eaa1d2dhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/6eda41dc-eef3-418c-9ba4-cf6a9eaa1d2darcanedevicehttp://social.msdn.microsoft.com/Profile/en-US/?user=arcanedeviceinteger value in datagridview<p>Hoping someone can point out where I'm going wrong.<br/><br/>I have an Access database with two tables.  The primary table contains an autonumber field for ClientID.  The second table contains a foreign key number field (long integer) that relates to the primary table.  On my first form, I have a datagridview that displays data from the primary table.  The user can select a row and on clicking a button, a new form opens to display the data from the second table.<br/><br/>I have the following code, but for some reason I keep getting a 'Data type mismatch in criteria expression' error:<br/></p> <pre> Dim clientid As Long clientid = DataIndividuals.CurrentCell.Value If auditconnection.State = ConnectionState.Closed Then auditconnection.Open() auditcommand = New OleDbCommand(&quot;SELECT * From Audits WHERE TxtClientID = '&quot; &amp; clientid &amp; &quot;'&quot;, auditconnection) auditDA = New OleDbDataAdapter(auditcommand) auditDataSet = New DataSet() auditDA.Fill(auditDataSet, &quot;audit&quot;) 'here is where the error occurs DataGridaudit.DataSource = auditDataSet.Tables(&quot;audit&quot;).DefaultView auditconnection.Close()</pre> I've tried changing the ClientID field to Text in the database and then using Dim clientID As String and it works perfectly, so I just can't see where I'm going wrong.Fri, 27 Nov 2009 00:19:01 Z2009-11-27T15:52:41Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/8a5191aa-92ca-4230-b907-591954f7d2a4http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/8a5191aa-92ca-4230-b907-591954f7d2a4wes73http://social.msdn.microsoft.com/Profile/en-US/?user=wes73user settings for all usersI've written a program that saves a number settings including file locations for loading and saving files.  I do not want to save these settings as &quot;application&quot; settings since I'd like to be able to change the settings even after it has been installed.  If I do change the settings though, it is important that these settings would change for everyone who uses the program no matter who they are logged in as.  Currently it seems these settings go back to the default setting for each new user who is logged in to the machine and would need to be set for each new user. (Hundreds of students will be using this program.)  Is there a way to put the user settings in &quot;all users&quot; instead of the individual user settings?<br/><br/>Thanks in advance for any help.<br/><br/>WesWed, 25 Nov 2009 21:51:13 Z2009-11-27T16:50:42Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/aa3b9884-1d0b-4434-a690-62cd2f58c054http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/aa3b9884-1d0b-4434-a690-62cd2f58c054pruntohttp://social.msdn.microsoft.com/Profile/en-US/?user=pruntoHow to use Vb 2008 with .mdb database?How to use Vb 2008 with .mdb database?<br/>I am interested write and reading from the databaseWed, 25 Nov 2009 08:09:16 Z2009-11-27T13:28:18Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/6b4c94bc-d01d-4502-a80a-d22ae8e992dbhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/6b4c94bc-d01d-4502-a80a-d22ae8e992dbpinoyzhttp://social.msdn.microsoft.com/Profile/en-US/?user=pinoyzhow to get the address of smtp server and port? ex. google, yahoo or other mail<p align=left><font face=Arial size=2>how to get the address of smtp server and port? ex. google, yahoo or other mail</font></p> <p align=left> </p> <p align=left> </p> <p align=left>regards</p>Mon, 30 Jul 2007 03:17:53 Z2009-11-27T10:57:53Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/639cb6a4-78b3-47a0-a723-988325599538http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/639cb6a4-78b3-47a0-a723-988325599538pinoyzhttp://social.msdn.microsoft.com/Profile/en-US/?user=pinoyzsending email with checknames...Hi,<br/><br/>I'd created a simple sending mail... and works well... <br/>I want to implement the checknames like in outlook...the checkname is activated for company receipients only<br/><br/>I'm using the company's SMTP ()<hr class="sig">noob vb programmerWed, 25 Nov 2009 07:00:12 Z2009-11-27T09:16:09Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/7628c1d7-ad5e-4af7-b3a7-78c7295d7eaahttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/7628c1d7-ad5e-4af7-b3a7-78c7295d7eaaAnonymous8835http://social.msdn.microsoft.com/Profile/en-US/?user=Anonymous8835Debug Start DebuggingHi,<br/><br/>When i click build i do not get a problem but if i click Debug Start Debugging i get the following message<br/><br/>Unable to copy file obj\debug\myprogram.exe to bin\debug\myprogram.exe could not find the file obj\debug\muprogram.exe<br/><br/>How do i fix this and why has it happened, i'm using visual basic 2008 express<br/><br/>Richard<br/><br/>Fri, 06 Nov 2009 11:23:08 Z2009-11-27T09:10:33Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/eeac577b-1ac3-4a19-a68f-f7fa9bf52c8dhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/eeac577b-1ac3-4a19-a68f-f7fa9bf52c8dMitkramhttp://social.msdn.microsoft.com/Profile/en-US/?user=MitkramHow to display records in the listview control?Hi everyone!<br/> <br/> I'm trying to use listview control in vb.net or vb2008 express edition to display records from my database after it is being queried.I have two column headers in my listview control which are named<strong> Account#</strong> and <strong>Authorized Users.</strong> <br/> I was able to display the records from the database into the listview control but i don't know how to arrange it in a proper column where it should be displayed cause what happen is all records are being combined in one column which other records should be aligned to the other column.What I want is to display the account numbers in aligned with the Account# column header and the names should be aligned in Authorized Users column header.<br/> Here's the codes I used:<br/> <br/> *****************************************************************<br/> Private Sub Button1_Click(-------------) Handles Button1.Click<br/> <br/>      Dim db As New memrecDataContext<br/>      Dim au = From ah In db.Table1s _<br/>                    Where ah.Account &lt;&gt; &quot; &quot;<br/> <br/>      For Each ah In au<br/>           With Form9.ListView1.Items<br/>                  Form9.ListView1.Items.Add(ah.Account)<br/>                  Form9.ListView1.Items.Add(ah.Name)<br/>                  Form9.Show()<br/>           End With<br/>     Next<br/> <br/> End Sub<br/> *********************************************************<br/> I would greatly appreciate if you could correctly debug the codes for me?<br/> <br/> <br/>Fri, 27 Nov 2009 05:52:39 Z2009-11-27T06:05:24Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/782f7a44-c67a-4995-9883-532acfa07f2ahttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/782f7a44-c67a-4995-9883-532acfa07f2alady plumberhttp://social.msdn.microsoft.com/Profile/en-US/?user=lady%20plumberdon't want ease of access used on my mouseMy mouse only lets me click on the right. Every time I try to change it, it wount let me. Any suggestions?Sat, 21 Nov 2009 15:49:22 Z2009-11-27T03:30:32Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/002be705-46ac-4172-9566-8358d37c4b3bhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/002be705-46ac-4172-9566-8358d37c4b3bsurroundedhttp://social.msdn.microsoft.com/Profile/en-US/?user=surroundedSQL Server is missing in database explorerI have installed visual studio 2008 express edition.  <br/> <br/> In visual web developer I can see the Microsoft SQL server in the available databases when I open database connection wizard. <br/> <br/> but In visual basic, I cant see Microsoft SQL server but Microsoft SQL server compact edition 3.5. is there any difference between Microsoft SQL server and Microsoft SQL server compact edition 3.5?<br/>Thu, 26 Nov 2009 04:22:50 Z2009-11-27T02:14:31Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/a0aec818-e9aa-4ce1-9430-4d443f4b6c33http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/a0aec818-e9aa-4ce1-9430-4d443f4b6c33Princy_Joneshttp://social.msdn.microsoft.com/Profile/en-US/?user=Princy_JonesSearching the databaseHi, i am developing an inventory system for my 3rd year of studies. Problem: I have a search screen which requires you to enter data in the textbox click search, and than it gives you the record in the datagridview. That all works well. What i need to do is that while the user is typing i need the search to to start performing with every letter typed. So like if the user types &quot;M&quot; it should go to all records with &quot;M&quot; and so on. Could you please help as i have no idea where to start from! I am using an Access database! <p align=left><font face=Arial size=2></font> </p> <p>Thanks</p> <p align=left>Princy_Jones</p>Fri, 22 Aug 2008 20:31:55 Z2009-11-26T22:31:47Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/167492fd-12cf-4837-8933-9fa979fbd859http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/167492fd-12cf-4837-8933-9fa979fbd859Juha Phttp://social.msdn.microsoft.com/Profile/en-US/?user=Juha%20PProblem with Messenger apiSo I created an application with <acronym title="Visual Basic">vb</acronym> .net, I added Messenger type Api in preferences, compiled my program and everything was fine. However I can't run the program from other directories. It says that the .dll is missing. I'm trying to include the .dll to the program somehow - no success, how that should be done? <br/> <br/> Friend tried to help me and said I should add &quot;Application block&quot; something to the references. I can't find that though.<br/> <br/> Soo: If i move my program from the directory where visual basic 2008 created it. It won't start.<br/> -&gt; System.IO.FileNotFoundException: Could not load file or assembly 'Interop.MessengerAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Määritettyä tiedostoa ei löydy.Tue, 24 Nov 2009 20:44:50 Z2009-11-26T22:09:08Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/ac6f3174-3dc6-4732-9512-0de51b1f4df0http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/ac6f3174-3dc6-4732-9512-0de51b1f4df0JackDKhttp://social.msdn.microsoft.com/Profile/en-US/?user=JackDKconvert C# to VB.NET<pre class=FreeTextFull>Hi all, <br/>  I want convert the below code to VB.net. I tried many online convertion tool. but I didnt get the solution. <br/> Action&lt;PieChart, Func&lt;PieSegmentList&gt;&gt; act = (pc, fp) =&gt; pc.Segments = fp();</pre>Wed, 25 Nov 2009 13:20:51 Z2009-11-26T22:07:07Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/be87c6a8-0e18-44ab-b475-ece621d4c62ehttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/be87c6a8-0e18-44ab-b475-ece621d4c62edivotdiggerhttp://social.msdn.microsoft.com/Profile/en-US/?user=divotdiggerPrinting in 17 CPI & 6 LPI<p>How do I print at 17 cpi &amp; 6 LPI?  Using Visual Basic 2008 express edition.  Don't want to use the escape sequence to do this because this is limited to a specific printer.</p>Thu, 26 Nov 2009 19:26:47 Z2009-11-26T21:54:28Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/bce31873-53c5-42ec-9abd-ff0df74714b2http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/bce31873-53c5-42ec-9abd-ff0df74714b2Berry14http://social.msdn.microsoft.com/Profile/en-US/?user=Berry14How to selecect a lot of files in OpenFileDialogHello everybody,<br/><br/>I made a program wchich changes filesnames of a lot of files. But an OpenFileDialog has a TextBox and that textbox has a limit. So you can't select more than around 500 files (depends of the length of the filename) because it doesn't fit in the TextBox. Does anyone know how i can select as many files as i want? The OpenFileDialog doesn't have to show the filenames in the TextBox, but I must be able to use OpenFileDialog.FileNames.<br/><br/>Thanks!!Tue, 24 Nov 2009 15:48:40 Z2009-11-26T20:14:22Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/2deeaa62-6671-4174-a845-94b2f47da5a8http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/2deeaa62-6671-4174-a845-94b2f47da5a8mihaisprhttp://social.msdn.microsoft.com/Profile/en-US/?user=mihaisprSearch form and store result of search in a DataGridViewHi everyone and thanks for reading my question!<br/> <br/> I have two 2tables PatrimoniuMasini and FoaieParcursMasina (2tables.sql file - the DDL is made with create table and insert into- no problem here -just run the file in sql server to see the results). The name of the database is ParcAuto.<br/> <br/> What I want:<br/> <br/> I have on my form 3 textboxes and 2 datetimepickers.<br/> <br/> When I click search button it searches the values entered and selected in 3 textboxes and 2 datetimepickers, and stores in appropiate columns of DataGridView my result.<br/> <br/> <br/> Test to store values in DataGridView: (this values typed in 3 textboxes and selected in the dtpickers exist as rows in my 2 tables)<br/> <br/> TextBox1: the user types DB-20-RTS (and the result is stored in column1 of DataGridView)<br/> <br/> DateTimePicker1: the user selects 7 april 2004 (the result is stored in column2 of DataGridView )<br/> <br/> DateTimePicker2: the user selects 7 april 2004 (the result is stored in column3 of DataGridView )<br/> <br/> TextBox2: the user types Targoviste (the result is stored in column4 of DataGridView )<br/> <br/> TextBox3: the user types Medgidia (the result is stored in column5 of DataGridView )<br/> <br/> I have no error of syntax (my problem is in Search button) .<br/> <br/> I attach here the full source (sql file and visual basic 2008 express edition file) in order to be more clear and to complete my explanations.<br/> <br/> I don't know what I'm missing the query it's ok done he is connecting well with sql server but he doesn't store in appropiate columns the result of my search. (the last thing is my problem but not having errors of syntax in the code of button search where it lies my problem).<br/> <br/> Here is the full project attached (no error syntax but still doesn't do what I want to achieve in my explanations above):<br/> <a href="http://www.4shared.com/file/159466712/dd065166/Project_store_result_in_datagr.html"><br/> http://www.4shared.com/file/159466712/dd065166/Project_store_result_in_datagr.html</a> <br/> <br/> Thanks for any and all help!<br/> <br/> Just not know what I'm missing! All seems fine but he doesn't store the result of search in the 5 columns(each value entered by user in a separate column) even if I don't have errors of syntax.<br/> <br/> Best regards,<br/> <br/> Mike<br/> <br/> <br/> <br/>Wed, 25 Nov 2009 12:09:09 Z2009-11-26T18:27:45Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/953c6fc4-ec07-450a-bbe8-c4aaefc32946http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/953c6fc4-ec07-450a-bbe8-c4aaefc32946PRIMEONETIMEhttp://social.msdn.microsoft.com/Profile/en-US/?user=PRIMEONETIMECopy a text resource file to a directoryI have a batch file imported into my resources. I have code that will validate that a directory does not yet exist and it will make a new directory:<br/><br/> <pre lang=x-vbnet>If Not Directory.Exists(&quot;C:\Program Files\GVS Batch&quot;) Then Directory.CreateDirectory(&quot;C:\Program Files\GVS Batch&quot;) End If</pre> <p>After that i want to copy my resource file into the newly created directory.</p> <p>Can anyone explain how this works, and what steps i have to take?</p>Thu, 19 Nov 2009 16:31:12 Z2009-11-26T17:11:58Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/75964d36-531a-4025-9889-ed7c0730e6e4http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/75964d36-531a-4025-9889-ed7c0730e6e4Onenewhttp://social.msdn.microsoft.com/Profile/en-US/?user=OnenewMail body formating<br/>  <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span class=longtext1><span style="font-family:Calibri"><span style="font-size:10pt;background:white">I want to use the code below on my website. </span><span title="Korisnik treba popuniti formular i poslati mail na moj gmail račun."><span style="font-size:small">User must fill out the form and send it via mail to my gmail account.</span></span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span class=longtext1><span style="font-size:10pt;background:white"><span style="font-family:Calibri">Textbox1 is for body, textbox2 for e-mail and textbox3 for name.</span></span></span><span style="font-size:10pt;background:white"><br/></span><span style="font-size:10pt"><span title="Ja imam dva pitanja."><span style="font-family:Calibri">I have two questions.</span></span></span><span style="font-size:10pt"><br/><span class=longtext1><span style="font-family:Calibri"><span style=""> </span><span title="- 1.">- 1 </span><span style="background:white"><span title="- Šta treba pisati u žutim poljima ?.">- What should be written in the yellow fields ?. </span><span title="Ja mislim da je to u ovom slučaju svejedno, da to nije važno,">Maybe <span style=""> </span>(in this case ) it's not important.</span></span></span></span><span style="background:white"><br/><span style="font-family:Calibri"><span class=longtext1><span style=""> </span></span></span></span><span class=longtext1><span style="font-family:Calibri"><span style="">- 2 </span><span style="background:white"><span title="- Ja želim dobiti u mail body ne samo sadržaj iz textbox1 nego i sadržaje iz nekoliko drugih textboxes, ali svaka fraza u novom redu.">- I want to get in the mail body, not only content of textbox1 but also contents from several other textboxes,</span></span></span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-family:Calibri"><span class=longtext1><span style="font-size:10pt;background:white">( something like a textbox1.text+textbox4.text+textbox5.text….) <span style=""> </span>but each in the new line of body area.. </span></span><span class=longtext1><span style="font-size:10pt">What do I need to add in code?</span></span></span><span style="font-size:10pt"><br/><span style="background:white"><span title=Hvala><span style="font-family:Calibri">Thanks. Onenew.</span></span></span></span><span style="color:blue"></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;color:blue;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;color:blue;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;color:blue;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;color:blue;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;color:blue;font-family:'Courier New'">Imports</span><span style="font-size:10pt;font-family:'Courier New'"> System.Net.Mail</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;color:blue;font-family:'Courier New'">Partial</span><span style="font-size:10pt;font-family:'Courier New'"> <span style="color:blue">Class</span> _Default</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">    </span><span style="color:blue">Inherits</span> System.Web.UI.Page</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">    </span><span style="color:blue">Private</span> <span style="color:blue">Sub</span> Button1_Click(<span style="color:blue">ByVal</span> sender <span style="color:blue">As</span> System.Object, <span style="color:blue">ByVal</span> e <span style="color:blue">As</span> System.EventArgs) <span style="color:blue">Handles</span> Button1.Click</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">        </span>sendMail(<span style="color:#a31515">&quot;mymail@gmail.com&quot;</span>, <span style="color:#a31515">&quot;&quot;</span>, <span style="background:yellow">TextBox1.Text</span>)</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">    </span><span style="color:blue">End</span> <span style="color:blue">Sub</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;color:blue;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">    </span><span style="color:blue">Private</span> <span style="color:blue">Sub</span> sendMail(<span style="color:blue">ByVal</span> toAddress <span style="color:blue">As</span> <span style="color:blue">String</span>, <span style="color:blue">ByVal</span> subject <span style="color:blue">As</span> <span style="color:blue">String</span>, <span style="color:blue">ByVal</span> msgbody <span style="color:blue">As</span> <span style="color:blue">String</span>)</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">        </span><span style="color:blue">Try</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">            </span><span style="color:blue">Dim</span> MyMail <span style="color:blue">As</span> <span style="color:blue">New</span> MailMessage()</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">            </span>MyMail.From = <span style="color:blue">New</span> MailAddress(<span style="color:#a31515">&quot;<span style="background:yellow">something@gmail.com</span>&quot;</span>)</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">            </span>MyMail.To.Add(toAddress)</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">            </span>MyMail.Subject = <span style="color:#a31515">&quot;Message sent by :<span style="">        </span>&quot;</span> + TextBox3.Text + <span style="color:#a31515">&quot; dana &quot;</span> + DateTime.Now.ToString(<span style="color:#a31515">&quot;dd. MMMM, yyyy. u HH:mm&quot;</span>) <span style="color:#a31515"></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">  </span><span style="">          </span>MyMail.Body = TextBox1.Text </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;color:red;font-family:'Courier New'">‘Here I want to add (in mail body) strings from other textboxes 4,5,6 etc. but every string in new line of body area.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">            </span><span style="color:blue">Dim</span> SMTPServer <span style="color:blue">As</span> <span style="color:blue">New</span> SmtpClient(<span style="color:#a31515">&quot;smtp.gmail.com&quot;</span>)</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">            </span>SMTPServer.Port = 587</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">            </span>SMTPServer.Credentials = <span style="color:blue">New</span> System.Net.NetworkCredential(<span style="color:#a31515">&quot;mymail@gmail.com&quot;</span>, <span style="color:#a31515">&quot;onenew&quot;</span>)</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">            </span>SMTPServer.EnableSsl = <span style="color:blue">True</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;color:blue;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;color:blue;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">            </span>SMTPServer.Send(MyMail)</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">           </span><span style=""> </span>MsgBox(<span style="color:#a31515">&quot;E-mail sent&quot;</span>)</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">        </span><span style="color:blue">Catch</span> ex <span style="color:blue">As</span> SmtpException</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">            </span>MsgBox(ex.Message)</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">        </span><span style="color:blue">End</span> <span style="color:blue">Try</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;color:blue;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Courier New'"><span style="">    </span><span style="color:blue">End</span> <span style="color:blue">Sub</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="font-size:10pt;color:blue;line-height:115%;font-family:'Courier New'">End</span><span style="font-size:10pt;line-height:115%;font-family:'Courier New'"> <span style="color:blue">Class</span></span></p>Tue, 24 Nov 2009 11:38:43 Z2009-11-26T11:30:05Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/d1162e25-394e-41f6-84df-0d30fb284b79http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/d1162e25-394e-41f6-84df-0d30fb284b79NintendoZACHERYhttp://social.msdn.microsoft.com/Profile/en-US/?user=NintendoZACHERYClick?Just to save me time, what is the code to just make your mouse click?Sat, 21 Nov 2009 05:11:08 Z2009-11-27T03:26:40Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/9577899d-20ab-4ab8-a474-c364114eb05ehttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/9577899d-20ab-4ab8-a474-c364114eb05eRenee Culverhttp://social.msdn.microsoft.com/Profile/en-US/?user=Renee%20CulverAcc Vio in graphics<p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small">I wrote a routine that ran great under Vista and with a different terminal. It doesn't as it get's an access violation in storagebit.bitmap now. Here hoping you can help me with it. If you want to try the program out leave or send me your address.<br/>Renee<br/><br/><br/>Private Sub Tmr_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Tmr.Tick</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>Static Factor As Single = RectangleHeight / 100</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style=""> </span><span style="">       </span>Static proc1pen As Pen = New Pen(Color.Red, 1) : Static proc2pen As Pen = New Pen(Color.MintCream, 1)</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>Static PhysMemPen As Pen = New Pen(Color.Teal, 1) : Static VirtMemPen As Pen = New Pen(Color.DarkGoldenrod, 1)</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>Static clearpen As Pen = New Pen(Color.Black, 2)</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>Static P0val As Integer : Static P1val As Integer : Static hDraw As Short : Static YPoint As Short</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>hDraw = RectangleHeight - StepSize</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>nbm = bm.Clone</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>StorageBitmap.DrawImage(nbm, New Rectangle(0, 0, RectangleWidth - StepSize, RectangleHeight), _</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">                                     </span>New Rectangle(StepSize, 0, RectangleWidth - StepSize, RectangleHeight), _</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">                                                                 </span>GraphicsUnit.Pixel)</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style=""> </span><span style="">       </span>StorageBitmap.DrawLine(clearpen, RectangleWidth - 1, RectangleHeight, RectangleWidth - 1, 0) 'clear last two lines</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>P0val = P0.NextValue() &gt;&gt; 2</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>If Uni Then</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">            </span>StorageBitmap.DrawLine(proc1pen, RectangleWidth - 1, RectangleHeight, RectangleWidth - 1, RectangleHeight - P0val)</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>Else</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">            </span>P1val = P1.NextValue() &gt;&gt; 2</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">            </span>StorageBitmap.DrawLine(proc1pen, RectangleWidth - 2, RectangleHeight, RectangleWidth - 2, RectangleHeight - P0val)</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">            </span>StorageBitmap.DrawLine(proc2pen, RectangleWidth - 1, RectangleHeight, RectangleWidth - 1, RectangleHeight - P1val)</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>End If</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"> </span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>If ShowPhysMem Then</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">            </span>YPoint = -CInt((My.Computer.Info.AvailablePhysicalMemory / TotPhysicalMem) * -RectangleHeight)</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">            </span>StorageBitmap.DrawLine(PhysMemPen, RectangleWidth - StepSize, YPoint, RectangleWidth, YPoint)</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>End If</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"> </span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>If ShowVirtMem Then</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">            </span>YPoint = RectangleHeight - Math.Round(VMInUse.NextValue * Factor)</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">            </span>StorageBitmap.DrawLine(VirtMemPen, RectangleWidth - StepSize, YPoint, RectangleWidth, YPoint)</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>End If</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">        </span>pb1.Image = bm</span></span></p> <p class=MsoPlainText style="margin:0in 0in 0pt"><span style="font-family:'Courier New'"><span style="font-size:small"><span style="">    </span>End Sub</span></span></p>Mon, 23 Nov 2009 03:59:12 Z2009-11-26T05:48:30Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/5686a6f7-4c23-49be-a84d-ffc065990957http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/5686a6f7-4c23-49be-a84d-ffc065990957Rouru Sakaihttp://social.msdn.microsoft.com/Profile/en-US/?user=Rouru%20SakaiCreating a black overlay on an image/Splash screen Transparency issues/ Pressing a button to restart the processSo I've made a program which creates a collage of imagse but my problem is that there are a bit too many varying colors. My simple solution idea was creating a faded black overlay on the image. Is there anyway of doing this? <div><br/></div> <div>Second Question, How do I make a splashscreen's borders transparent?</div> <div><br/></div> <div>Finally is there a way to have a button on the form which will restart the program except for the splash screen?</div> <div><br/></div> <div>Thanks</div> <div>Rouru Sakai</div> <div><br/></div> <div>p.s. Heres the code to create the picture grid if you find that it is needed.</div> <div> <pre lang=x-vbnet>Sub CreatePictureGrid(ByVal locationBase As Point, ByVal gridSize As Size, _ ByVal pictureSize As Size, ByVal sourceDir As String, _ ByVal searchPattern As String) Dim imagePaths As String() imagePaths = System.IO.Directory.GetFiles(sourceDir, searchPattern, _ IO.SearchOption.AllDirectories) Dim myRandomPaths As New List(Of String) Dim myRandom As New Random myRandomPaths.Add(imagePaths(0)) For Each path In imagePaths myRandomPaths.Insert(myRandom.Next Mod myRandomPaths.Count, path) Next Dim imageIndex = 0 Dim loc As Point = locationBase ' Defines the space around each image. ' If you don't want any space set to '0'. Dim pbMargin As Padding = New Padding(-1) For row As Integer = 0 To gridSize.Height - 1 For col As Integer = 0 To gridSize.Width - 1 Dim pb As New PictureBox() With pb .Margin = pbMargin .SizeMode = PictureBoxSizeMode.Zoom .Image = Image.FromFile(myRandomPaths(imageIndex)) .Location = New Point(loc.X + pbMargin.Left, loc.Y + pbMargin.Top) .Size = pictureSize .Visible = True End With Me.Controls.Add(pb) loc.Offset(pbMargin.Right + pbMargin.Left + pictureSize.Width, 0) 'Dim randomnmbr As Random imageIndex += 1 If (imageIndex = imagePaths.Length) Then Exit Sub Next loc = New Point(locationBase.X, _ loc.Y + pictureSize.Height + pbMargin.Top + pbMargin.Bottom) Next End Sub</pre> <br/></div>Tue, 24 Nov 2009 06:35:20 Z2009-11-26T05:19:30Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/b99184b3-c5f4-4f71-9230-d014b2e9fcf5http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/b99184b3-c5f4-4f71-9230-d014b2e9fcf5SGBoisehttp://social.msdn.microsoft.com/Profile/en-US/?user=SGBoiseBackground File Copy Queue<p>Hi everyone,<br/><br/>I have vb.net app that allows people to click and drag files into it and it copies the files to a centralized collection.  I want to create a background worker or thread that allows me to be able to do the copying in the background.<br/><br/>I search the web and these forums but couldn't find anything to what I'm trying to do. I think my biggest challenge is being able to send new files to the thread once it started.<br/><br/>The way I think it should work is having one thread and inside the thread will be an arraylist. As long as the arraylist has items in it the thread is going to copy the files one by one.<br/><br/>When user wants a another file copied my program will use Thread.SetData() to pass the file name to be added to the arraylist.<br/><br/>Is this best way to do this? If there are any other ways, I'm willing to try them.<br/><br/>Thanks in advance.</p>Wed, 25 Nov 2009 16:41:22 Z2009-11-25T19:29:31Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/3d10347e-56f8-43fa-b2fb-03ebd6af9bddhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/3d10347e-56f8-43fa-b2fb-03ebd6af9bddJeff - www.SRSoft.ushttp://social.msdn.microsoft.com/Profile/en-US/?user=Jeff%20-%20www.SRSoft.usVB versus C#The &quot;Why you should not learn VB&quot; thread has got me thinking a little more about the differences between vb and c#.<br/><br/>i have played with c# very little.  just a few glances really.<br/><br/>today i created a new c# application just to take a closer look and i thought it would be helpful for others to have a discussion on the differences to understand why all the fuss.  hopefully this will be treated with good information and not a battle between which is &quot;better&quot;.  i am curious about the differences and why they are so.<br/><br/>for instance in the test c# app i notice the form class is declared as    public partial class<br/>i see from playing with a second form, other form objects are not accessible even when declared public member level.<br/><br/>in a vb applicaton, a form class is a public shared class and so it's properties and controls, as well as public member level objects, are accessible to other classes.<br/><br/>so what i am curious about is how would this be handled usually in c#?<hr class="sig"><a href="http://www.srsoft.us" style="color:#CC0099">FREE DEVELOPER TOOLS, CODE &amp; PROJECTS at </a> <a href="http://www.srsoft.us/"> www.srsoft.us </a> <a href="http://www.srsoft.us/" style="color:#FF0000">Database Code Generator and Tutorial</a>Sat, 21 Nov 2009 21:18:52 Z2009-11-25T17:54:48Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/0f77407b-7863-4606-9f2a-f7bc21e84699http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/0f77407b-7863-4606-9f2a-f7bc21e84699visualbasic5fanhttp://social.msdn.microsoft.com/Profile/en-US/?user=visualbasic5fanVisual Basic 5 user has very simple problemI spoke Radio Shack Basic in the 1980s and a little Visual Basic 5 eight years ago.  I am trying to type a simple program in VB 2008 Express and I have no idea how to get rid of the suggestion-box-that-automatically-finishes-my-words that corrects what I write.  I want to write &quot;for a = 1 to c&quot; but it insists on changing &quot;a&quot; to &quot;addresssomething&quot; and &quot;c&quot; to &quot;char&quot; without letting me leave them as single letters.  I want to get rid of the suggestion-box altogether.  How do I?<br/>Thank you very much for your time.  (In case it matters, I am trying to write code inside a TextBox.)Sat, 21 Nov 2009 06:18:57 Z2009-11-27T03:35:23Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/8e85f17f-edd6-4efe-894a-6da5117ad015http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/8e85f17f-edd6-4efe-894a-6da5117ad015drummerboy0511http://social.msdn.microsoft.com/Profile/en-US/?user=drummerboy0511How do I make a read-only file accessible to my application?I know I've seen something on this somewhere before, but I'm not sure where. How do I make a read-only file so that it's not read-only, so that my application can use it? <br/> <br/> Thanks in advance for the help!Wed, 25 Nov 2009 16:03:02 Z2009-11-25T16:20:40Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/0ab8e6a7-637f-445c-bfd4-805c7c9813d2http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/0ab8e6a7-637f-445c-bfd4-805c7c9813d2tjkushttp://social.msdn.microsoft.com/Profile/en-US/?user=tjkusHow do you resolve this error messageI'm new to this whole programming thing, and working on an existing code. When i run, it gives me several errors, and this is one of them. <br/><br/>Any ideals on ow to solve it will be appreciated.<br/><br/><br/><br/>System.Web.HttpException was unhandled by user code<br/><br/>  ErrorCode=-2147467259<br/><br/>  Message=&quot;Error executing child request for ~/error.aspx.&quot;<br/><br/>  Source=&quot;System.Web&quot;<br/><br/>  StackTrace:<br/>       at System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm)<br/>       at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)<br/>       at System.Web.HttpServerUtility.Transfer(String path)<br/>       at ASP.global_asax.ReportError() in Y:\Quality\Quality\global.asax:line 36<br/>       at ASP.global_asax.Application_Error(Object sender, EventArgs e) in Y:\Quality\Quality\global.asax:line 15<br/>       at System.EventHandler.Invoke(Object sender, EventArgs e)<br/>       at System.Web.HttpApplication.RaiseOnError()<br/><br/>  InnerException: System.Configuration.ConfigurationErrorsException<br/>       BareMessage=&quot;Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, <br/>Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.&quot;<br/>       Filename=&quot;Y:\Quality\Quality\web.config&quot;<br/>       Line=35<br/>       Message=&quot;Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (Y:\Quality\Quality\web.config line 35)&quot;<br/>       Source=&quot;System.Web&quot;<br/>       StackTrace:<br/>            at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement,Wed, 25 Nov 2009 12:32:24 Z2009-11-25T13:38:05Zhttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/b2d5f8e1-92b7-4c9b-bf7c-89cdb9ee88achttp://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/b2d5f8e1-92b7-4c9b-bf7c-89cdb9ee88acpaw539http://social.msdn.microsoft.com/Profile/en-US/?user=paw539Word Object LibraryThe following code works with the Microsoft Word 10.0 Object Library:<br/><br/><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>Dim</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> objWord </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">As</span></span><span style="font-size:x-small"> </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">New</span></span><span style="font-size:x-small"> Word.Application<br/><br/><br/>But, does not work with the Microsoft Word 12.0 Object Library.  How do you active a Word aopplication with the Word 12.0 library??</span></p>Fri, 20 Nov 2009 15:01:57 Z2009-11-27T03:24:19Z