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

Software Development Network >> Visual Basic

Visual Basic

New Question

Retrieve list of Data Providers
Help!!! VB 2005 form size changing problem
String Functions
Refractor install fails - error 1722
Error when adding a reference to the main project in a solution
Recording sound from microphone in VB 2005 EE
Array starting at 1
Error codes
Generating Reports using SQL Server 2005 from a VB Application?
How to insert data (probably simple question)

Top Answerers

M Thomas
CruzPedro
EWoodruff
Wil Burton
jatwood
Sransom_au
Mohan1
BradDaBug
Peter Lillevold
Joseph22
sitemap
Only Title

Answer Questions

  • shiuja World clock

    Hi, I am busy making a world clock program showing 5 clocks from around the world. I have a coupel of problems: 1. How do I substract hours from the system time Or is there a way to take GMT and substract/add to that time 2. If I run the program it will show my local time, but if someone from an other part of the world runs the program it will show his local time, and so the offset for other countries might be wrong... How to correct independent of location Thx for any tips you might have Dim LocalTime As DateTime = Now Dim UniversalTime As DateTime = Date . UtcNow Dim EasternTime As DateTime = UniversalTime . AddHours (-5) I use VB6 When I paste t ...Show All

  • Ruprect8696 deleting a particular line in a File(txt)

    hi everyone , i need a solution to delete a particular line(ptr currently seeks) in a file with out disturbing other lines. plz confirm that the file is not completly read again to achieve this. all i need is just removing the line which is pointed by the streamreader/writer Thanks in advance.. my code that i have tried : ' Dim detailAdd As String ' Dim DetailTxt As String ' DetailTxt = Me.txbdetails.Text ' Dim comstr As String ' comstr = chkmsg(selitem.Item(0).Text)' getting the selected item from the list vwer ' Dim seekPtr As Long ' Try ' ' Create an instance of StreamReader to read from a file. ' Dim str As String ' Dim sr As StreamReader = New StreamReader(filename) ...Show All

  • Visual C# Novice vb 2500 tcpListener accepting connections JUST FROM ONE ip address

    Hi guys! I've been using TcpListener and TcpClient classes (I read examples from on line help of Visual Studio 2005). I succeeded in making a tcp server that works quite well. Now I want that this server could accept connections from just one and only IP address (that I choose). Does anybody know how to make it I think it's a simple trick but I'm not able... Thanks for any kind of advise! Zingaro. ehm... sorry: *************** 'se la connessione proviene da un altro ip la ignoriamo e restiamo in ' attesa di un'altra connessione *************** this is italian language and it means: *************** 'if connection is from a different ip address we ignore it and ...Show All

  • jmc303 VS2005 connect from a pc to another ps'c mysql database

    Hello, I totally no ideas on how to do it. I has a network conenction in my office. The mysql database is store in pc-A. But i want to connect from pc-B to pc-A and retrieve it database. I do not want to have a duplicate database in pc-B. Is there anyone know how to open a connection between 2 pcs and access its database. Is't i need to configure the DNS server in the pc-B do i need to do anything else in pc-A Any helps would be greatly appreciated. smith Do you want to acces that clarion TPS file via a program written in Clarion or VB Clarion In your dct, table properties, full pathname, use a variable pathname, like "!GLO athname", then point that global: pathname to the tps on a shared folder on computer C. ...Show All

  • Jim Shipley WebBrowser Refreshing Problem

    I've got a WebBrowser control in my current program that, every minute and a half, loads a web page and parses some string information out of it. The problem is, after running for a while, it stops reloading the page; everytime it 'loads' the page, it loads the exact same contact the page had the last time it was loaded, although the actual page content has changed. Viewing the page in IE outside the program, I can see visually that the site really has changed; but the program continues only to see an older version of the page. Why is this happening, and how can it be fixed Note: the problem persists when I log on/off the computer, and when I restart the computer entirely. It doesn't happen for all pages being dealt with in thi ...Show All

  • GoDaddy please any one help me

    i want any code to compute the factorial of high numbers like 1000000 in aspeed way & didnt cause the break down of memory any bode cane help me mn_fci@hotmail.com mn_fci@yahoo.com How accurate do you want the final number to be If you're looking at a handful of significant digits, you can lower some accuracy and increase some speed. I am afraid that what you are trying to compute will require exponetial time due to the memory access it requires. So, there is no "fast" way to compute this. You can refer to this post over Code Project: A class for operations with Large Integer Numbers ( http://www.codeproject.com/cpp/largenumber.asp ) where George Anescu presents some algorithms for operations wi ...Show All

  • Hani Felemban Why do some keyboard shortcuts not work.

    I can only get some shortcuts to work. For instance, I cannot assign a shortcut without also assigning it ctrl, shift or alt. On the same note, only ctrl and alt work. When using shift it gives an error. How do I get around this. I also want to use shortcuts like: S instead of say Ctrl+S. Also, how do I assign the Esc key to a shortcut. Thank you. Troy L. Operator '=' is not defined for types 'Char' and 'System.Windows.Forms.Keys'. Also, It will detect the keypress if I hold shift while pressing 's'. Maybe it is looking for Upper Chars Troy L I believe you can change some and assign some to the IDE by going into tools > options > environment > Keyboard. whats stopping you from using the key down event and ...Show All

  • tnsgod831 Problem: "Interface not registered" message when executing a project on another pc

    Hello, I developed an application in Visual Basic with Visual Studio .Net 2003. The .exe file works fine on the development computer, but in another pc it doesn't work and shows me a message of an unhandled exception. I tried to debug it with CLR Debugger and the result was a message showing: An unhandled exception of type "System.Runtime.InteropServices.COMException" occurred in system.windows.forms.dll Additional informations: Interface not registered. In the host pc there is Windowx XP SP2, including .NET Framework 1.1. Can you help me Thanks. Hi, I fixed the problem making a setup project. Thanks for your support. Hi, In your devbox, can you see the ...Show All

  • Dietz Open file

    Hiiiii, How i can open file (word,excel etc) using vb.net (web base).. But not using response.redirect(namefile)... Please help me.. Thanks Jebat He is trying to open an excel file locally using the web application in VB. That's my take on it. The easiest way would be to save the excel as a CSV (Comma Delimited File) and parse it line by line. That way you can open it with file.opentext(filename). If your asking how to open word/excel files from a web page - then using process.start wont work as it will open the file on the server and not on the client machine which is what I assume you are trying to achieve. Your probably better asking this question o ...Show All

  • Michael Morris DataGrid Question

    I have a datagrid called dgrid in a form, and have made this code so far: Public Sub SetupDG( ByVal columns As Integer , ByVal rows As Integer ) For x As Integer = 1 To columns dgridSimulator.Columns.Add(x, x.ToString) dgridSimulator.Columns(x - 1).Width = 10 Next x End Sub   But i don't know how to change the columns so they are image columns (DataGridViewImageCoumn on the Column designer if i was able to do this via the Design View in VS.NET 2005), how do you do this And then set the images in these columns I thought i better post in here since i've figured it out. The new code does like this if anyone needs it in future: Public Su ...Show All

  • steveareno vb6->.NET 2.0 conversion 'ByVal sName As Any' argument for c++ 'char szName[128]' param

    what would be the appropriate .NET 2005 equivalent parameter be for this vb6 pinvoke declaration Public Declare Function foo Lib "foo.dll" ( ByVal sName As Any ) where the c++ argument for the parameter sName is is 'char szName[128]' Related question (I hope) I am confused as to when I should use 1. <MarshalAs(UnmanagedType.LPStr)> ByVal sVar as String rather than simply 2. ByVal sVar as String for cases where the vc++ parameter is char *sVar Thank you, -Greg Thank you for your patience Abel.  And  this application is going to be running on a 64 bit machine rather than the 32 bit which it has been r ...Show All

  • pgeeeee Newbie needs guidance on the next step past GUI--Importing Stock Data into App

    I'm taking a VB class for financial analysts, and we're tasked with constructing a progrm we can use on the job. What I'm trying to do is build a VB program that will take Stock and Company information from certain sites on the Internet and extracting that information into the program to do some research on a company before investing. I have some grand plans, but based upon what I have read/heard I'm starting by taking stock information from two websites (Yahoo Finance and Reuters) and populate several different tabs in this program I'm making (exporting to an Access database and Excel are also in the works, but I'm taking baby steps). I built the GUI with 4 different tabs that will house Earnings data, Trading Information, Company News, ...Show All

  • Mirricle inserting picture in datagridview

    How do i set the picture in my datagridview when i already set the column type to picturebox and the picture is in the my.resources folder. The picture is a jpg file and i've tried: datagridview.rows(0).cells(0).value = my.resourcess.mail But it only displays the red x picture (that signals that there is no picture in the picturebox) Now i dont understand what was wrong. Ive tried the " datagridview.rows(0).cells(0).value = my.resourcess.mail" again and it works Now it dispays the image.. Crazy.. I must have made an error earlier that i just didnt see.. Hi Guys, Can you share a "live" example I have VS 2005. I'm somewhat puzzled wi ...Show All

  • MaryOS How to create a docking/undocking toolstrip in vb 2005 ?

    Hi can anyone help me in creating a dockable/undockable toostrip in vb 2005 Shailendra Kumar Thanks i will try it and let you know about it. Thanks again Shailendra A toolstrip can be docked like every control, so it's just a matter of setting the .Dock property of the toolstrip to 'None' when undocking, some code to simulate grabbing the toolstrip and repositioning it, and some code to look out when the mouse is close to an edge of the form so it can suggest docking to it. Here's a working example, but you'll have to adapt it to your own needs. The ToolStrip seems a little quirky about mousemove events, so it may drop from your grasp occasionally. ...Show All

  • dagjo In the registery?

    I have written a program that requires a password to be created when it is first run, this is then encrypted and stored on the computer C:/Test.txt . the next time the program is run you enter your password, which is encrypted and compared against the encrypted password on file, and if they match you can use the program. I don't think storing the encrypted password as C:/Test.txt is a good thing, so where is the best place to hide it away, and how is it done Any help, advice or interesting articles will be welcome. Thanks Spotty, Don't think I can do it this way as the password entered by the user is the Key and IV to encrypt the password, as I don't know what the user will enter then I can not enter it ...Show All

8910111213141516171819202122232425

©2008 Software Development Network

powered by phorum