vb.net

  • Using Events to update UI from a backgroundworker with another class 2017-11-18

    I'm trying to use events to update a textbox from a background worker from a different class. It is the same problem as mentioned in this SO post, except I'm using VB.NET. I'm trying to implement the 2nd suggested solution by @sa_ddam213. I'm getting

    Tags: vb.net, multithreading, class, backgroundworker
  • Distinguish if a button's click event is fired from user action or from code 2017-11-07

    A button's click event is fired when a user click this control. But this event can be fired by code , for example : myButton_Click(myButton, EventArgs.Empty) How can I distinguish these 2 cases ? Thank you ! --------------Solutions------------- Creat

    Tags: winforms, vb.net
  • Checking Cell values for US states 2017-10-26

    I am trying to calculate freight costs based on delivery state as starting location. Multiple states will use the same formula. The part of my code that I am concerned with is below Dim STATE As String Dim PLANT As String Dim MILES As Integer STATE =

    Tags: vb.net
  • XHTML and string manipulation and pattern replacement 2017-10-25

    I need to process html and I need it to be valid from XHTML perspective. For instance self-closing tags, such as <br> and <hr> in XHTML should be <br /> and <hr /> respectively. So to take care of this issue, I converted my HTML to

    Tags: string, vb.net, xhtml
  • VB.net: Split a String, but only ONCE 2017-10-23

    I try to split a string in only TWO peaces, whether this occurs several times. This simply doesn´t work, because VB.net doesn´t allow a limit-option here: string.split("=", 1) Any ideas? --------------Solutions------------- You can use the Strin

    Tags: string, vb.net, split, limit
  • VB.net Count Rows in Access Database 2017-10-21

    I'm trying to count the enteries of my database where the users are 'employees'. I have an Access DB with cName, cAge, cStatus cStatus can either be 'Employee' or 'Customer'. I have no Idea how to get the Number of my 'Employees'. Can anyone help? --

    Tags: vb.net
  • VB.Net - UserControl don't update Controls inside 2017-09-19

    I'm working on a VB.Net application. I need to create an UserControl I've named signalIO, with a TextBox and a Label, with some properties to change contents of TextBox and Label, change BackColor, etc. When I add signalIO into the Form of my applica

    Tags: properties, vb.net, user controls, refresh
  • How to convert MS WORD underlined text to Excel in vb.net? 2017-09-14

    I have a word file which has an underlined text. I want to convert the text to an Excel sheet. --------------Solutions------------- Finally I found the answer. Hope this will help. Private Sub underlined() With Me.OpenFileDialog1 If .ShowDialog = Sys

    Tags: vb.net, excel, ms word
  • File.Copy not working - no error 2017-09-07

    Please take a look at this code. For some reason that I can't figure out, the File.Delete() line isn't getting fired and I'm not getting an error. ' hard-coded for testing Dim path As String = "C:\Program Files (x86)\Test\Program\Program.exe" Di

    Tags: vb.net, file io
  • Is Task start and close impact on performace? 2017-08-20

    I have a code, I want use Task to improve performance. which one better way , using single thread for executing single method (starting and closing Task in this method only) or single Task for multiple methods, at a time I can use only one Task ? Is

    Tags: vb.net, multithreading, task
  • Finding Element in a Linked List of Type Structure (VB.NET) 2017-07-15

    I have declared a structure: Public Structure MyStructure Public name As String Public dataType As String Public address As String End Structure Then a Linked List: Private MyList As New LinkedList(Of MyStructure) What's the best way to find an eleme

    Tags: vb.net, data structures, linked list, find
  • Implement interface for COM DLL class? 2017-06-26

    I am creating a COM DLL within VB.net which is replacing an older VB6 dll. When creating COM exposed classes, what is the benefit (if any) to implementing an interface within VB.net? These classes could be used within other .net projects in the futur

    Tags: vb.net, dll, com
  • How to revoke token for an user 2017-05-20

    How I can do to revoke token for a user? This is my authenticate code and I want to reset (revoke) access for one user. This is because I use the GMail API and I want allow my user to change their email if necessary. Actually the tokens are save with

    Tags: vb.net, google api, google oauth, gmail api
  • Link button in another column of a GRID if the status column is Approved 2016-11-07

    I have a grid. It has a column Status, and it has values Approved, Rejected and Pending. I want to create another column which checks the status column. when the status is approved it should create a lnk button in that new column in that row which ha

    Tags: vb.net
  • VB.Net - trap when the user leaves a word 2016-10-25

    Background: I need to do a very simple linguistic analysis "on-the-fly" in Word. Previously I have done this in VBA, and there I blatantly copied someone else's Keybindings.Add code to add handlers for any and all keypresses that can separate wo

    Tags: vb.net, ms word, vsto
  • Office Add In Memory Limit 2016-09-16

    I am developing a set of Office add ins that reads and writes templates and other files from a locally stored serialized object. Until now it has been going well, however, since I have been stress testing it by writing big amounts of data to this loc

    Tags:
  • Use Dll of the same name for different projects 2016-08-30

    I am trying to develop a small utility program that will be deployed with other application that we already have. In order to make the utility work, I need to know the connectionString used by the application to access the database. Since I have old

    Tags:
  • Save existing DataGridView data to a new table in MS Access 2016-07-16

    I have an existing DataTable that binded to DataGridView1. Loading table jobentry with 3 fields [name], [quantity] and [cost] I have several comboboxes and textboxes for the dataentry to this gridview. Now, For each job, I want to save new table of i

    Tags: vb.net, datagridview, load, save, create table
  • DataGridView not showing all columns from table 2016-07-04

    I am currently creating a DataGridView within visual studio. The whole process is working fine and I have no errors. Apart from only one column is shown when executed when hitting 'Start' and is shown within a form. For example in my process, only th

    Tags: vb.net, datagridview
  • download a file only one time in vb.net and IIS 2016-06-18

    I have a link Is there a way to make this link usable ony once? In other words, if a user downloads this image and anyone tries to download it again (even the same user) the link will not work anymore. --------------Solutions------------- You could u

    Tags: security, vb.net, hyperlink, iis 7.5

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.269 (s). 7 q(s)