Vb.net Questions
Ad
Easiest way to add a Header and Footer to a Printing.PrintDocument (.Net 2.0)?
What's the easiest way to add a header and footer to a .net printdocument object, either pragmatically or at design-time? specifically i'm
color chooser (color palette) showing all colors
I would like to have an image like this one on my form.
How to split a string into array based on delimitter in VB.Net
How can i assign a split parts of a string into an array list directly ? string format: abc;pqr;xyz
How to split a string into a fixed length string array?
I have a long string like this dim longstring as string = "123abc456def789ghi" and i want to split it into a
How to make a Windows Forms .NET application display as tray icon?
What needs to be done to have your .net application show up in window's system tray as icon? and how do you handle mousebutton clicks on
How to assign a method's output to a textbox value without code behind
How do i assign a method's output to a textbox value without code behind? <%@ page language="vb" %> <!doctype html public
Disable the scroll bar in MDI Parent
It is possible to prevent scroll bars from appearing when you drag a mdichild outside the bounds of the mdiparent in vb.net? i would prefer the
Flowlayout panel not display the scroll bar after some resizes
I have a flowlayout panel and on a resize event, i resize all the controls inside the flowlayout panel so they fit the width of the
"Domain Users" group is empty when I use DirectoryServices "member" property
I'm using the following code to get the members of a group on my domain: dim de as new directoryentry("ldap://" & groupdn)
Linq to SQL: Asking if a date is empty
I've got a new instance of an object in a linq dbml, but don't know of the test if the a date field is empty. i have tried:
Ad
Mathematical analysis of a sound sample (as an array of numbers)
I need to find the frequency of a sample, stored (in vb) as an array of byte. sample is a sine wave, known frequency, so i can check), but the
Long to short pathnames without p/invoke
Does anyone know how to convert long to short pathnames in .net 3.5 without p/invoke? i can do it with p/invoke if i have to, but i'd rather
Prevent a PostBack from showing up in the History
I have a page where i submit some data, and return to the original form with a "save successful" message. however, the user would like the
Retrieving @@IDENTITY in AccessDB
I'm trying to retrieve the @@identity value from an access database after i add a row to it. however, instead of using hard coded connections, i'm
Opening a file in my application from File Explorer
I've created my own application in vb.net that saves its documents into a file with it's own custom extension (.eds). assuming that i've
What's the best way to find long-running code in a Windows Forms Application
I inherited a windows forms app written in vb.net. certain parts of the app run dreadfully slow. what's the easiest way to find which parts of
ASP DropDown causing ViewState to appear in Address bar
If you visit this page in internet explorer, and choose a
Building a query string based radiobutton values
I'd like to build a query string based on values taken from 5 groups of radio buttons. selecting any of the groups is optional so you
Moving A Listitem To The Top of A Listbox
When the user selects a name in the listbox and clicks a button i save the name in a var called "parent". what i want to do is
Selected ListItem in Datasource not Selected after DataBinding
I'm selecting a listitem as i add it to a listitemcollection. then i use that listitemcollection as a datasource for a dropdownlist but the
The type initializer for '[Modulename]' threw an exception
I have this new vb.net project (medicalcost) having this error "the type initializer for 'medicalcost.constants' threw an exception." when running
Ad
Does anyone have a good example of controlling multiple Excel instances from a .Net app?
We have an excel 2002/xp based application that interacts with sql 2000/5 to process fairly complex actuarial calculations. the application
open IE without toolbar or address bar from Windows VB Application
Shell ("explorer.exe www.google.com") is how i'm currently opening my products ad page after successful install. however
Extract Address Information from a Web Page
I need to take a web page and extract the address information from the page. some are easier than others. i'm looking for a firefox plugin,
How do I best generate a CSV (comma-delimited text file) for download with ASP.NET?
This is what i've got. it works. but, is there a simpler or better way? one an aspx page, i've got the download link...
XML node name clean up code
I am trying to create an xml file based on data fields from a table, and i want to have the nodes named based on the value in a field from the
Ambiguous class members in vb.net
I am trying to use a class from a c# assembly in vb.net. the class has ambiguous members because vb.net is case insensitive. the class is
Can you register an existing instance of a type in the Windsor Container?
In the windsor ioc container is it possible to register a type that i've already got an instance for, instead of having the container create
Exception Occur in VB.NET code
I was doing vb.net and use it to connect my sql database. right now i want to insert the data into my database, yet after i finish my code it
When should a class member be declared virtual (C#)/Overridable (VB.NET)?
Why wouldn't i choose abstract? what are the limitations to declaring a class member virtual? can only methods be declared virtual?
WIX Installer UI - How to create feature selection
I created a wix installer without really knowing a ton about wix. i do like that i know what i am installing, where i am installing it, and how
Deserialize JSON to a module
I need to parse a json that comes from a crypto exchange api. in this case, i need to parse my open orders. if there are no open orders, the json
Ad
value of type string cannot be converted to list(of string) VB.Net
I am serializing the data structure to xml but i am getting the error data structure public class product public id as
How to parse Json with 2 different keys?
I'm trying to parse
Read txt file in Resorces folder using vb.net
My goal is to store a txt file in the resources folder of a vb.net application i added the dir.txt file with project > project properties
CefSharp button click
I have a problem with clicking the button on the webpage with cefsharp browser. winforms + cefsharp browser i load the page
Using VB.NET to sent notification to android emulator get error 401
I'm writing vb.net code to send notification to android emulator. i can successfully send test message from the firebase control. however, it
How to run an exe in hidden mode in JS?
I'm converting my vb.net app in javascript and i don't know how to run an exe in hidden mode in js. here is my vb.net code:
VB.NET Class Shared Function or Instance function
Just wondering what is the best practice when using functions or properties. i have a class class person property firstname as
Default Form Button in FireFox
I am building a server control that will search our db and return results. the server control is contains an asp:panel. i have set the default
Pasing JSONArray to Google line chart
I want to create a dynamic google line chart, populated with data from a jsonarray. i have the following code: <div
Can you use MS sync framework with sql server always encrypted tables
I'm having following error: operandentypkollision: nvarchar(max) ist inkompatibel mit nvarchar(max) encrypted with
Using Only One ForEach Loop
Please see the following code:- private sub picturebox1_paint(sender as object, e as painteventargs) handles picturebox1.paint
Ad
Most efficient way to handle tasks
I have a windows form program that's running 24/7 and about every 15 minutes does some work and then has to make roughly 5000 http calls and i
VB.net Placing a .txt file into a Class List and assigning a property to certain indexes of the .txt file
I have a problem, i've created a class list for my sort program, so i can sort the items based on names. i was able to do it with assigned data
IndexOfAll function for string, with count parameter
I would like to write a indexofall function that must return the indices of all the occurrences of the given pattern found within
POPUP calendar in ASP.net
So what i'm trying to do is to make a popup calendar by textbox by using datepicker. the problem that i faced is the calendar doesn't popup at all
JavaScript indexOf() function fails in VB.Net
This code works well in most (all?) browsers: mydate = new date(); alert(mydate.tostring().indexof("("));
what is Javascript .map equivalent in vb?
I'm trying to make a simple script in vb that will transform a string "these are my characters" into this "these are my characters" it
How to capture a return value of a javascript function inside vb.net?
I have created a function called test that returns a boolean in a separate js file and i could call this function inside and aspx.vb file in
How do I set an error message on binding source filter if item etc doesnt exist
I have a filter so it filters the binding source by the customerid. but what if the customer id doesnt exist? when i enter id = 3 and doesnt exist
Cant update a record in a database
I'm making a homework/revision program for my coursework. i'm following this tutorial
Passing Values from Form to Form
I need to pass a data bound integer that is from a populated list in a combo box from one for to another. in form 2 i need the rest of the fields
Multiple choice quiz that retrieves data from a database - how to make values from database go into random radiobuttons?
I am creating a multiple choice quiz that gets its questions and answers from an access database. so far i have managed to connect the
Ad
How to display data depending on FieldName - Access
I have it so there is a combobox with its selections called the fieldnames of my database. i want it so when you select "salescustomers" and press
How to display the names of my SQL Server tables in a listbox using vb.net?
I want to show the names of the tables i have in my sql server database in a listbox using vb.net. i tried this but it's not working:
how to create a table on sql server with vb.net where the name is entered by the user
I want to create a table on sql server with vb.net but the server, database and table names should be entered by the user, to do so i tried to use
Retrieve data from a specific row entered by inputbox
I have a button and once clicked you are required to enter the customersid and once entered the data from that whole row should then load into the
Access Primary Key usage/role
My question is in relation to connecting a vb.net project to an access db. must i have a primary key in my table, or have is there a way to alter
Next button to navigate Access database rows
I have code for when you press next button it scrolls through the database rows but i want it to display an error once it hits the last row and
Detect what computer/server I'm using in VB
I am writing an application that uses a database, through sql server. i'm also using two computers to do it. i want to put in an if statement to
vb.net get all rows from database
I am working on a a project (in vb.net) which contains a database that holds information about products, a product object class, a product list
How can I only display the date from MySQL database?
I only want to display the date from my database to a textbox which is a "yyyy/mm/dd" format. the problem is when i'm retrieving the
Is there an easy way to do transparent forms in a VB .NET app?
I'm writing a simple app that's going to have a tiny form sitting in one corner of the screen, updating itself. i'd really love for that
website inserting pics
Hello i am getting this error message : object reference not set to an instance of an object. description: an unhandled
Ad
Cannot get the DropDownList control in UpdatePannel
I have an updatepannel in my aspx page which has some controls inside, among the controls i have a dropdownlist. i need to remove a listitem from
Converting python code to vb.net
I have a python code. i need vb.net equivalent of it. thanks in advance. payload2 = {"auth_token": "your_auth_token",
How to manage multiple tables with the same structure (redux)
I found this question, which is similar to a problem that i would like to solve:
vb.net select statement failing
I have this code to populate a datagridview (dgv) the goal is to only populate the dgv with data from the linktable where one of its fields
Best way to loop through a list within a sub-loop
First things first, i did a search before posting this question but the answers are so generic that i could not find anything similar to what i'm
Create calculated field in Visual Basic
I would like to create a calculated field within one of my tables within the database. i am using visual basic and my ide is visual
vb.net, Create object that refers to another object crashes project
I'm at a loss why this is not working and other questions and answers here has not lead me to an answer. i have a simple project with 2
How to force 'asp:Image' to load new 'imageUrl' ?
I have a page that represents a "box" for example. in this box i have multiple images. i am showing each image information on a row inside a data
Bound combobox items refers to different field items
I got a bounded combobox to a group name in vb.net. i can view in the drop down items of the combobox the set of group names. but when i do an
Initializing VB.NET DataGridView to have all Combo Boxes; Button to populate from Array
I am trying to initialize a datagridview to be 12 columns by 15 rows (with labels) and them all be combo boxes. later on in the code i plan to
Changeing the ID of a MVC Router from an integer to a string in vb.net
I'm looking at some pages, and i've noticed that by default for id in the routing for controller/action/id is an integer and not a string.
Ad
Click and recognise part of text in textbox vb.net
I am trying to make a program that utilises a textbox that has text options listed in it that can be clicked on. as a textbox example:
How do I save an image from CapturePreviewAsync stream?
I don't understand much about async, but i get no errors when running this, and still i don't get an image in c:\temp\test.jpg - what
What is the null value of Nullable(Of T)?
I have a nullable property, and i want to return a null value. how do i do that in vb.net ? currently i use this solution, but i think
Trigger JavaScript Confirm() from code behind
I am working on a asp.net application, currently i am trying to trigger a javascript confirm() popup from the code behind. i would
[VB.NET][ACCESS] How do I check for if a database exists?
I cant find anything online to help. i want to create a table if it doesnt already exist, or populate a listbox with what is stored in
Order Number Generation Based On Distributor Code
I need to generate order number as below scenarios based on distributor code. order number format will be as below order
the parameter is incorrect shortcut create VB.Net
I'm trying to create a shortcut and i have a problem with this piece of code dim result as dialogresult =
Getting all ContextMenuStrips on a UserControl
I have a usercontrol which has several contextmenustrips add via vs designer. they are not assigned at design time to any controls, because they
what is the exact sytax to open sqlite "Temporary" database using vb.net
Below will create in memory db dim cn as sqliteconnection = new sqliteconnection("data source=:memory:") below
Trying to Connect Search Feature to Textbox In Vb.net
I am struggling to link my search code to a text box in order to actually search and type in possible searches. how do i connect my text box to my
I am trying to write a program that will keep track of a players wins everything works except can anyone tell me why my if statement wont work?
I am trying to write a program that will keep track of a players wins. everything works except can anyone tell me why my if
Ad
How to create variables in vb.net with variable names being element name which are read from an xml file
I am working on a project where in, the database is stored into an xml file. i need to created a vb.net project where we read the contents of this
VB.Net equivalent Calculation Of Javascript
First of all i am sorry for asking this very noob type question, but i face this very first time of my life. i need to do a calculation in
Delete specific array string in VB.Net
How can i delete all that string instead of writing nothing? because nothing actually means a line with nothing, but the line exists. i want it to
VB.NET Compare two string for full or partial match
How do you programmatically compare two string for full or partial match. i may have a string called "itemname" like
massive file management in .net framework
I am trying on a project to manage massive number of data files. basically i have a map with square grids of a resolution of some 900 by
How to render the following asp.net mvc c# code snippet as vb.net code
Working through pro asp.net mvc book and i got the following code snippet that appears in an aspx (view) page... <%=
Unit test fails, tested code works!
I have a simple unit test which tests that a validation function picks up a specific validation issue. the validation item returns a simple object
Function string not return inputbox value
My function does not return the value. how do i make this work? i want to return value to btt1process => browser , and btt2url => url ,
Understanding the meaning of reference in excel COM
The code to be referred to is: dim oxl as microsoft.office.interop.excel.application dim owbs as workbooks dim owb as workbook dim
Why does "(oddNumber And 1) = 1" evaluate to true?
This is probably a basic question, but i have never used this syntax before. can someone tell me in detail how this expression evaluates to true?
Cannot insert null into database vb.net
I have been trying to insert null into database but every time i am getting failed. i tried several codes but nothing is working. when i tried
Ad
VB.NET synchronized Combobox and label from SQL Server
I'm trying to synchronize the reading of a sql server table with 2 columns (nom_unité and cout_unité). the first column (nom_unité) will
Why is my if statement only returning the second result?
My calculations work but every time i run the program my output will be the "negative, does not exceed" result. i'm very new to all this
Ad
Blog Categories
Ad