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

Software Development Network >> Visual Basic

Visual Basic

New Question

How to create an instance of a C DLL.
Creating a Function to return a result
Folder and file
How to access the 'table description' data using VBA in MS Access.
ToolBar Control Replaced by ToolStrip with No ImageList - Rendering it useless.
how to use Object as any component
VB Classes
Ethernet Port Watcher
How to save data from a form to a xml file?
DATABASE READ HELP

Top Answerers

vladb
Anton Rapoport
Tryst
Mitch5713
HughLeslie
SivaS
pc_bond
cdaviduik
Doug 123
NickGetz
sitemap
Only Title

Answer Questions

  • ridvan Running .net application as both windows and console mode.

    Hi All I am writing a .net windows app that should also run from command line. I am not sure what is the best way to set such a project. I intend to create a windows project and on the Sub Main rotine check if any arguments are passed. If not run a form. Public Shared Sub Main(ByVal Params() As String) If Params.Length = 0 Then 'run windows mode Application.Run(frmMain) else 'run console application some code End If End Sub Would this be the best way or is there any standard way of doing this Many Thanks Mustafa www.hostukdomain.com I cannot get the console screen The project needs to be setup as windows. (cannot setup as console type ) when I write following public static void Main(string[] ar ...Show All

  • Sergio L. handling events of objects stored in array

    Hi, I have an array of objects. These objects have events that needed to be handled in the Form class. But, I am facing difficulty in declaring WithEvents for these objects, as these are not at the class level. Eg: I need to do something like I declare array of that class at class level When the button is pressed, then instantiate the objects in the array "WithEvents". I need to handle events in the form raised by each object within the array How to achieve this. Please explain. Thanks in advance. Regards, Noorul oops, sorry wrong thread i would handle this situation like this: handle each event that i need to implement. Public Sub Test() Dim ...Show All

  • thomas woelfer BackgroundWorker vs Try/Catch?

    Hi. I have an app that spawns a couple of BackgroundWorkers. The process works perfectly when all the target servers are available. For testing purposes, I added some non-existant servers to the mix. The problem is in the Try/Catch block of the background process. I have to connect to a SQL Server first, then do stuff. Even though I handle the problem to gracefully exit, I keep getting the message in Debug mode. TargetInvocationException was unhandled - Exception has been thrown by the target of an invocation. -InnerException.Message: {"Object reference not set to an instance of an object."} I thought maybe this was a noob question similar to VB6's option "Break on all errors/Break on unhandled errors," b ...Show All

  • RizwanSharp Copying structures

    Hi, I have the situation where I need to pass a structure to a dll where it's manipulated and then passed back. Unfortunately the passed structure can't be used during the manipulation stage and so I was wondering how I could take a temporary copy of the structure when entering a dll, do the manipulation on that and then overlay the original structure with the temporary structure when I'm finished. Thanks for any help. In order to copy a whole structure, it is enough to use the "=" statement. This really clones the structure. For instance: void MyMethod( ref MyStruct s ) { MyStruct tempCopy = s; ... do something ... s = tempCopy; } Sorry if I use C# syntax instead ...Show All

  • Demix Missing last record - ADODB Recordset

    Here are the essentials: * Really simple setup * MS Access 2003 db 1 MS Access query getting records from 1 table in the db table has 10 records -- the query correctly returns 5 records based on WHERE clause VB code to create ADODB recordset using the MS Access query VB code or compiled .exe and MS Access db are on the same computer The problem: When the VB code runs, the recordset is created and returns only 4 records when 5 is expected. It is always the very last record that is missing. This issue only happens when the code runs without breakpoints. The query runs perfect and returns all 5 records when run in MS ACCESS. When stepping through the VB code, all 5 records are returned. If a breakpoint is used in the VB code, all ...Show All

  • zdrae pls help me out : Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0'.

    hi all, problem in green is solved(i have pasted for reference only), but as just after it i m getting this Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0'. can anyone help me to solve above problem or tell where i can find docs on problem mention above. thanks and regards, ~Reverser i m getting problem inh my project, which in VB.NET. Actually i was developing a small software, to be familier with visual basic.NET, as i was coding with Visual Basic. everything was running very fine, day before i installed winXp again ( freash installeation). Then simply VS 2005,with out any error. Now i m able to open, my project, i can edit it, but if i try to build the executable, or compilation. it i ...Show All

  • gshaf Multithreading in classes

    Hi, I'm writing a class that sends data via a TcpClient, and also listens for responses from the server using the same TcpClient. I'm using methods to send the data, and fire events when data comes in from the server. It's these events that's giving me problems. I used System.Timers.Timer to check if there's any data available from the server and if there is, I parse these and fire the relevant event. I've created several classes that inherits from the EventArgs class to hold the information. The correct args are passed into the event. Something like: Public Event OnConnect( ByVal sender As Object , ByVal e As ConnectEventArgs) Now, the way I understand it is that the timer runs in it's own thread. This causes the custom eve ...Show All

  • Tirath Refactor! 2.0.4 installation fails on Windows Vista RC1 with Internal Error 2739

    Hi all, I have just downloaded the latest version of the Refactor! tool from DevExpress (the free one) on a Windows Vista RC1 installation with VS 2005 Team Suite Trial edition. The installation fails with the following error message: "Internal Error 2739" The error window is titled "DXCore for Visual Studio .NET" I don't have any other versions of Refactor! installed on this OS. The error pops up before any files are copied, while the "Please wait while Windows configures DXCore for Visual Studio .NET" install is running. SA. Just went to my subscriber login area for Refactor! Pro 2.0.4 on the DevExpress site and under the What's New link it says: Compatibility ...Show All

  • SachinPatole Validating a date in a DataRow

    Hi there, I have a date in a datatable which has been populated from an excel worksheet. Then scan the Datatable and validate each of the rows/columns as the data will be imported into the database. This is all fine with the exception of the date checking my code is below:- 'I've already populated the datatable etc then---->>> Public DataError As String = "#Bad Value#" Dim dt As DataTable = ds.Tables(0) For Each row As DataRow In dt.Rows If IsDate(row(5).ToString) Then DOB = row(5).ToString Else DOB = DataError End If Next row I've also tried:- If IsDate("#" & row(5).ToString & "#") Then and still no luck.... Can anyone out the ...Show All

  • davidjmsdn Printing A CSV File

    Hi everyone, I was already able to export my DataGridView data to a CSV file. My problem now is how can i print the CSV file via a command button in my VB.net application I really need this one any help would be appreciated. Thank you so much in advance!!! Stan If you want your application to handle the printing, there is quite a bit of code to work with and you need to be familiar with some GDI principles ... check out System.Drawing.Printing. Alternatively, head on over to http://www.developer.com/net/asp/article.php/3102381 where you will find a vb class that probably do all you want to do. Hope this helps get you started. Richard Start looking h ...Show All

  • QWERTYtech Operand Errors in Visual Studio 2005

    I am trying to make a calculator when I go to do the * button, clear button or even the + button I get blue lines under the word Operand1 or if I type to go past that and type [Operator] it gives me blue lines under that word and says I cant go any futher cause it has a error. Anybody know what I am doing wrong :( Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click Operand1= TextBox1.Text() [Operator] = "*" TextBox1.Text = "" End Sub or Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click Operand1 = TextBox1.Text() [Operator] = "+" TextBox1.Text = "" End Su ...Show All

  • systech Illeagal Characters In Path Error.

    Hi, I have this error, Illeagal characters In path. I figured out it happend when the FILE NAME had spaces in it, so It took me one week to make it change the spaces to "_". In the debug I didn't have the problem any more. Now I installed the program, and it happend. I don't know the exact line, but if it's because of space it's in the Folder's name. SPACE ISN'T AN ILLEAGAL CHARACTER! Why does it happen Is it a bug in VS How can I fix it Thanks. I wouldnt have though it was simply because the path contained a space as these folders look like they are generated - perhaps as a result of a click once deployment. How ever you need to be specific about the specific error thats being ...Show All

  • Robin E Davies Missing Data Form Wizard

    My apologies for sounding like an idiot. I've a new install of Visual Studio 2005, and I am unable to locate the Data Form Wizard from the list of installed templated for a new windows application in VB.NET Can anyone point me in the right direction RoblynDavies and steveb, 1. Open Visual Studio 2005, click "View->Server Explorer". Then you can add the data source for your application in the wizard. 2. In the Toolbox, there is a menu called Data, right click in the Toolbox, click "Choose Item", then add the related database control on the Toolbox. Such as DataSet, DataReader, DataGrid, DataAdapter, DataTable. Hi, I'm having exactly the same problem ...Show All

  • Intelligence pc to rs232 to dsp

    i am running a program where the user inputs data that is sent to a DSP board via Rs232 i am  testing this through a hyperterminal on another PC first and i cant seem to get what i want which is to send the data to the other PC and get a readback this is what i want to accomplish with my final program using a DSP PC --------> RS232-----------> DSP--------->RS232----------> PC 2 textboxes----------------------->ok ----------------------->  4 textboxes move "1""2"                            readback to pc          &nbs ...Show All

  • c_shah Is There Something Wrong With This?

    Here is my code, it's not working and I can't find anything wrong with it. If you can, can you please re-post it with corrections or tell me what to correct By the way, its for a medical company in case you havent noticed heh... Public Class processor Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) If disposing Then If Not (components Is Nothing) Then comp ...Show All

212223242526272829303132333435363738

©2008 Software Development Network

powered by phorum