-
Replied To a Post in show connected USB Devices
I imagine you'll want to know if the mouse is attached or removed. Here is another version where this task is done (in option 3). Imports System.Management Module Module1 Dim … -
Replied To a Post in show connected USB Devices
As you may know, each device has a unique Vendor Identifier (VID) and a Product Identifier (PID). If, for example, I want to know if the mouse is connected, what … -
Replied To a Post in show connected USB Devices
You should know by now or take a programming course: call the function passing the name of the device as argument. -
Replied To a Post in show connected USB Devices
In Visual Studio go to the Solution Explorer and right click over "References". It will look something like this:  A dialog window will be opened. Select "Framework" on the … -
Replied To a Post in show connected USB Devices
If you want to list only USB devices, you may do: Function DetectDevice(DeviceName As String) As Boolean Try ' See if the desired device shows up in the device manager.' … -
Replied To a Post in show connected USB Devices
[Click Here](http://www.vbforums.com/showthread.php?402956-RESOLVED-Enumerate-USB-Devices) You should add a reference to System.Management dll Function DetectDevice(DeviceName As String) As Boolean Try ' See if the desired device shows up in the device manager.' Dim … -
Began Watching show connected USB Devices
Hey community, how can i show the connected USB-Device like keyboard, mouse, webcam and so on? Or how can i search in the connected USB-Devices, if I know the name … -
Replied To a Post in Datagridview Control class
You must add a condition because the columns are being added twice: in design-time and in run time. (DesignMode property from Windows Forms components not 100% reliable, so use this … -
Began Watching Datagridview Control class
hi I have datagridview which i want to add on several forms. Number of columons and all ather functionality remains the same. to avoid creating size, columns, column names each … -
Replied To a Post in Access Denied to Folder (Windows 10)
The EXE, running by itself as you say, is working with no problem for me. Private Sub cmdCreate_File_Click(sender As Object, e As EventArgs) Handles cmdCreate_File.Click Dim InFolder As String = … -
Began Watching Access Denied to Folder (Windows 10)
Hi, I have checked all the prior forum questions on this topic, but none of the options seem to be working for me. I am creating an output file that … -
Replied To a Post in search in an Excel or CSV file
Just split the fields inside each row: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Try For Each row As String In File.ReadAllLines("Table.csv") ' split the fields from … -
Began Watching search in an Excel or CSV file
Hello, i got a table in Excel (or exported to CSV). There are 3 columns (1. column = specification / 2. columns = value1 / 3. column = value2). On … -
Replied To a Post in vb.net - IP-Input-Box like windows
I've made several improvents to the code, so here is another version. -
Replied To a Post in vb.net - IP-Input-Box like windows
You may want to add a user control, with 4 or 6 textboxes depending on IPv4 or IPv6. For example: Public Class IP_Textbox Const nBytes As Int32 = 4 ' … -
Began Watching vb.net - IP-Input-Box like windows
Hello, I want to have a manual IP-input-box like windows.  I tried by MaskedTextBox but the problem is, the 3 pionts are sliding when i insert some numbers and … -
Began Watching Getting error when showing data in list view, please help me.....
Getting error when showing data in list view, please help me..... Error :* Cannot add or insert the item '10-07-2018' in more than one place. You must first remove it … -
Replied To a Post in Getting error when showing data in list view, please help me.....
Coding like the following you get the attached image: Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load ListView1.View = View.Details For i As Int32 = … -
Replied To a Post in Need Help Stopping Loop
Forget all what I said. You just have to add two lines to Module1 in Function copy_template(Newsht As String): Sheets(Newsht).Cells(44, 20) = 0 Sheets(Newsht).Cells(45, 20) = 0 So the function … -
Replied To a Post in Need Help Stopping Loop
As far as I've reached (Sub Add_SP_Rec(WBSNum As String) changing the lines order (first format, then formula): Worksheets("SUMMARY").Cells(lastRow, 1).Select Selection.NumberFormat = "00.000" Selection.Formula = WBSITEMNUMBER WBSITEMNUMBER = "=IF('" & WBSNum … -
Replied To a Post in ASP.NET: Passing data from GridView to modal popup
Why not launch a modal pop-up from client side or server side using Ajax Toolkit? See [Here](https://docs.microsoft.com/en-us/aspnet/web-forms/overview/ajax-control-toolkit/modalpopup/launching-a-modal-popup-window-from-server-code-cs) -
Began Watching ASP.NET: Passing data from GridView to modal popup
Greetings, I'm kinda new to ASP.NET so I'm unsure as to how to proceed with accomplishing this task. I have a webpage that contains a GridView and controls associated to … -
Replied To a Post in Need Help Stopping Loop
I can't reply to you as it is meant because the Excel Sheet you send is missing, for example, "WBS_Items" or "tableinfo" and so on. In this manner is impossible … -
Replied To a Post in Need Help Stopping Loop
I haven't tried your code, but instead of using `wsSource.Cells(Rows.Count, 1).End(xlUp).Row`, you could use `.UsedRange`. UsedRange knows really where the data ends. -
Began Watching Need Help Stopping Loop
I have a worksheet of about 388 items that each item is exported into a template worksheet that is created to itemize each item. It creates the worksheets but I … -
Replied To a Post in VB.net and sql Like query
Looks like there is a comparison between a numeric value (PROPID) and a string ('%" & Textbox2.Text & "%' ). The solution is to convert both to same type by … -
Began Watching VB.net and sql Like query
Hello, I am have been struggling with this and need some help. I am reading and excel sheet and getting the data and trying to search sql server to get … -
Replied To a Post in How to retrieve the corresponding values from XML file in vb.net?
Assuming you correct the XML file and you know the name of the fields, you could do something like the following: Imports System.IO Public Class XMLreader Private Sub Populate_Click(sender As … -
Began Watching How to retrieve the corresponding values from XML file in vb.net?
I need to Retrieve the values from a XML file i have seen many example but none of them is like the XML I have. My XML look like this … -
Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)
What do you mean by a "slow" machine? Anyway verify the path of the images. If the images are not found there will not be no message unless you add … -
Replied To a Post in How can I get my system short date format in a label in vb. Net
Or you can change current's thread date pattern: Dim newCulture As System.Globalization.CultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture.Clone() newCulture.DateTimeFormat.ShortDatePattern = "dd-MM-yyyy" newCulture.DateTimeFormat.DateSeparator = "-" System.Threading.Thread.CurrentThread.CurrentCulture = newCulture Dim sDate As String = Now.ToString -
Replied To a Post in How can I get my system short date format in a label in vb. Net
Take a look [here](https://docs.microsoft.com/es-es/dotnet/standard/base-types/custom-date-and-time-format-strings) Dim dt As DateTime = Now Dim sDate As String = dt.ToString("yyyy-MM-dd") -
Began Watching How can I get my system short date format in a label in vb. Net
hello sir how can I get my system short date format in a label in vb. net. I try this code : Label1.Text = System.Globalization.CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern() but show wrong data. all … -
Replied To a Post in Illegal start of expression in my toString
It has to do with the algorithm. The usual method for parsing mathematical expressions is the shunting yard algorithm. You may consider reading it's description [here](https://en.wikipedia.org/wiki/Shunting-yard_algorithm). -
Replied To a Post in Illegal start of expression in my toString
The code is throwing no error. Seems as if you haven't compiled the new code. You should execute "javac" from the command prompt, have you? -
Replied To a Post in Illegal start of expression in my toString
You are right @JamesCherill, that's the same feeling I'm getting: copy and paste. -
Replied To a Post in Illegal start of expression in my toString
If you set the code as I send it to you, you won't have that problem with none of those examples. -
Replied To a Post in Illegal start of expression in my toString
You just have to proceed similarly as for the "+" and "-" operators. Now, the code is: import java.util.ArrayList; import java.util.Scanner; import static java.lang.Integer.*; import static java.lang.System.*; public class ExpressionSolver … -
Replied To a Post in Illegal start of expression in my toString
I've only take a look to addition and substraction and made some modifications. I hope you understand it and leave up to you the other operators. import java.util.ArrayList; import java.util.Scanner; … -
Began Watching Illegal start of expression in my toString
Hello everyone, I am having trouble with my program its solving expressions and when I compile it I get a "Illegal start of expresson" line in my output. I am … -
Replied To a Post in Regex to exclude a sub-directory
Of course if you're not coding in VBasic like me, most probably you'll have to escape the slash /. So the pattern becomes `collections\/(?!\/|shirts|tea|[\w]+\/products)` -
Replied To a Post in Regex to exclude a sub-directory
Assuming products (if present) is after the second / character like in collections/shirts/products/tee-shirt, `collections(/(?!/|shirts|tea|[\w]+/products))` seems to work. -
Replied To a Post in Regex to exclude a sub-directory
Try `collections\/col(\d{2,}|[^23])(?!\/products)`, because (\d{2,}|[^23]) will allow 2 or more numbers (as in col22, col21) or 1 number other than 2 or 3 (col1, col4, col5 but not col2 nor col3). -
Began Watching Regex to exclude a sub-directory
Hello, I'm hoping for some help with a regex that has me stumped. My skill with regex is rather rudimentary. To start, here are a couple of example URLs, and … -
Replied To a Post in Populate textboxes from multiple worksheets based on combobox selection
Of course, I meant the following (equal to 1): `dic(mid(ws.Name,3) & arr(i,1)) = 1 ' prepend the year ` or `dic(arr(i,1) & mid(ws.Name,3)) = 1 ' postfix the year ` -
Replied To a Post in Populate textboxes from multiple worksheets based on combobox selection
Assuming 'lr' is the last populated row it could be `lr = .UsedRange.rows.count` instead of .cells.find(... In any case you could change line #21 to: `dic(mid(ws.Name,3) & arr(i,1)) ' prepend … -
Began Watching Populate textboxes from multiple worksheets based on combobox selection
Ok I have a workbook that have 5 worksheets for a 5 year span. On each of the worksheets are there is a list of countries that make up the … -
Replied To a Post in ATM machine
I'm not sure if each time can be a withdraw of 1 unit, but in that case, calling anotherTransct() from menu(), then menu() from anotherTransact() and repeating this same process … -
Began Watching ATM machine
Hey guys! help me out, i'm really out of ideas, how can i save the datas i inputed to have a rotation of value , like the computation in the … -
Replied To a Post in Calculating Entropy Question (C++)
Remove the extra `Entropy` from line #48 to: `cout << "The Entropy is: \t" << e << " Kj/(Kg.K)" << endl;`
The End.