419 Posted Topics
Re: > ps. Furthermore, how do I get around the problem of those who do not have access installed on their PC. Obviously they couldnt use the software then. You don't need Access just the engine installed so you can use the ACE provider or if you prefer the engine directly … | |
Re: It may be a problem with the new version of VLC 2.x.x. (XP32, VS2008) I had played with this a bit quite a while ago and had it working, but all I got with the newer version installed was a black box. I uninstalled VLC, and deleted the program directory … | |
Re: To be honest, I don't think I understand what you asking. Here is my interpretation. 1. You have some program that creates a VBScript file. 2. This script is to run only if a certain Drive Volume is available. 3. If it is not available, you want to prompt the … | |
Re: Other than the obvious, drop the "Shared" keyword, you can use any of the reference syntaxes to the form shown below. Jim is correct that you will bump into cross thread issues with the FileSystemWatcher events, so I include an example of that technique as well. Public Class Form1 'create … | |
Re: No guarranties here, but I think you are in the realm where you would need to write this as windows service. You could use WMI to detect the addition of a USB Drive. You would then need to have the service take excluse control of the drive. On first glance, … | |
Re: What I can not understand is how that code even runs such that he can see an empty textbox. Only the command variable (cmd) has an instance assigned to it. Suggest changing: Dim myDA As SqlCeDataAdapter Dim myDataSet As DataSet to: Dim myDA As New SqlCeDataAdapter Dim myDataSet As New … | |
Re: `row("Update") = + Update.Value` assigns the value of Update to the row's "update" cell. try this instead: `r("update") = CInt(r("update")) + NumericUpDown1.Value` | |
Re: I suggest that you study this: [http://msdn.microsoft.com/en-us/library/650ax5cx.aspx](http://msdn.microsoft.com/en-us/library/650ax5cx.aspx) | |
Re: Give this a try: Remember that the column nubering is zero index based (Column4 = index 3) Dim sum As Int32 = (From dgvrow In DataGridView1.Rows _ Select CInt(CType(dgvrow, DataGridViewRow).Cells(3).Value)) _ .Sum() | |
Re: > how will i change that connection/datasource as what the user wants? > I thought you did not want them to be able to change the DataSource. If you need to allow them to select a server, maybe this will work for you? Dim csb As New SqlClient.SqlConnectionStringBuilder csb.IntegratedSecurity = … | |
Re: Good job John! I never thought to to search for an api function to create a user DSN (Doh!) and have done it by directly modifying the the registry. For those interested in the registry route, I have an example for creating/deleting a Dbase DSN at this link: [Click Here](http://www.daniweb.com/software-development/vbnet/threads/428520/foxpro-database) | |
Re: As you have learned, that does not work. WinForms are event driven. If you want to handle a click event you have to define the event handler either by attaching the "Handle control.Click" command to the method definition or by using an addhandler statement for each control. Give this a … | |
Re: Just a guess, but I think Zick may be a user of google translate or something similar. Hence the odd wording. Based on this: > Dim query As String > For Each item As ListViewItem In ListView1.Items > query = "Select * from [Calls and Visits$] where AM like '" … | |
Re: `Return = WmiResults.GetPropertyValue("Name").ToString` ??? That compiled? Option Strict On Option Explicit On Option Infer Off | |
Re: Hi Viper, I applaud your initiative in deriving your own business week function. However, I want to warn you that you have forgotten to account for holidays in your computations. This may not be necessary for your application, but if this is for a business application, you should consider the … | |
Re: It's cold and raining and I don't feel like doing the dishes, and this looked like an interesting diversion, so here you go with a dgv Column to countdown from a datetime column. :) Boy how I wish this forum supported putting code in a scrollbox! Public Class Form1 Private … | |
Re: Take a look at this link. [http://www.daniweb.com/software-development/vbnet/code/442963/make-the-webbrowser-control-give-you-the-installed-ie-version-rendering](http://www.daniweb.com/software-development/vbnet/code/442963/make-the-webbrowser-control-give-you-the-installed-ie-version-rendering) | |
Re: Ok, I'll take swag at a possible explaination. Are you trying to debug and modify while having VS configured for a release build? | |
Re: Perhaps I'm not understanding your design properly, but I thimk you are making way to difficult. You have 7 types of pieces that are represented by an image. You make a 6 x 12 grid out comprised of multiple copies of the original 7 pieces. Why not make a Piece … | |
Re: For the memory issue try something like this before assigning the PB.Image `if (PB.Image != null) PB.Image.Dispose();` | |
Re: First off, **COOL** project. I think what you want is to define this as a user control so that you can place multiple instances on a form. I apolgize for totally rewriting your code, but it looked like to much fun to play with for me not to turn it … | |
Re: Hi Lulu, You are sure beating that example code to death! :-) You should really post more of the code when you are asking for help. People are not going to know what DTRow is for example. Oh well, so much fo my pedantic streak. Here is one way you … | |
Re: Perhaps a quick refresher read will help you gel your thought process. It has pretty pictures (I like pictures). :) [http://www.c-sharpcorner.com/UploadFile/eecabral/OOPSand.NET211102005075520AM/OOPSand.NET2.aspx](http://www.c-sharpcorner.com/UploadFile/eecabral/OOPSand.NET211102005075520AM/OOPSand.NET2.aspx) | |
Re: Dragon, The .Net MessageBox is just a wrapper for the Win API MessageBox. You could move it using the API SetWindowPosition function, but retrieving its handle gets a bit messy with enumerating the threadwindows and seeking the dialog class name "#32770". That said, you went the correct route. | |
Re: Aah, the old who has focus when I get clicked dilemma. If there is no reason that the button needs to be focused, then you can create a nonselectable button or any other control for that matter. The only drawback of this technique is that the button can not be … | |
Re: Try setting the "TextMaskFormat" before retrieving the text. ` MaskedTextBox1.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals` | |
Re: Possible problems: If you are developing on an Windows XP machine you have to enable UPNP on the computer. see: [http://support.microsoft.com/kb/941206](http://support.microsoft.com/kb/941206) Your firewall may also be blocking access to the router for your program. I think you need ports TCP 2869 and UDP 1900 open. A good test program to … | |
Re: > Did some playing around and found putting the search into a separate function increased the speed by a factor of approximately 4(i.e. on my machine original code was 1200-1300, the new code > 300-400) You also switched to using a char for the seek parameter versus char which is … | |
Hi, I’m sure I’m not the only one irked by those who resurrect long dormant threads. Would it be possible to check new post’s creation-date against the creation-date of the last post by the thread’s creator? If the elapsed time is greater than something reasonable (say 4 weeks) , prompt … | |
Re: Looks like VB6 to me or possibly Shell Scripting. You are in the VB.Net forum. Your blank lines are likely due to to VBNewline characters. I can't test this, but give it a try. Instead of using "Replace" use the "Split" function to create an array of strings; split on … | |
Re: Do you need to print from the application? If so, printing with a WPF RichTextBox, it is pretty easy to get WYSIWYG results. It even handles embedded images. :) Even if it is a WinForm application, you can always host a WPF RichTextBox in the Winform app. I would recommend … | |
Re: As long as each of you is only editing your our own assigned files this may work; I just gave it a simple test. Create a MS SkyDrive account and install MS's SkyDrive app on each of your systems (requires Vista or higher). Each of you would login to the … | |
Re: I don't use MySQL but based on [this](http://www.connectionstrings.com/mysql) , the connection string looks wrong. It looks more like a SQL Server connection string. | |
Re: > i took a form and dragged and dropped that database as details view. first i arranged labels in row format and their respective text boxes under them. and i made copies of text boxes of first row text by holding Ctrl key > The details view is just that … | |
Re: Your code should execute if your change myCommand = New OleDbCommand("SELECT * FROM tbleMember WHERE FormNo='" & cmbName.SelectedValue.toString & "'", MyConn) to myCommand = New OleDbCommand("SELECT * FROM tbleMember WHERE FormNo=" & cmbName.SelectedValue.toString , MyConn) Unless you intend to extract more values than are shown in the SelectedIndexChanged handler, I … | |
Re: I do not kown if it is possible to force a silent browser download, but .Net provides many ways to download files if you know the source address. Two simple ones to use: [My.Computer.Network.DownloadFile Method](http://msdn.microsoft.com/en-us/library/ack30t8y(v=VS.90)) [WebClient.DownloadFile Method](http://msdn.microsoft.com/en-US/library/system.net.webclient.downloadfile(v=vs.90).aspx) | |
Re: Try this pattern, it's one of many that will work. With DataGridView1.Rows(DataGridView1.Rows.Add()) .Cells(0).Value = "hi" End With "DataGridView1.Rows.Add()" returns the index of the row that is just added. Doing it this way you add an empty row that is templated to accept the values that the cells expect. Edit: This … | |
Re: Jim's method is probably the simplest and qickest in performance terms, but I would recommend that the linked textbox be passed to the second form versus hard coding the reference. The TB could be passed in the form's contructor, be a property on the form or passed in the Show … | |
Re: Assuming that you are using VB's "application framework" you have a couple of options. To ensure that the framework is enabled, go to the "Solution Explorer" and either double-left click on "My Project" or right-click on it and select open.  This will open the project's property setting page. … | |
Re: I don't use MySql, but based this article: [Handling BLOB Data With Connector/Net](http://dev.mysql.com/doc/refman/5.0/en/connector-net-programming-blob.html) it seems that storing and retrieving binary data follows the same methods as used for for DBs that I'm familar with. I don't know if the use of phpmyadmin would throw in any obstacles for you, but … | |
Re: This does not answer the question you posted, but it does what you said you wanted to accomplish; kill the java process currently running under the browser control. Imports System.Runtime.InteropServices Public Class Form1 Private Sub btnKillJava_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnKillJava.Click KillJavaForBrowser(WebBrowser1) End Sub Private Sub … | |
Re: Is there a vb.net programming qustion in here that I'm missing? [Click Here](http://lmddgtfy.net/?q=%22value%20analysis%22%20as%20it%20applies%20to%20%22value%20engineering%22) | |
Re: To retrieve the value there must be a pattern that can be implemented, let us assume that the pattern is as follows. 1. There is only one table row with where the first child element has it's innner text equal to "In Process". 2. The "In Process" element has at … | |
Re: I'm sure your professors would find this to be an interesting topic: "How I am earning a degree in computer programming without ever having to learn the material via the use of internet help forums" | |
Re: > How can I draw the selected text to the combobox? Take a look at this project: [http://www.codeproject.com/Articles/10670/Image-ComboBox-Control](http://www.codeproject.com/Articles/10670/Image-ComboBox-Control) There is a lot of good stuff in it on how to manipulate the edit box part of the combobox. | |
Re: I suspect your problem is that the splitcontainer only captures the mouse when you move over the splitterbar. Try wiring up the mouse move event for each panel in the container like this: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AddHandler SplitContainer1.Panel1.MouseMove, AddressOf SplitContainer1_MouseMove AddHandler … | |
Re: .Net does not support true transparency. Transparency is mimicked by copying the foreground of the parent control to the background of the "transparent" control. That stated, the best that you can do is to try and mitigate the problems. You are on the right track by invalidating the panel to … | |
Re: Are you sure that tableElem has a value and is not nothing? The DocumentCompleted event can fire many times when loading an url, I've found this technique very useful to make sure that the document is the one I want. Try this in the DecomentCompleted handler. If webBrowserX.Url = e.Url … | |
Re: > program that contains a Rich Text Box & a scroll bar where scroll bar represents the size of font size of selected text in Rich Text Box as soon as user scrolls the scroll bar.help???? Do you have two separate controls ( a RichTextBox and a Vertical Scrollbar)? If … | |
Re: Textboxes use only the LF character. This is one way to handle it. Dim lines() As String = RichTextBox1.Lines 'initialize stringbuilder to textlength + num lines (this adds space for VbCr) Dim sb As New System.Text.StringBuilder(RichTextBox1.TextLength + lines.Length + 20) For Each l As String In lines sb.AppendLine(l) 'add line … |
The End.