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

Software Development Network >> Visual Basic

Visual Basic

New Question

Unexpected exception occurred during upgrade engine operation
Resize windowform1
Mircosoft office document imagaing file locking Visual Basic 2005
Sending to firewire
Image dimension reduced however filesize increasing?
"*" Question
How to Protect my Assembly
This LoaderLock Error msg prompt out each time i stop the program in VS 2005
is it possible to tel wich control raised the event?
figuring out chars in a string (parsing)

Top Answerers

mpetanovitch
Arin George
yeos_lee
George.
just_Curious
anukirthi
quinet
rtaiss
Analyst Chad
Warren13
Gnosis Solutions
Only Title

Answer Questions

  • ziffy_amit Hyperlinks in datagrid

    Hi, Is there a way for VB 2005 to display hyperlinks in a datagrid view from an Access database I have an Access database that has one column set as Hyperlink as its Data type. These links just point to a web page on my server. When I placed the datagrid view of the table, the hyperlink column is displayed as regular text. Hi, You could use a linklabel and have the text of it change to the URL selected maybe Or just use the Process.Start method to open the default browser anyway as per the item selected by passing a string as i have done here   Private Sub LinkLabel1_LinkClicked( ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Ha ...Show All

  • GJK Runtime Reflection

    What are the steps of creating a runtime reflection here is what i would like to do. i would like: using aspx.vb file, include a class in that class, have a procedure with parameter of HtmlForm evaluate the Attibutes of the controls with in that form. I'm able to send the form but not able to get the attributes error with LiteralControl. Would this be possible and point me to the right directions. Group, please help. Thanks in advance Ros From the previous link you can find plenty of reflection samples: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemreflectionfieldattributesclasstopic.asp Imports System Imports System.Re ...Show All

  • monkeynova Irritating effect from combo

    I have got a form that I open, in the forms load event i do the following Me .EDF1TableAdapter.Fill( Me .DataSet1.EDF1) Me .ENameComboBox.Text = "" Me .ENameComboBox.DroppedDown = True Me .ENameComboBox.Focus() when the form loads, the combobox is dropdown and does have focus, but its got a mouse cursor showing wait it does go away after you click in the combobox if you dont dropdown the combo it does do it, why Davids Learning That time it did fine in both a blank project and my current project. Interesting Davids Learning Ok, what happens when you put the "Me.Cursor = Cursors.Default" line as the very last lin ...Show All

  • silke C# conversion

    I am using a conversion tool, but it doesn't know what to do with the public bool Accessible { get { return (bool)(ViewState["Accessible"] true); } set { ViewState["Accessible"] = value; } } Help, please. Public Property Accessible () As Boolean Get If Not IsNothing (( ViewState ( "Accessible" ))) Then Return CType ( ViewState ( "Accessible" ), Boolean ) Else Return True End If End Get Set ( ByVal Value As Boolean ) ViewState ( "Accessible" ) = value End Set End Property EDIT: The operator returns the left-hand operand if it is not null, or else it returns the right operand. ...Show All

  • Binary 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

  • Kai123 Will it is ok to use API in Vista in VB6 sp6 coding

    I have a program in VB6 sp6 created in XP it still run on Vista environment with a little problem like colors in some controls, but so far the API access still working find. Is all API call (dll access) in Vista still supported, meaning can we still use the same API with the same parameters in Vista using VB6 sp6 There will be a dhtml edit control for windows application by RC1 of vista. There will not be web versions of the controls. Read this blog for more info. Some API are being eliminated. The Triedit DHTML control is an example. I believe the underlying question here is, is there a problem with using the Win32 API in Vista. This question is still valid regardless of version of ...Show All

  • .NetProgrammer Wait for a file to be created

    I want to wait for a file to be created and when it has been created I want to move the file to another location. The problem is that the file is still being created when I try to move or copy it. My code: With Timer1 .Interval = 30000 .AutoReset = False .Enabled = True Dim PDF As String = Path.GetFullPath(Export) + "\" + Path.GetFileNameWithoutExtension(Source) + ".pdf" Log.AppendLine( "PDF File: " + PDF) While Not File.Exists(PDF) And Timer1.Enabled = True 'Wait for file to be created End While Timer1.Enabled = False If File.Exists(PDF) Then File.Copy(PDF, Dest) End If Try File.Delete(PDF) Catch ex As Exception ...Show All

  • Scott Chang TcpClient.BeginAcceptTcpClient / Socket.BeginAccept / all other variations...

    I've been having a problem with the use of any of the async methods of TcpClient, Socket, etc eating >95% cpu after receiving the first connection. I've been working on this for over a week now and I'm unable to find references to this issue anywhere. I've tried every way I can think of to work around this problem. Even if no data is sent or received on the connection....or if I close the received connection -- some unknown thread uses all the available cpu power after the first connection occurs. I created a small project that reproduces the problem -- I've zipped it up and posted it here: http://www.profitfuel.net/TcpClientProblem.zip If anyone knows how to fix this, please let me know. Thanks, - Joshua Garvin ...Show All

  • we7313 For Each Statement

    I am using For Each ctrl As System.Windows.Forms.TextBox In Me.Controls ctrl.Multiline = True Next It gives an error saying Unable to cast object of type 'System.Windows.Forms.LinkLabel' to 'System.Windows.Forms.Textbox'. I do have a LinkLabel on my form but why is it even trying to cast it The statement should only look for objects of type System.Windows.Forms.Textbox, right Thank you for your help. Troy L Hello Troy I believe this is what you want: For Each Item As Control In Me .Controls If Item.GetType Is GetType (TextBox) Then CType (Item, TextBox).Multiline = True End If Next When iterating through the form's controls collection, all child controls are returned w ...Show All

  • _joe Convert C# to VB 2005 - Problem using inpout32.dll

    Hi friends! I have this problem to convert this code to VB.net or 2005 Fantastic! thanks friend! works perfect! thanks a lot! By the way, here's a great online tool for converting C# <--> VB.NET: http://carlosag.net/Tools/CodeTranslator/Default.aspx . I use it all the time. < DllImport ("inpout32.dll", EntryPoint := "Out32")> Just fyi: you have two options in VB: 1. The .NET DllImport attribute approach (this is the option produced by our Instant VB converter): e.g., <DllImport("inpout32.dll", EntryPoint:="Out32")> _ Public Shared Sub Output(ByVal adress As Integer, ByVal value As Integer) End Sub 2. The tradi ...Show All

  • manu.aretuseo Not able to save data to database

    I am thinking that this is actually a very easy issue, but I can not figure it out and am hoping someone can help me. I have a database setup with no data yet. I am able to connect to it and everything fine through Visual Studio/VB 2005. I built a Windows form that I want to use to Add records to a table. I followed examples from books on doing this by taking the "Data Sources" table and dragging it onto the form. When I run the the project, the form comes up with the add record button active. I click that and add data, skipping over the auto-increment field. The Save Data icon never becomes active and if I click on the Add New icon again, I get an error about the auto-increment field not being allowed to be null. When I ...Show All

  • Aing_d How to initialize a structure in VB and how to create an instance.

    Hi. I have 2 programs which are: a DLL in C and a VB application that uses DLL functions. Flow: The VB application calls the functions in the C DLL and also VB aplication passes some arguments to the functions of the C DLL. My Query: I have a structure whose pointer has to be passed as an argument to the DLL function.How can we initialize a structure in VB. Is there any way to pass the instance of the structure(for example in C we pass the pointer to the function to access all the members of the structure) Eagerly waiting for the reply. Thanks in Advance Hi. I am currently working on VB 6.0 which doesnt consist of all the functions tha you have mentioned in your reply. I'm assuming you just want to pa ...Show All

  • Alpedk Me.count in System.Collection.CollectionBase returns 0 when form is close. HELP

    I have a class ButtonArray which inherits System.Collection.CollectionBase, inside the class i have a clickHandler for the button. Public Sub ClickHandler( ByVal sender As Object , ByVal e As System.EventArgs) Dim frmLogin As New frmLoginComputer frmLogin.Show() frmLogin.PassValue( CType ( CType (sender, System.Windows.Forms.Button).Tag, String )) End Sub I have also a form which is named frmLogin that contains the PassValue Function Public Function PassValue( ByVal compnum As String ) As String compnumber = compnum txtPCNumber.Hide() txtMemberID.Focus() lblpcnum.Text = CType (compnumber, String ) lblpcnum.ForeColor = System.Drawing.Color.Orange Return compnumber ...Show All

  • DimmuZangetsu Read/Write Decimal Value to File Problem

    Hi, I'm having a problem with writing Decimal values to file and reading them back again. For some reason, the last digit is truncated when I read the value back again. Take a look at the following code snippet. Dim Value As Decimal = 0.1234D FileOpen(1, "test.dat" , OpenMode.Binary, OpenAccess.Write, OpenShare.LockReadWrite) FilePut(1, Value) FileClose(1) Value = 0D FileOpen(1, "test.dat" , OpenMode.Binary, OpenAccess.Read, OpenShare.LockReadWrite) FileGet(1, Value) FileClose(1) For some reason, when I read Value back again, it is 0.123 instead of 0.1234. The '4' is truncated off the end. It is not a rounding issue as this is a Decimal type and it truncates any digit off ...Show All

  • Nodnarb501 Upgrade Wizard Error - SSTab

    Hi, I am attempting to upgrade a working VB6 project to VB.Net 2003. I am using multiple forms in the project and a couple of them use the SSTab control. When the Upgrade Wizard attempt to perform the conversion I get the following message... Upgrade failed: Exception occurred: The referenced component SSTab is missing a design time license. I have tried registering the ocx on the system that I have 2003 installed on, copying the ocx to the folder where the source code is and neither has cleared the error message. Any help resolving this will be greatly appreciated. Bruce Hi, Did you ever find a resolution for this I am getting exactly the same problem and hoped you might have found a workaround. I am going to ...Show All

01234567891011121314151617

©2008 Software Development Network

powered by phorum