vb.net

  1. J

    Question Reference to a non-shared member requires reference?

    Can somebody help me with this super simple VB question? <link removed by moderator>
  2. N

    comparing two values

    hello I am having trouble figuring out a method to compare two values that seem to be the same, but the number of decimal places is affecting the logic and I am not sure how to format the values correctly. One of the values is an entity record field = 100.00000000000000000000 The other value...
  3. N

    Question how to save record from entity model

    I am finding a record in the entity model, by using a DataKeyName that contains the id of the record. I want to be able to save the record in a variable to save all the values in a max column in a data table. This what I have so far: Dim myContext As New OLTPEntities Dim...
  4. M

    Question Is it possible to test whether the key pressed can generate a character?

    I'm trying to make a class that produces a facsimile of the textbox from Winforms in Console. I have a loop within this class that is reading keypresses as ConsoleKeyInfo. What I want to do is to take a keypress and test whether it corresponds to an actual character. For example, the A key...
  5. E

    Question Word Automation Memory Error

    Hello, I have created a VB.net program that allows the user to download a word template and some data. The program then uses the macros within that document to fill in the correct locations. Then the user can save the file and close out word. When the user closes word my VB.net program uploads...
  6. R

    Having Trouble Updating Form from thread outside of Class

    I know that you guys probably get this question alot..and trust me when i say I have been doing plently of searching..and i am stumped... invokes and threads have really been getting on my nerves ... anyway I am building an special irc client... it all connects that is not the issue.. what...
  7. M

    Binding Navigator value

    Hi all, Having created an order viewer with a view to creating invoice reports for the Northwind database, I have encountered an issue. When the Binding Navigator was instantiated, it was automatically set to move through the product list. I wish it to navigate using the OrderID value. Can I...
  8. Y

    Question Calculating the score at the end of a test and then saving it into Access.

    Hi, I've got a problem with my spelling program where I'm not able to display the correct score at the end of the test. Also, after somebody's help with that, I'd greatly appreciate help from someone to show me how to then save that score into access. Thanks. Btw, the 'Test' form is the form...
  9. P

    Question Need help with 'Student Portal'

    I'm currently using VB.net at college and need some help around an issue. The basic idea behind our project is to create a 'Student Portal' so that both students and users can access and perform certain actions inside (This is all console based btw). The issue I've come to is that I need to...
  10. T

    Question VB.Net to VBScript

    Is it possible to convert code from vb.net to vbscript? I have, basically, a windows form in vb.net but it is only a dialog box. The dialog box just has a few labels on it, two buttons, and two textboxes. When the user hits "okay" (button) it uses the "System.IO.StreamWriter" to write a text...
  11. S

    Question SIMPLE question on JOINS, getting "NAME" from "ID"

    I really am trying to figure this out but just cannot get it right. I have 2 tables, "tblSalesMain" and "tblRepMain". I am trying to return to a combobox a reps first and last name instead of an "ID". For example, when a sale is selected it will show all of the info of the sale in different...
  12. M

    Question What is the best way to save list items to the database

    I have a list(Of Strings) List. I need to save each item in the list to a table in a database. I could Iterate through the list and save each item to the database. But if I have 10 items in the List then I have to do 10 calls to the database. Is there a better way to do this so I don't have to...
  13. J

    Getting certain item from two related tables in a dataset

    Hi I am a newbie for vb.net. I am trying to related two tables in a DataSet. I have looked through a lot of threads but could not find the answer I want. Say, I have two tables: table1 : "ID", "ID in table 2" 1 3 2 4 table2 : "ID"...
  14. M

    Question I get System.Byte[] when SELECT DES_DECRYPT()

    Hello, i'm trying to decrypt a previously encrypted password from my database on visual studio 2012 (vb.net) but when i do the comparaison between my Textbox(Named TXT_Password) and the decrypted password i'm getting a value named System.Byte[] on the side of the Query, here's the code...
  15. D

    Question How to logoff multiple users logged on Windows Server

    Hi, I want make a Console Application in VB.NET which will logoff all (but not an Administrator) users connectend to Windows 2003 Server machine via RDP Connection. I wrote an application which is restarting Server machine, but when there're logged in users, Server got suspended. Code of my...
  16. C

    Question Build an SQL string from Variables

    This is my first post so hope I get it right, and hoping someone can help me The part of my application I am having a problem with is a mail merge function that replaces pre-defined text in a string with data from a SQL Database. This function is used for sending out personalised emails...
  17. X

    Question how to save ListBox items?

    how to save ListBox in vb.net Dim files() As String files = Directory.GetFiles("C:\", "*.mp3") Dim file As String For Each file In files ListBox1.Items.Add(Path.GetFileName(file)) Next output : 00001.mp3 00003.mp3 00005.mp3 .... want to save all item wth Only filenam to another folder.
  18. A

    Question Make a button which will create a row of text boxes

    I tried the code pasted below but it does not seem to work in vb.net. However, this creates only one text box and not where I exactly want it to be. My objective here is to create 5 text boxes under the respective labels. There will then be a button which will take in all the text inputs...
  19. P

    Populate Dropdown list

    I am trying to populate a dropdown list (year which is a FK in a budget table) The year has the following fields (Objectuid uniqueidentifier (PK), name varchar(30), IsActive,IsDeleted.......). The budget table has (Objectuid Uniqueidentifier (PK), yearID uniqueidentifier (FK), name, ......) The...
  20. margzxero

    Question Listview/Query Export to Excel

    how to export listiview/quert to excel with landspace format?
Back
Top