419 Posted Topics

Member Avatar for Ariah17

> 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 …

Member Avatar for TnTinMN
0
155
Member Avatar for swathi sajja

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 …

Member Avatar for TnTinMN
0
3K
Member Avatar for Siberian

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 …

Member Avatar for Siberian
0
156
Member Avatar for Ancient Dragon

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 …

Member Avatar for Reverend Jim
2
2K
Member Avatar for azareth

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, …

Member Avatar for azareth
0
308
Member Avatar for Thomas7399

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 …

Member Avatar for Begginnerdev
0
246
Member Avatar for Mikey12345

`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`

Member Avatar for TnTinMN
0
149
Member Avatar for Yorkiebar14

I suggest that you study this: [http://msdn.microsoft.com/en-us/library/650ax5cx.aspx](http://msdn.microsoft.com/en-us/library/650ax5cx.aspx)

Member Avatar for TnTinMN
0
200
Member Avatar for LD Company

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()

Member Avatar for LD Company
0
5K
Member Avatar for Lethugs

> 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 = …

Member Avatar for john.knapp
0
831
Member Avatar for androidz

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)

Member Avatar for john.knapp
0
707
Member Avatar for lucyin.withdiamonds.5

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 …

Member Avatar for TnTinMN
0
421
Member Avatar for ImZick

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 '" …

Member Avatar for ImZick
0
291
Member Avatar for pfaleite

`Return = WmiResults.GetPropertyValue("Name").ToString` ??? That compiled? Option Strict On Option Explicit On Option Infer Off

Member Avatar for pfaleite
0
269
Member Avatar for VIPER5646

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 …

Member Avatar for TnTinMN
0
147
Member Avatar for maaw

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 …

Member Avatar for TnTinMN
0
1K
Member Avatar for ayat abukhadra

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)

Member Avatar for ayat abukhadra
0
1K
Member Avatar for chocomilk

Ok, I'll take swag at a possible explaination. Are you trying to debug and modify while having VS configured for a release build?

Member Avatar for chocomilk
0
245
Member Avatar for Ben Ashton

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 …

Member Avatar for tinstaafl
0
129
Member Avatar for Webbsta

For the memory issue try something like this before assigning the PB.Image `if (PB.Image != null) PB.Image.Dispose();`

Member Avatar for Webbsta
0
227
Member Avatar for imperator

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 …

Member Avatar for imperator
0
209
Member Avatar for lulu79

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 …

Member Avatar for lulu79
0
752
Member Avatar for salford6129

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)

Member Avatar for salford6129
0
149
Member Avatar for Ancient Dragon

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.

Member Avatar for TnTinMN
0
2K
Member Avatar for ComputerFirstAde

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 …

Member Avatar for ComputerFirstAde
0
360
Member Avatar for zaeemabbas20

Try setting the "TextMaskFormat" before retrieving the text. ` MaskedTextBox1.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals`

Member Avatar for TnTinMN
0
715
Member Avatar for Nina 4 Ever

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 …

Member Avatar for TnTinMN
0
1K
Member Avatar for Darth Vader

> 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 …

Member Avatar for mwatson81
0
275
Member Avatar for TnTinMN

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 …

Member Avatar for TnTinMN
0
211
Member Avatar for bangla

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 …

Member Avatar for bangla
0
1K
Member Avatar for ponkhiraj

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 …

Member Avatar for tinstaafl
0
656
Member Avatar for WDrago

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 …

Member Avatar for TnTinMN
0
123
Member Avatar for shhh

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.

Member Avatar for samsylvestertty
0
246
Member Avatar for charuwaka

> 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 …

Member Avatar for TnTinMN
0
228
Member Avatar for beginner_emman

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 …

Member Avatar for Reverend Jim
0
656
Member Avatar for joshl_1995

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)

Member Avatar for joshl_1995
0
2K
Member Avatar for Zcast

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 …

Member Avatar for TnTinMN
0
310
Member Avatar for Mikey12345

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 …

Member Avatar for TnTinMN
0
241
Member Avatar for Arthur43

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. ![Open_Props](/attachments/large/3/Open_Props.jpg "Open_Props") This will open the project's property setting page. …

Member Avatar for Arthur43
0
309
Member Avatar for shhh

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 …

Member Avatar for TnTinMN
0
3K
Member Avatar for renzlo

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 …

Member Avatar for renzlo
0
303
Member Avatar for abham

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)

Member Avatar for TnTinMN
0
69
Member Avatar for yous

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 …

Member Avatar for TnTinMN
0
283
Member Avatar for Ako.si.tootsx

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"

Member Avatar for TnTinMN
-3
140
Member Avatar for kaizen202

> 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.

Member Avatar for kaizen202
0
205
Member Avatar for ponkhiraj

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 …

Member Avatar for ponkhiraj
0
596
Member Avatar for pitoloko

.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 …

Member Avatar for TnTinMN
0
274
Member Avatar for yous

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 …

Member Avatar for tinstaafl
0
1K
Member Avatar for ajitjhajjar

> 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 …

Member Avatar for Reverend Jim
0
472
Member Avatar for lakn.comnsense

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 …

Member Avatar for Reverend Jim
0
133

The End.