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

Software Development Network >> Visual Basic

Visual Basic

New Question

Returning UNC from Map Drive Dailog
a_dataset to b_dataset record transfer
Is there any way to autoclick with the mouse?
.NET Events in COM VB.NET
COM and vb.net IPC
Help Turn a Uint64 into Hours:Minutes:Seconds
Similar coding required for Visual Basic .NET 2005
csv to array??
week number
numericupdown problem

Top Answerers

PeterVrenken
omron
Derek Ekins
Eng. Habeeli
Shady9399
Mikedlnk
learnerplates
Will Merydith
Kyle0654
JonM
Surviving Siamese Twin Gracie Goes Home to Gozo
Only Title

Answer Questions

  • KristianSv How can I search for a specific message in Outlook using .NET?

    All, I'm just a little stuck (which isn't particularly surprising since I'm making this up as I go), so I'm hoping someone can help me out. I am writing something to interact with one of our UNIX servers that I have just about finished, but I'd like to add one more feature... As it stands now the user submits a file to the UNIX server to run some tests on, and the server generates an email sent to Outlook with the results of the test. I'd like to add code to search within Outlook for a specific subject line and open the message found. The subject line will be something like "My_test_ABCD", but I want to ignore "Your_test_CDEF" and "My_real_ABCD". Another concern is that the message may not be in the I ...Show All

  • favio Problem with “data bound ComboBox” with “Visual Basic 2005”

    It seems that there is a problem with “data bound ComboBox” with “Visual Basic 2005” Please try this… (I used SQL 2005 Express for database.) Create a new Windows Application. Add a new database named “ComputerUsers.mdf” In the DataSource Configuration Wizard, click cancel (since there’s no table yet) In Server Explorer, create two tables Users and UserTypes with the following definitions: Users table FirstName varchar(50) notnull LastName varchar(50) notnull UserType int notnull UserTypes table UserTypeId int notnull primaryKey UserTypeName varchar(50) notnull In th ...Show All

  • cablehead How to insert data (probably simple question)

    I am quite newbie and I have one, probably simple question. I try to insert data into my database (SQL Server 2005) with this code (VS .NET 2003): Friend Sub Datainsert(ByVal Name As String, ByVal Surname As String, ByVal DateOfGame As Date) Dim ConnectMe As New Odbc.OdbcConnection ConnectMe.ConnectionString = "Driver={SQL Native Client};Server=localhost;Database=ProjektKoncowy;Trusted_Connection=yes;" Dim Writeit As New Odbc.OdbcCommand("INSERT INTO ProjektKoncowy.dbo.Wyniki (Name, Surname, Points, Status, DateOfGame, KindOfGame, Autor) VALUES (Name, Surname , ' 3 ', ' 1 ', DateOfGame ,' 4 ','John Smith')", ConnectMe) Writeit.Connection.Open() Writeit.ExecuteNonQuery() ConnectMe.Close() End Su ...Show All

  • Shadowsoul Enter Button for a Field

    I read in another thread about this but I didnt get what was said...so ill reask this: I have a form. I want the form to activate a button after the user has typed some text and pressed enter. You can trap one of the Keyx eventys on the textbox and test for enter. Here is a sample for KeyDown or KeyUp Private Sub tbLike_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles tbLike.KeyDown If e.KeyCode = Keys.Enter Or e.KeyCode = Keys.Return Then <button>.Focus() e.handled = true End If End Sub Notice you need to trap both Enter and Return as they are separate keys. Sample for KeyPressed Private Sub lbItem_KeyPress(ByVal sender As System.Object, ByVal e As System.Wind ...Show All

  • Moody2006 Windows Service

    Hi! I've implemented a windows service in order to open some excel files and execute a macro . I tried the same code on a Windows Form and it's ok... no problem! But in the WINDOWS SERVICE I've found this error: Error: 0x80028018 (-2147647512) Description: Old Format or Invalid Type Library Dim fileName As String = "c:\TEST.xls" Dim macroName As String = "debugData" Try Dim oApp As New Excel.Application Dim oBooks As Object = oApp.Workbooks.Open(fileName, False ) oApp.Visible = True oApp.UserControl = True oApp.Run(macroName) Catch ex As Exception Me .registroTxt.WriteLine(ex.Message) Me .registroTxt.WriteLine() Me .registroTxt ...Show All

  • Nickolay Vasilyev MediaPlayer and Read Movie Files

    I want to read media files and this files show as link in datagrid. example C:\Movies Movies directory in exist all files break into to datagrid Thanks For Help This simple app - populate the datagridview with a list of files in a folder.  When you select an item and click the play button it will open that file with the default application for that file extension.   If you specifically want to play in media player then you can modify the line             Process.Start("wmplayer " & Me.DataGridView1.SelectedCells(0).Value) and it will play the file with media player - but as different users may have configured t ...Show All

  • Paarul WebBrowser control and scrollbars

    In a VS2005 dot net application, I have a web browser control on a form, scrollbars are enabled. During the operation of the program, I send various messages to this control for display. After placing the message into the control, I then do a ".ScrollTo" so that the latest information appears at the bottom of the form. Great idea in theory... but if the client is trying to scroll back and see something, and a new message comes in, they get forced back down to the bottom of the list. What would be the proper way to determine if the client is using the scrollbar to move the information in their display I can then prevent the "scroll to" side from happening. Thanks ever so much, and I hope this post is in the rig ...Show All

  • moo360 ComboBox, No Change.

    How do I stop the user from changing the value in a ComboBox Hi, If you're worried about the SelectedIndexChanged event handler firing, you can use the RemoveHandler expression then change the Index, then use AddHandler to put it back. I was required to do that when i was experimenting with Cascading Drop Downs in my App, otherwise i had a stack overflow because each time i added something to the combo box, it fired the SelectedIndexChanged event, odd but true Chris Thanks Brendan, I already knew that, but it's not what I want. I need the user to be able to select the items in the combobox, I don't want them to be able to write text in to it. ...Show All

  • Patrick Sears Converting a string into required date format in vb.net

    Hi friends, I want help in converting a string which contaions 5 numbers,into a required date format for the code below: dim strDate as string dim objdate as Date strDate = "60727" //6 as yy 07 as mm & 27 as dd strDate = strDate.Substring(0, 1) & "-" & strDate.Substring(1, 2) & "-" & strDate.Substring(3, 2) objDate = Date .Parse(strDate) while executing it returns 6/07/2027 which means 27 as year while i want 27 to be a date. and format should be exactly 2006-sep-27.So plz help me regarding this code. Thanks to all for replying i will try one of these & will write back to forum reg ...Show All

  • Rahul Singla Key hooking problem (VB2005)

    I am using the following code to try and prevent certain keys from being pressed when my application is running. But it always returns a negative number errror. Can someone tell me what I am doing wrong Code: Will this also work with an USB keyboard If not, how should I adapt this code Thanks. What line throws the error Also is there a reason that you are not usning the key events in your application to process keystrokes ...Show All

  • R.Tutus 2005 Compiler not recognising code changes

    Ok you guys, I know this is probably going to be something really simple so I apologise in advance. I've recently converted a vb.net 2003 solution to 2005. everything is great and I've got rid of my pre-compilation conversion errors and warnings etc and am reading to carry on development. My problem is this - in a sub project (which is referenced in the main solution by the sub projects DLL file, but I also change the source code for the subproject whilst in the main solution (hope that's clear!)), when I change or add to the source code (in the sub project) and start debug, or even rebuild the whole solution, the new code doesn't get picked up. I've tried putting a breakpoint in the code, and it doesn't pick it up, so i tried typing " ...Show All

  • doener Convert VB struct to LPBYTE

    Hello evrebody. I'm trying to use the Setjob API within my vb.net project but I don't reach to pass my JOB_INFO structure to the API. So my question is : How to convert a VB structure to a LPBYTE I use this declaration : Public Declare Auto Function SetJob Lib "winspool.drv" ( ByVal hPrinter As IntPtr, ByVal JobId As Int32, ByVal Level As Int32, ByVal pJob As IntPtr, ByVal Command As Int32) As Boolean and Structure JOB_INFO_2 Public PrinterJobId As Integer Public pPrinterName As Integer Public PrinterName As Integer Public PrinterUserName As Integer Public PrinterDocument As Integer Public PrinterNotifyName As Integer Public PrinterDatatype As Integer Publi ...Show All

  • Jwrayth Exe takes more than 35 sec. to load

    Hi freinds, I am using vb.net 2005. The problem is when i install the project on the clients PC it take more that 30-40 sec to load. Why does it takes so much time as compared to vb 6 applications. Is there any other way to improve the performance Please Help me out. Thanks Puneet Minda of course...Thanks for that! By default applications deployed using ClickOnce checks for updates from the deployment server(typically  a server in the intranet) everytime it launches.   one way to speed it up is to make sure you build your final build in release mode Spotty - I have no knowledge of ClickOnce, which I should investigate, but sorry for asking a silly Q - why would it be slow in the ini ...Show All

  • GOH Omnipuff Using Return insted of Exit Function

    I've been doing some internal code review here at my company and have seen varying degrees of inconsistency with coders exiting a function with "Return" or "Exit Function". I want to address this and give them a reason to use "Return", but thinking about this, I realized that I wasn't entirely clear myself why I would prefer them to do this other than it seems more .NET. The entire development staff is coming from VB6 and we are working on porting the old VB6 code to our updated VB.NET application. So I know to convince them to use "Return", I'm going to have to give them more than, "it looks nice". So here is an example of what I consider the old VB6 way and is what I would like to remove ...Show All

  • ZopoStyle Ngenning and protecting the code in an image

    I'm writing some code that I want to be secure. I have stored data that I need to be uber secure. It's not a problem to encrypt the data. But the problem is to protect the code that manages the secure data. If I use reflector to dissemble my code, the dissassembly is magnificent and everything is right there. Using a c++ dll is not a solution because I need to call clr functions and once I've done that, the code is wide open to disassembly. Ngenned code is supposed to be dissassemable. But ngenning leaves the original image around, I suppose to activate the code that is placed in the GAC by Ngenning. Microsoft uses ngenned assemblies in their products. VS2005 is installed and then ngenned. But they don't leave disassembable im ...Show All

34567891011121314151617181920

©2008 Software Development Network

powered by phorum