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

Software Development Network >> Visual Basic

Visual Basic

New Question

using .focus on textbox without selecting the text in it
how to make select statement in report
Multiple Forms share one Serial Port
Need to determine the first Monday of the Month
use word to read a rtf doc from a service su.exe and .net 2.0 process.start....
VB.Net SQL Server 2005 Accessing a stored Procedure via a datagridview
Web Control
Efficient method for writing to a text file real-time
list of deprecated methods and theur vb2005 equivalent
Reformatting Rich Text

Top Answerers

Chris.P.J
thedewd
Jasocl
Lechal
Chuck S.
Rob Berkers
devdev33
rxg
gamer101
Le Saint
sitemap
Only Title

Answer Questions

  • Mowali AxInterOp/InterOp -> forms -> threading

    Hi, I have got a question about AxInterOp and InterOp. When I add a com control to my form, it automatically adds two references to my project; Ax<>.dll and <>.dll. After some research I found that the Ax-dll is the actual component used for the form (visibility) and VS automatically uses it when I add that control to my form. The problem is; I need that control to be running in another thread, and I don't need the control to be visible on a form or something. I thought that would be possible somehow, so I started experimenting a bit. I thought that I could use the <>.dll class for that, because the Ax<>.dll did not work; it resulted in a threading error that I couldn't use it because it wasn't running in a single-t ...Show All

  • Lino17580 .NET User controls in VB6

    As a company we would like to move all of our code to C#, but we share development with a third party who wants to stay at VB6. We currently supply them with a number of VB6 OCX controls which they embed in their applications. We would like to build C# controls but wrap them in a way such that they can continue to use them as OCXs. I have experimented with the toolkit and been able to popup C# forms from within VB6 but this model and UI experience would be an unacceptable change to the users. I have searched around and come up with the following but none are great. 1. Create Web control inside an ASP.NET page and display it using the internet browser control in VB6. 2. Popup a frameless C# form and attempt to position and move it inline ...Show All

  • Remmie Problem with Array of Byte Array

    Hi, I need to upload multiple files using Web Service. For this I am using MTOM with WSE3.0. It works fine with the single file loaded into the Byte Array. But for uploading mutiple files I need array of Byte Array and load all the file contents into this array elements(Byte Array). But when I initialize the 2-dimension array as below Dim btArray(100)() As Byte And when I try to read the file's contents into the elements of array of Byte Array then it throws null reference exception since all elements of array of Byte Array is Nothing. But I am not able to initialize Byte Arrays dynamically. We can do that at 2-dim array initialization time as follows, Dim btArray()() As Byte = { New Byte () {}, New Byte ( ...Show All

  • mr_superlove Help with sockets/networking on ORPG Framework

    I'm working on an orpg framework. I have an idea how it will work. But the problem is that i get stuck with the sockets. I have literlaly seen like 100 completely different ways to do sockets. And ive never found what i need. ITs eather to simple, like connect, send message, disconnect, only 1 connection, or to focused, like thic chat application i found last year, which was the only socket example ive seen thats usefull. The problem was that trying to get the socket code and get it working in mine, it stoped working, Then theres this Winsock.Net that ive seen that i was trying to use. It worked ok, but took like a week to get working and then occasionally stooped working. Another sad part is i need to start backing up m ...Show All

  • Danny_FADBA Passing Parameters

    I have a form that I would like to open in either edit mode or View mode. PartsView.ShowDialog() I'm thinking I can call the above code as either PartsView.ShowDialog("Edit") Or PartsView.ShowDialog("View") My question is, where, on the PartsView Form, do I receive in and check the parameter that was passed. Thanks Tattoo   tattoo wrote: I have a form that I would like to open in either edit mode or View mode. PartsView.ShowDialog() I'm thinking I can call the above code as either PartsView.ShowDialog("Edit")  Or PartsView.ShowDialog("View") My question is,  where, on the PartsView Form,  do I receive in and che ...Show All

  • rdkelly Temp Image file is locked and cannot delete

    Hello, I just can't seem to get this to work right for some reason. I am getting pretty frustrated and I am sure it is an easy fix. I have the following line of code: Dim pictForm As Image = Image.FromFile(strFilenameJPG) In the next couple of lines, I draw the image into my graphics object. The strFilenameJPG varaible is just a temp file. When I have completed my grahpics work, I want to delete the file. I use the following line: Kill (strFilenameJPG) However, I get an I/O error every time saying that the file is in use. I have tried several methods such as disposing the pictForm object and setting it equal to nothing, but I always get the same error. Any help would be appreciated. Tom I think it's a wi ...Show All

  • Elfman42 SQL Connection accros network

    Hi every One I need to Make My application connected to SQL Server from another machine in Local Area Network I have tried with changing data source name and IP Addres and port number but i fiald Plz Help can you give us these details: Where is the SQL Server based (on your local computer ) what is the connectionstring used to connect to it My SQL Server is on local area network not on my local computer and to be more specifice I'm testing my application on a Virtual Machine on my phisycal Machine and the phisycal machine is the one which SQL Server is installed on and my virtual machine only running Windows XP Professional SP 2(Also my phisycal Machine have the Same Opreating System) and .NET Framework ...Show All

  • abuck LinkLabel Issue

    I have a LinkLabel that dynamically adds multiple links to one LinkLabel. Getting the links to have different effects on where you click works great but when then LinkLabel extends out of the bounds of the form and a scrollbar appears (because I have AutoScroll set to True), when I click on the LinkLabel it centers it in the window and then I have to click again or scroll back up to the top/bottom to get the right link. So basically when the LinkLabel gets activated it centers it in the form. Is there a way to stop the LinkLabel from centering itself when activated in the form Thanks for the help! Lets see the code that is moving the label when you click on it I'm not sure you can ...Show All

  • goozbee Can Anyone add control in TreeView Control?

    Hey all .net programmers.. I am thinking about Tree View control which contains controls. any idea Since you can't add true controls - since the treeview isn't a container - you would need to simulate it by overridng the paint event (or node paint, I can't remember) and draw the control in and respond to it. After reviewed this link: http://www.codeproject.com/Purgatory/Button_TreeView_Control.asp Clearly it is possible... Anyone scene this implemented so we can add a user control and not just a button Could use the help.... Felice You can customize the treeview by overriding the behavior of each node (to add additional properties, for example) or render it in a ce ...Show All

  • MGunes overload resolution and narrowing conversion

    I have the following bit of code that runs fine when not in a sub but has an overload resolution error when in the sub. Still a noob and would appreciate clarification on what this error really is and how to fix. thanks.. Sub FillQueue( ByVal filename, ByVal dmod1valq) Dim fields As String () Dim delimiter1 As String = "," Using parser As New TextFieldParser(filename) parser.SetDelimiters(delimiter1) While Not parser.EndOfData ' Read in the fields for the current line fields = parser.ReadFields() ' Add code here to use data in fields variable. dmod1valq.Enqueue(fields(1)) End While End Using End Sub I think you need to type your param ...Show All

  • Sajitha Jose Microsoft.Office.Interop.Excel and speed of operation

    Hello. I am using VB2003 to connect to and read an Excel spreadsheet (Microsoft Excel 11.0 Object Library). It works BUT it is very slow to initialize the excel application. At the top of my code for my form I have: Imports excel = Microsoft.Office.Interop.Excel Then I have a button that allows the user to select a file. No problem and no speed issues. Then I have a button to import the data from the selected spreadsheet with the following code: (From calling routine) ts = Now If ReadinExcelSheet(Filename) = False Then Exit Sub End If (Actual routine) Private Function ReadinExcelSheet(ByVal Filename As String) As Boolean MessageBox.Show(DateDiff(DateInterval.Second, Now, ts)) Dim objExcel As New excel.Applicati ...Show All

  • Xzarian Disable TreeNode

    Is there way to Disable TreeNode Like .Enabled = False I need this so no one can change the CheckBox checked state Hi Haihtomy I could not disable any TreeNode but I found this methods to make it the checked value of a TreeNode fixed during runtime: Dim SuspendEvents As Boolean = False Private Sub Button1_Click_1( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me .TreeView1.Nodes.Add( "Key1" , "Hi" ) Me .TreeView1.Nodes( "Key1" ).Nodes.Add( "Key1-1" , "1" ) Me .TreeView1.Nodes( "Key1" ).Nodes( "Key1-1" ).Tag = True Me .TreeView1.Nodes( "Key1&qu ...Show All

  • weeMac Multiple Catch blocks permitted

    Visual Basic Language Reference  Try...Catch...Finally Statement (Visual Basic)  Multiple Catch blocks permitted. If an exception occurs while processing the Try block, each Catch statement is examined in textual order to determine if it handles the exception, with exception representing the exception that has been thrown. ------------------------------------------------------------------------------------------------------------------------------------------------------ I have found that if I implement a multiple catch block an entry is always added to the exception stack for the block even though the exception that passed through was not an exception that was to be handled. I was expecting this multi-catch bloc ...Show All

  • cuetumayu Help with Implementing IInternetSecurityManager in Web Browser control

    Hi I am currently designing my own web browser based on Microsofts Web Browser control I am using Visual Basic.net 2003 with the .Net Framework 1.1 My problem is i can't get it to work, and i am getting errors in code for reasons i just cna't figure out as my code seems logical, maybe i just need someone else to look at it, maybe someone else can see an error i can't see. Neways here is what my code for it looks like: Public Class Form1 Inherits System.Windows.Forms.Form Implements WebBrowserAPI.IServiceProvider Implements WebBrowserAPI.IInternetSecurityManager I also get errors trying to implement these statements as well Public Sub New() MyBase.New() ' InitializeComponent() ' InitializeComponent() ' Microsoft Web Bro ...Show All

  • jforward5 Unable to cast object of type 'System.TimeSpan' ...

    Here's my code: Dim ts As New TimeSpan ts = TimeSpan.Parse("1:02:03") MsgBox(Format(ts, "HH:mm:ss")) I get this error message at the MsgBox line: Unable to cast object of type 'System.TimeSpan' to type 'System.IConvertible'. What's happening here I am running Visual Basic Express 2005. Version info: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft.NET(Framework) Version 2.0.50727 Microsoft Visual Basic 2005 76541-000-0000011-00124 Thanks, nogChoco. Since I have to derive the TimeSpan anyway, I tried your first suggestion and it worked perfectly. TimeSpan can't be converted to ...Show All

83848586878889909192939495969798990

©2008 Software Development Network

powered by phorum