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

Software Development Network >> Visual Basic

Visual Basic

New Question

Determine the ID of a record from a Datagrid
Design Time Hide .Net controls
Apparent bug in cube root function for VB.net
Setting the value property of a Date and Time Picker Control Programmatically
Can i create pdf file with VB.NET 2003 without any third-party tools?
Assigning two properties two different values results in the same value on both. VS2003
using MATLAB in VB.NET
Performing operations on out of focus windows forms VB 2005
“My” Name Space and Violation of OOP Concepts!
Intellisense Development for a VB.NET Desktop Application

Top Answerers

Kirk.Clawson
MrPerez
SkyWalker781
mukthi
arashikage
Francesco Tattoli
bk13
cuberice
RainmanRam
zd84
sitemap
Only Title

Answer Questions

  • tequilatamm how to validate the data from textbox compare to DB (Window application)

    Using VB2005 Dear users, Could anyone help me with this How to validate a user's identity to the database details For example if a user type username and password in the textbox and to login. Must verify the user's name and password. Could anyone reply sample code/links asap well obviously you will have some storage place where all the user details are stored if its SQL Server then that is the code pretty much of retrieving details of a user/checking to see if they exist in the database. it would help if you can explain where you are saving data to, as you did say "database" which generally means either SQL Server or MS Access database As i am using VB2005, ...Show All

  • Álvaro Peñarrubia VB graphics

    I have 3-dimensional array to store the colour values of pixel of an image. How can I draw the image in VB.NET using the array values as colours for each pixel. I also do want to write it in a separate function rather than a paint event and also need to invoke the method from a another function or event. Pls also tell me how to draw a graphic on a specific component such as picture box without using the picturebox_paint method. Thanks manju You don't say what your array looks like. I'll just pick something logical. Here's a function to re-create a bitmap from the array: Private Shared Function CreateBitmap(ByVal pixels(,,) As Byte) As Bitmap Dim bmp As New Bitmap(pixels.GetLength(0), pixels.GetLength(1)) For x As Integer ...Show All

  • Manuk Date and time picker

    I want to be able to give the user a simple interface for picking a single point in time, then for that to be formatted as DD/MM/YYYY hh:m:ss and put into a textbox. What is MyBase.Load Add a DateTimePicker control to your form. In its valuechanged event, extract the DateTime structure from its value property and use it's ToString method (passing in the desired format) and add the result to your text box eg .. something along these lines dim dt as datetime = datetimepicker.value textbox.text = dt.tostring("DD/MM/YY hh:m:ss") Hope that helps Richard Hi Think of MyBase as a variable that points to the instance of a class that your class is inheriting (the base ...Show All

  • Captain Jack Compare speed of reading random(binary file) in VB6 and VB2005

    I ever created one project to read a random file(binary, not text) in VB6. It takes only 5 seconds to get all records(structure as below) and store these records in an array, but now i upgraded it to VB2005. I also use the handle-base method(fileget). Very miserable, it takes more then 30 seconds. I do not know why !!!!No any error, but i do not know why so slow!!!! Module1: Public dataarray(50000) as rec_info Public datacount as long Public Structure rec_info   <VBFixedString(8)> Public Data1 as string   Public Data2 as integer   Public Data3 as single End Structure Code: Dim i as long Dim file_num as integer = FreeFile() FileOpen(file_num,"xxx.dat",OpenMode.Random, O ...Show All

  • Mark 2334 Resize windowform1

    hi, i am new to VB.net(Windows application) how to dynamically increase/decrease control size when form size is increased/decreased by user i tried using tablelayoutpanel/Anchor/docking.i find it using very diffcult to use.(I think i dont know how to use it ) is there material available in online about how to use tablelayoutpanel/anchor/docking Thanks in advance hi i am sorry about that.. how to dynamically increase/decrease control size when form size is increased/decreased by user Thanks Sorry, number one, I forgot a line of code! That was one issue. As far as maximize not working, like I said, you'll have to play with it to suit your needs. In this case, switching to the SizeChanged event will wor ...Show All

  • abhas need info?

    Dear Friends, I got an error message of : " Object Reference Not Set To An Instance Of An Object ". From : Dim Pfl_GetATR, lngrep as integer Dim bufrep(255) as Byte Pfl_GetATR = SCM_GetATR(lngComPort, lngrep, bufrep(0)) 'Declaration Public Declare Function SCM_GetATR Lib "SCM_ScReader.dll" (ByVal ui_comport As Long, ByVal lngrep As Integer, ByVal bufrep As Byte) As Integer Notes: IMREADER.dll is build in VB .net 2005, But i'm working in Vb .net 2003. Can u help me out Thanks. dear dustin, i tried that way, but still same problem i got. hoping for ur next solutions Thanks. Try initializing your buffer. ...Show All

  • smartpi Copy text from Citrix session clipboard to local clipboard

    Does anyone have any insight into being able to transfer the contents of a citrix sessions clipboard to the local clipboard I have a VB6 app that retrieves data from an oracle server and displays it in a datagrid. Running locally the code: Clipboard.SetText strSomeTextHere .. obviously works fine. From citrix it doesn't. Using Ctrl+C works fine but it's not what the users want. Please ... HELP! Elton ...Show All

  • unknown311 Find what server a DFS link points to.

    I am writing a script to find out where a user is logged in. the script first looks at the users profile path and then passes that to code which queries LanManServer that the users profile is on for the sessions and looks for the users session on there. But this does not work with the DFS path i need to be able to convert the DFS path to the Server and share that it is on. Please help. Hi, Thanks for the reply but it appears you cannot use NetDfsGetInfo in a VBS script file If you can i do not know of any ways to call the api from the Netapi32.dll file thanks for your suggestions. You could use the NetDFSGetInfo Win32 api function. Check out its documentation here: http://msdn.microsoft.com/library/de ...Show All

  • Ravi KP need info?

    Dear Friends, I got an error message of : " Object Reference Not Set To An Instance Of An Object ". From : Dim Pfl_GetATR, lngrep as integer Dim bufrep(255) as Byte Pfl_GetATR = SCM_GetATR(lngComPort, lngrep, bufrep(0)) 'Declaration Public Declare Function SCM_GetATR Lib "SCM_ScReader.dll" (ByVal ui_comport As Long, ByVal lngrep As Integer, ByVal bufrep As Byte) As Integer Notes: IMREADER.dll is build in VB .net 2005, But i'm working in Vb .net 2003. Can u help me out Thanks. Try initializing your buffer. Dim convert As New System.Text.ASCIIEncoding bufrep = convert.GetBytes(Space(255)) Pfl_GetATR = SCM_GetATR(lngComPort, lngrep, ...Show All

  • maryz Need help converting parameters from vb4 example into .NET type

    I am trying to get the following external call into a .dll to work in visual basic.net(2005). I have an example done in vb4 and from vc++6 but I am not sure how to convert parameters to vb.net. The details are: Custom data types used below: Type QAddress Queue As Integer Group As Integer End Type Type ShowBuffer Version As Long TransferStatus As Long TransferSize As Long reserved(7) As Long Target As QAddress OriginalTarget As QAddress Source As QAddress OriginalSource As QAddress Delivery As Long Priority As Long Endian As Long End Type Global Const SHOW_BUFFER_LEN = 68 Type PSB TypeOfPsb As Integer CallDependent As Integer DelPsbStatus As Long MsgSeqNumber A ...Show All

  • Frank J DeFalco Help with sending data over a socket

    So im normally using the beginsend method with an async call to send some web page data over the socket, then once its done sending i close the socket. but on firefox i keep getting "The connection to the server was reset while the page was loading." and in IE the page cannot be displayed the page shows up for like 2 seconds so i know its getting it, but it just switches to that onc ei close the socket. any ideas Joshizzle, According to your description, I still cannot understand your problem very well. However, since you use the Beginsend method, I suggest you to pay more attention to this method. Although intended for connection-oriented protocols, BeginSend also works for connectionless protocols, provided that y ...Show All

  • John_Mac Form wating a parameter from another from

    Hi, i'm using VB.NET 2005. What i'm trying to do, is from one form, open anotherone and perform a search to SQL Server 2005 and the value selected return it to the first form. I actually do it, opening the second form, performing the search and when i select an item, call a sub in the first form sending the info, close the second form, and try to display the information in two labels in the first form, but the labels doesn't refresh. if i show the info retrieved from the second form in a message box, it displays, but the labels doesn't chage its text . . . Care to show us some code If it were me I would create parameters on the first form, create the second form doing the search and when you selec ...Show All

  • aureole changing reference Lib dll's depending on 32 bit or 64 bit compile

    How would I change this code to switch out Foo32.dll to Foo64.dll if I am specifically targetting a 64 bit machine Thank you, -greg Option Strict Off Option Explicit On Imports System.Runtime.InteropServices Module Module1 Public Declare Function SetValue _ Lib " Foo32.dll " _ (ByVal Index As Integer) As Integer 'something like #If xxxx Then Lib Foo32.dll #Else Lib Foo64.dll #End If Check out the CONFIG conditional compilation constant at http://msdn2.microsoft.com/en-us/library/swfss70d(VS.80).aspx. It will check the current setting in the Active Configuration Manager. (Could always use a Custom Constant, too.) ...Show All

  • Igor L. Kravchenko Windows service does work every 24 hours

    How do I set up a Windows service to do work once every 24 hours. I have read that using a loop that checks the desired time to the current time is a good solution, but I am wondering if there is a better way. I want to accomplish something similar to Windows Update. Hi Have you considered using Windows Scheduled Tasks in this scenario Is there any particular reason why you need to use a Windows Service Scheduled tasks will save you development time and avoid costly consumption of system resources by avoiding infinite loops or using timer objects. This is an ideal candidate for a shceduled task. Thanks Colin probably better checking it every hour if its a ...Show All

  • Mike Martin24365 Exposing ActiveX Objects and their members

    Hi, I am attempting to build my own ActiveX DLL that will be used as a "middleman" for programs needing to communicate with each other. Right now I am just trying to do a simple "Hello World" type method. There is a program I am using called Extend which has a block(module) that allows it to use any ActiveX object using OLE calls. It calls an ActiveX object's members by referencing their dispatchIDs. I've tested out Extend's block and it can easily get a Word, Powerpoint, and Excel document's member's dispatchIDs, but I cannot for the life of me get it to see the method within my ActiveX DLL. I found this page which talks about exposing an ActiveX object, but I have no idea how to perform the instructions provided. I am ...Show All

828384858687888990919293949596979899

©2008 Software Development Network

powered by phorum