Software Development Network Logo
  • SQL Server
  • Game Technologies
  • Microsoft ISV
  • .NET Development
  • Audio and Video
  • Visual C++
  • Windows Forms
  • Visual C#
  • VS Team System
  • Visual FoxPro
  • Visual Studio
  • Windows Vista
  • SharePoint Products
  • Visual Basic
  • Smart Devicet

Software Development Network >> Visual Basic

Visual Basic

New Question

VB6 dll to .NET- basic question
IT Asset Tracking System Objects
Checking if drive exist
is it allowed to install Visual Studio 2005 non-express editions on more than 1 PC?
calling mdi form process in vb.net
How to replace a folder icon
XML in Treeview
Datagrid question
VB SDK and Examples...free to use?
Startup / Shutdown time

Top Answerers

sryan
ratslav
Stojance
Tigers21
DiamonDogX
Geokri
christy_christ
Joseph Stalin
Job Lot
Nagaraja Subbrayalu
sitemap
Only Title

Answer Questions

  • osamaT Client server Application

    Hello, I'm not sure where should i post this topic, if i was wrong. Forgive me please. I want to create a client-server application in a network. I will use visual basic in visual studio 2005. In my system environment, I have 2 servers, i want to link from server A to server B and and retrieve its database information. I'm new to client-server application environment. Is there anyone provide some source and helps to me. I'm urgent to develop this before august 15 due date coming. From an article i have read, it tell me to use winsock in vb 6.0. But i can't find any winsock in visual studio 2005. I hopes this make sense and anyone could helps me. Your helps would be appre ...Show All

  • Scott Chang Start Refactoring!

    I installed the Refactoring! tool into Visual Studio 2005 (using VB.net). However, I can't figure out how to involk the function. I can't find a Menu item across the top of Visual Studio, I've checked in the "Tools" menu, and the "Help" isn't much help. It's very general, or at least I can't figure it out. I've tried selecting code, but still can't figure it out.... What am I missing Mike Mike, you can also invoke the refactorings via a keyboard shortcut but by default it is not assigned. You can assign it by going to Tools->Options->Keyboard and selecting CodeRush.Refactor and assigning it to a keyboard combination of your choice. Also, after several months of ...Show All

  • toddhd Stand Alone?

    Hello, I was wondering if Stand Alone applications were possible in VB... If not, what other language are available for Stand Alone programs (except MFC...) Are there any IDE or any options within visual studio 2005 that I can create a stand alone application without having to go and learn how to program Natively Also, please point to some good tutorials for native programming. Thank You, Keehun Nam C++ allows you to create unmanaged code.   VB.NET and C# is managed and hence has a dependency on the .NET framework.  The original question was can you do it in VB to which the answer is no, not using VB.NET or C# To create standalone application using C++ I'd suggest you ask in the C++ Fo ...Show All

  • DKB Optional Object parameter passing in a function

    Hi, I have this code. I want to use the same procedure with the controls on a form instead of just controls on a groupbox. The catch is i do not want to repeat the procedure. I tried to declare grpbox as optional but it will ask for the default value and I don't know what i can give as default. Any other recommendations to make this function precise would also be welcomed. Thanks Public Sub checkCriteria( ByVal GrpBox As GroupBox) Dim grp As GroupBox = CType (GrpBox, GroupBox) Dim ctrl As Control Dim flag As Boolean flag = False For Each ctrl In grp.Controls If TypeOf ctrl Is TextBox Then Dim sctrl As TextBox = CType (ctrl, TextBox) Try If sctrl.Text <= txtasUMin Or sctrl ...Show All

  • sobo1 SendKeys from a Windows Service

    Hello All, I am having a problem sending keystrokes from a Windows Service Application. I added the <Assembly: AllowPartiallyTrustedCallers()> to the assembly file and referenced the System.Windows.Forms and imported in my service file (Imports System.Windows.Forms). There is a password field that pops up on the screen and is the only thing in focus that the following block writes to. I even tried this in a forms app and it worked like a charm, but for some reason the service is not accepting the Sendkeys. I narrowed down the block with the error by use of a logged entry: For i = 1 To passLenght skey = Microsoft.VisualBasic.Right(Microsoft.VisualBasic.Left(pass, i), 1) 'WriteToLogFile("Sending keys to sc ...Show All

  • Andrey Makarov Cannot add data to an SQL Server 2005 database

    I have a simple form to display customers and add new ones. I have the customers displayed using a datagridview and bound datacontrols to display details about them when a a record is selected. Anyway, I have an addition form for adding new 'Titles' for selection in a combobox. I have created a button to add text and a new ID in the table tblTitles. tblTitles looks like: TitleId | TitleDescription tblTitles is related to tblCustomers from the TitleID to the TitleId in the customer table. The code on the add title button is as follows. (Primary keys of each table is a GUID, "Sir" is just an example of a title) Me.TblTitlesTableAdapter.Insert(Guid.NewGuid, "Sir") Me.TblTitlesTableAdapter.Update(Me.NytdbDataSet) ...Show All

  • Barryrocks riddle me this -- memo fields from Access

    I've encountered a problem with Memos from Access...  basically I'm running into Nulls when I shouldn't be. I've isolated the problem with as few number of variables as I can: I have 1 Access 2003 database in the location: c:\vb\sampledb.mdb This database has 1 table, "test" The table "test" has 3 fields,  testAutoNum - Autonumber  testText - text  testMemo - memo The table "test" has two rows, [1] [test] [test] [2] [test] [test] I have 1 VB Application with a reference to "Microsoft ActiveX Data Object 2.9 Library". There is one form, Form1, with one textbox, txtTest, and one command button, Command1.  The following code is used: Dim objRS As ADODB.Recor ...Show All

  • Niranjan Kumar Either Sending Keys directly to a specific form, or bringing specific form to the front

    Basically, I have a program that loads a page, pastes some text, clicks a button, waits 20 seconds, loads another page and repeats, most using SendKeys. Upon loading: SendKeys("+{TAB}+{TAB}(text){TAB}{ENTER}") The first two backwards tabs get into the text box, the text is put in the box, and tab puts it on the button. Now, I'd like for this program to be able to run while I do other things - and I bet you just saw my problem. SendKeys sends its keys to the active window, no matter what that window is. So since this is running on a timer, I'd need to bring up the window myself every 20 seconds for SendKeys to work right. (Right now I have it running off of the timer, waiting for my prompts instead) There's two ways I' ...Show All

  • Jack Robins "System Cannot Find Specified File."

    Okay. I've looked through all the posted questiones, and I could find an answer to my situation. So here it is: I've developed a class using VS 2003/VB.NET using the .NET 1.1 framework that presents an object model for a specific XML document. This class has properties, methods, and events. I've exposed the class to COM InterOp and compiled it and tested the interface on the development PC. Everything is great and happy with the world. It works just like it's supposed to and I couldn't be happier. Then my world came crashing down when I tried to deploy this same DLL to another machine to make sure everything was good there. I copied the DLL to the target machine. I registered the DLL using regasm.exe on the target box using the /tlb[ ...Show All

  • clstephenson ListView and an ArrayList

    I have a ListView control and an ArrayList ----------------------------------------------------------------------------------  Public filename As New ArrayList() Public pathx As New ArrayList() Public phpath As New ArrayList() Dim fx As String = Path.GetFileName(OpenFileDialog1.FileName) Dim pcx As String = ComboBox1.Text filename.Add(fx) pathx.Add(pcx) phpath.Add(OpenFileDialog1.FileName) Dim item As New ListViewItem(fx) item.SubItems.Add(pcx) ListView1.Items.Add(item) ----------------------------------------------------------------------------------  For deleting an Item I have the following code: For Each x As ListViewItem In Li ...Show All

  • MarilynJ EMAIL

    I am using this code in vb.net 2005 to sent an email but an error FAILURE SENDING MAIL is allways appearing. Can someone show me where I am duing wrong. Try Dim SmtpClient As New System.Net.Mail.SmtpClient SmtpClient.Host = "localhost" SmtpClient.Port = 25 SmtpClient.UseDefaultCredentials = True SmtpClient.Send("glennzarb@gmail.com", "glenn_zarb@hotmail.com", "Test", "hi") MsgBox("sent") Catch ex As Exception MsgBox("Send failure:" & ex.Message) End Try I haven't installed any other programs or smpt's it all depends if the email provider allows you to send emails through them prog ...Show All

  • Jeremy - MS Research Add a Parameterized Query to a Form in a Windows Application returns: There is no row at position -1. (Index out of Range)

    Hi, I am working on a form (details) and I need my form to allow to search on some char fields. I have a button next to the field users can search. The button calls a pop-up form to enter the string to search. ItemsTableAdapter is the table adapter used for the form. I have 1863 records in the Items table. My goal is to show only the records matching the string using the same form. I have modified the DataSet to add a query using a parameter: SELECT No, Type, ..... Interest3 FROM items where nm_latin like @srch_nm_latin order by nm_latin This code is executed when I return from the pop-up. The string contain a string. Example: "thing%" If (String.IsNullOrEmpty(Me.Recherche.Text) = False) Then Dim rech_str As String = Me.Recherche.Tex ...Show All

  • surfguy0021 Syntax error : Missing operand after ''%_____%'' operator.

    The ____ sign in the subject refers to the value that i want to search inherited from textbox inside my project's form. What is the 'operand' that the executer request and what is the suitable operand to be placed after the %_____% this is my code. Song_dataBindingSource.Filter = colSelect.Text & "like '%" & InputBox.Text & "%'" thanks for all incoming help ...Show All

  • Cryton VS 2005 - Windows Service Project and Setup Project questions

    My solution consists of a Windows Library (that creates a DLL), an EXE that is the Windows Service and a Setup project for deployment. The Windows Service references the DLL project. Everything is installed and deployed. 1. When I run the service, my code needs the current directory of my installed windows service application and library (c:\Program Files\Perf\PerfService in this case) but when I use the following code: path = My .Computer.FileSystem.CurrentDirectory It returns : C:\WINDOWS\SYSTEM32 How do I get where my DLL and EXE are installed 2. I am using a My.Settings config file (app.config) to store application settings for the DLL. How do I include this in my Setup project so that I can manually change settin ...Show All

  • Rich6782 Rounding up to the next 100.

    Ok I'm new at this so hope I have the right forum to be asking this question I am writing an application that works out the square area of an item, but the result has to be to the next 100. So for example sake if it is 720 it needs to go to 800 to work out the area, or if it is say 970 it will need to go to 1000. The program is for costing of sheets if your intrested and we cost by per 100mm. Any ideas or samples of code would be greatfully apreciated. Oh ok I see the problem...you want each value in the text box to be rounded up *before* you do the calculation, but what your code is doing is multiplying first *then* rounding up to the nearest 100. Make a variable for each value in your textbox ...Show All

676869707172737475767778798081828384

©2008 Software Development Network

powered by phorum