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

Software Development Network >> Visual Basic

Visual Basic

New Question

Changing Resolution
My Namespace
How to scroll content in an OLE
Deploying help file
How to secure sensitive data in connection string?
How to use Operator in Generics Method?
Is there any way to create DXF files from within VB?
Need to show a Simple Chart
Strange data in FileWriter output (i??)
Select Case statement being evil

Top Answerers

amendez
JWhite
CoreStar2000
ReneeC
zand108
tom_7
Tej62007
LarryETL
Tiago Nóbrega
oniluap
MacInTouch
Only Title

Answer Questions

  • Angel David Lara YOU ARE A GENIEUS--Reed Kimble --THANK YOU SO MUCH Just a Minor Ajustment to make it work MAKE E.CANCEL = FALSE ---

    I have this code whre I want to open a new window within browser1 of my form8 Instead I loose control of the browser and by loosing my session Private Sub WebBrowser1_NewWindow( ByVal sender As Object , ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow e.Cancel = True Form8.Show() 'Form8.WebBrowser1.Name = what goes here I am not sure what to do here 'Here I am forcing the opening of this specific website/I want to open whatever url is clicked Form8.WebBrowser1.Navigate( http://www.accountingonline.us/invoice/index.php page=open ) ' Form8.WebBrowser1.Navigate(sender) this did not work End Sub The solution above catches window opens and set the a ...Show All

  • Ronaldlee Ejalu Simple Bound Textbox Can't Retain Empty String

    I have some simple bound textboxes on a windows form. My dataset has parent and child tables. Some of the textboxes are bound to the parent data and others to the child data. When any child bound textbox loses focus after I've cleared its text it returns to its original value. For example, if I want to edit a child bound textbox value from being "test" to "" as soon as I leave the field it returns back to "test". I can add or remove part of the text without a problem such as "test1", but once I completely clear it, it returns back to original. I want to be able to clear the textbox so that I can save an empty value if need be. I have found a workaround solution at the following web site, http://w ...Show All

  • Madok File creation DateTime changes?

    I have an application for updating the client files. This app reads the files from the server and compares the file creation DataTime with the files in the client machine if there is a change then it downloads the new file. The problem is when you copy the file to the client machine, it's creation datetime changes to a random date. Which parameter can I rely on if the creation datetime and the last write date of file always changes Thanks for your help Dear Ala, I don't find any parameters to copy with the same date and time. B ut you can use System . IO . File . SetCreationTime () to set file creation date and time after copy with the server file date and time. System . IO . File . ...Show All

  • Adam Weigert Word automation and System.IO.FileNotFoundException error

    Hello, I'm having problems with an application that is automating word. I'm using VS .Net 2003, (Visual Basic), WinXP Pro, Office 2003. Here's what I doing: Imports Microsoft.Office.Interop ... Try Dim oWord As New Word.ApplicationClass ' Place call to COM object here. Catch ex As Exception MsgBox(ex.ToString) ' Display information about the failed call. End Try Here's what I'm getting: 'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded. 'path test': Loaded 'D:\Development\Visual Studio .NET\path test\path test\bin\path test.exe', Symbols loaded. 'path test.exe': Loaded 'c:\windows\assembly\gac\system.windows.forms\ ...Show All

  • Wilhelm Knutsen Opening a form

    VB6 is total different than this! Learning a new platform, so please excuse me for my mistakes! I have a form which needs to show one record(thats all that is needed-its a table that carries the end-users info only-so only one record). The form has got the right datasource. I maybe opening it wrong to show the data. I have got a command button on my main form to open the "Company" form, with the following code; Private Sub Button5_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Dim MyForm As New Company MyForm.Show() End Sub The form opens, but with no data, there is data there because it is being used on the main form. Where did I go wron ...Show All

  • Casper Thomsen Design question reading data

    Hi I sometimes include reports and charts in my apps. If I need fast cube like functionality I load lots of data into memory from the db. Then I use nested For Each... to read the data form the objects. Sometimes I have 4-5 levels (first object have a collections and each object in that collection have their own collections and etc....) I have never had any problems doing this, but clearly this is not best practise (first of all since the number of transactions is unknown). I have tried to find a vb.net sample code on this but no luck. Could someone point me in the right direction. Thank you. Hi imnotbillg, It's hard to say what a best practice is. The reason this is hard to say is because there are many variables to deter ...Show All

  • kennm 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 No, ByValTStr is only used within structures when you want to declare a fixed size char array. If you want to send the full 128 bytes as a "char *" paramet ...Show All

  • CezaryK83 Setting BackgroundWorker Priority

    Is there any way to set the thread priority of a backgroundworker like you would if you coded the thread yourself There is not a priority method or other means of setting the priority of the backgroundworker component. If the priority is needed then you must create the thread and ist process manually ...Show All

  • JD Li How to display the response from server coming from a request, to the WebBrowser ?

    Hello, Further a request to server I get a response that I save in c:\\... That's fine ! But how I can visualize this response through Webbrowser I have tried the following, but something is wrong ! Dim response As HttpWebResponse = request.GetResponse() Dim reader As New StreamReader(response.GetResponseStream()) request.Credentials = CredentialCache.DefaultCredentials Dim oUri = response.GetResponseStream Me .WebBrowser1.Url = oUri Many thanks for your support ! In fact my problem is now solved through an other way ! the case is now closed Thanks again plz can you tell me how you solved it plz ...Show All

  • Bubo Trouble accessing module from custom user control.

    I have a seemingly strange situation. I have module in my solution called IO. I use it, among other things, to share some variables amoung classes. In it I have a sortedDictionary called variables and properties (readonly) getVariable and (writeonly) setVariable. I have been able to use these properties fine in all of my classes until I try tried doing so on a custom control. My custom control exists and is already placed on a form. I then add the IO.getVariable(varName) statement to the custom control and complile. It compiles fine, but once I go back to the form on which the custom control is already placed, I get an error saying that "object IO not set to instance of object", and the form will not show. Since IO is a ...Show All

  • felix1000 Retrieve milliseconds from MS-Access Date field

    Dear Readers, I have a Access database, which stores the time of each record in a date/time field. When I add a record to the database using the INSERT query, the time is added correctly, including the milliseconds parameter. When loading the parameter value with the time I can confirm this milliseonds component is present and correct. In my report I provide a list of records, which displays the time with it milliseconds component. The time is correct, but the problem is the milliconds is always 0. It looks like the database cannot store the time in hours, seconds and minutes, but not milliseconds. Is it possible to store the milliseconds component in a date/time field of a Access database . Thanks Ma ...Show All

  • js8425 How to catch duplicate primary key

    I have tried different things to do this, but with no prevail. I am wanting to catch a duplicated primary key. I have tried several of the execption like partial code here Try Me .Validate() Me .EDFTableAdapter.Update( Me .DataSet1.EDF) Catch DNE As DuplicateNameException MsgBox( "The record for " & Me .ENameTextBox.Text & " already exist." End Try and its simply not working. The database does have constraints for primary keys and that is the error that is being thrown in debugging instead of through a message box. Where did I miss up Davids Learning try .. catch ex as SqlException if ex.ErrorCode = SomeDuplicateKeyErrorCod ...Show All

  • sl0140 running a function (w/ return) in a seperate thread?

    hi all, i have a piece of code that tests a db connection and returns a boolean value. this may take a while, so i have made a form with a marquee-style progress bar to display while testing. problem is, the form shows, but the controls (progress bar) don't. i can't run the testing function in a seperate thread ('cause it has the wrong signature - i hear this is completetely impossible ) and when i try to run the form.show in a thread, this doesn't change anything. i also tried to run this whole thing below ( except the form showing part) in a different thread but then i get exceptions because the other thread can't access the controls. i'm pretty new to this whole thing so it's probably me being stupid, but anyway. my code (i ha ...Show All

  • Charles Tam populating an Access database using visual basic 2005

    I am trying to create a new employee application that gets input from a user in text boxes and then take that information and populate a database in Access that will later be pulled to the Track IT! database on SQLserver2005. How do i do it Thank you. THANK YOU!!!!!! Good Answer! correct. Basically if you have 5 fields in a table, then you need 5 parameters but it depends - if some of the fields are left to be nullable, in other words data in that field is not required, then you only need as many parameters as you like. so if i had 5 fields and all of them were set to be do not allow nulls (or whatever the MS Access equivelent is of this) then I would h ...Show All

  • ble0t set up and query database with 2 text and 1 image value

    Hello Everyone, I need to write a code where i can save three things: all the files in a folder with full path (fullpath), the name of the files without extension and full path (FileName), and the icon (icon) of it into a database, and after this all, i need to query the database according to the FileName. When typing i'd like to add all the database items that includes the string i am searching for showing their icons also. On starting the app, I need to load the database from a file and when exiting it, i need to save the database into the same file overwriting it. I need this because if i want to search a folder with a lots of files it takes too long to find something but i think from a database it'd be more faster. If anyon ...Show All

575859606162636465666768697071727374

©2008 Software Development Network

powered by phorum