VS 2017 Read XML Attribute
Hi guys I'm a beginner, i have a problem to read a attribute from a XML file, How can i read sub attribute from repeated attribute? HTML Code: <weatherdata> <location>...
View ArticleVS 2019 Merge Two DataTables in a DataSet
I have a two Datasets called DSMonitors and DSPings. Inside DSMonitors I have a data table called DTMonitors. Inside DSPings I have a data table called PingTable. DTMonitors - Monitor_ID - Device_Name...
View ArticleSometimes you come across a news article with so many levels of ?!
Safe for work... just It should go without saying to keep any discussion within the bounds of taste.
View ArticleRS485 two wire communication
I am trying to communicate with a device over RS485. I am having issues with reading however. After sending the write command I only get F3 as a response. What I am thinking is due to the way the...
View ArticleVS 2019 How to create a symlink using Visual Basic code?
Pretty simple question here... I know that you can create a symlink using the Windows CLI and the MKLINK command. How can I make a symlink using Visual Basic code?
View ArticleUsing a downloaded zip-file, that's read only....
Hi ! I've downloaded code för an analog clock, and tried put the code in to my visual Basic and run it. Found the project very handsome and useful ! The actual clock is: Analog Clock.zip, sent by...
View ArticleHow to call IEnumVARIANT::Next() with DispCallFunc() - Without external TLBs
Hi All, I've been trying for the past few hours to call IEnumVARIANT::Next() on a collection Enum. I would like this as I am building a wrapper for EnumVARIANTs giving them more possibilities. Code:...
View ArticleBasic asynchronous operations
Developers, novice and hobbyist can avoid performance bottlenecks and enhance the overall responsiveness of your application by using asynchronous programming. Asynchrony is essential for activities...
View ArticleCode to Display Data Matrix Barcode Reading With Separators
Hi, hope you are all well :) I have a form which has 4 textboxes, txt_reading, txt_part, txt_ponum and po_batch. Txt_reading is the on_focus textbox and when I scan a data matrix barcode it displays a...
View ArticleMy macro keep on running even though it should stop
Hi I am a new VBA user and working on a project. I made two two macros i.e. models. In the beginning I wanted to ask the user to decide which model to run. So when user enters 1 the model 1 runs fine...
View ArticleQuestion 6.16 in book
Hello, I am currently a student in school and learning how to use Visual Basic. Currently for homework, we are assigned to do assignment 6.16 in the Visual Basic 2012 How To Program 6th Edition...
View ArticleVS 2019 Application does not run on windows server 2019
Hi, I'm facing a weird problem. I have made a simple tool using VB.NET (vs 2019). I'm using GeckoFX 60 and Seleneium 4.0 alpha. It's fine on my PC. But It does not execute/appear in my client server...
View Article[RESOLVED] Connection with SqlExpress 2014
Hi How to make a connection to Sql Express 2014. DataSource name not found & no default driver specified. cnn.Open _ "Provider = MSDASQL.1;" & _ "Driver=SQL Server;" & _ "Data...
View ArticleWorking with Shockwave Player and an embedded resource DCR movie file
Dear VBFormers, I am looking to have a Adobe Director movie, which was compiled to the file extension, DCR. Then I have embedded the Shockwave Movie into my Resource Library File, which is with the...
View ArticlePrint a form
Hi all how can I setup Form page once printing now its printing in left corner of my page I'm using below code for print a form Private Sub Command4_Click() Command1.Visible = False Command2.Visible =...
View ArticleVS 2019 [RESOLVED] Refer to structure element using variable
Hi If I have a simple structure set up like this: Code: Structure myfile Public fullpath As String Public numrecords As Integer public category as string End Structure I can refer to the 'fullpath'...
View ArticleVS 2015 Launch exe as another user with elevated rights
I have users with non admin rights that need to run a program which requires admin privileges. I thought I'd make a VB.net program to launch that program as a local admin account. I have the below...
View ArticleSetting header text in different column for .xls file
Hi all, please forgive me in advance, I am new to vb and trying to modify someone else's code. I have a script that creates a .xls file, but based on how the current script is written all of my headers...
View ArticleSaving Struct to Binary file
Hello, I have a small problem. In a test program, I wrote code to open and save a serialized structure. I created an array of that struct and saved it using binary formater. Everything was great, until...
View ArticleForm Loading
Hey guys. I've got an incredibly complicated form. It's way too big with way too many controls so I freely admit that right off the bat. The program has a sign-in screen, then a splash screen and...
View Article