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

Software Development Network >> Visual Basic

Visual Basic

New Question

how to handle html's select with webbrowser?
My.Application.Log - deleting or re-starting that file
any way to NOT break on a very specific com exception
How to create DataColumn object at runtime
Weired Problem VB 2005. Slow Datagridviews after working with the code
please HELP with very simple problem
HTML Help Workshop
Adding a default excel file to project
Can't find solution ANYWHERE
Word Interop creating Tif's on some machines but not others

Top Answerers

smp
Orest Bolohan
Alex Simkin
tonn
mukthi
XImplosionX
KZG
PaoloZ
George Waters
dmatthew
SIG for
Only Title

Answer Questions

  • turnbui array allocation vs. memory available

    When creating or redim'ing arrays, how does one tell if it was successful What if there wasn't enough memory available I can't find any documentation of an exception thrown when creating or redim'ing an array that needs more memory than the running system has available. Isn't that a real possibility What am I missing Steve if you wrap it in a try catch block and catch the exception if it was not successful. There are two ways of looking at memory (Physical and Virtual). For the most part with windows application, the memory is virtual which means you machine can use more than the physical RAM in your machine. It will create swap physical memory in out to disk when it it has to (somet ...Show All

  • Cosmin Nicolaescu Iterating through a list of folders

    Hello all, SUper Noob here. I have a very basic question regarding iteration through a list of folders that I need to search. The object of this program is to look for files older then 10 days old in a given set of folders. As much as I dont mind doing if statements for each folder object I specified, I would like to be able to grow the list and not have excessive code. Anyway, any and all suggestions would be greatly appcriciated. Thank you and take care. This is what I have now: Sub Main() Dim fso, Efile, EFolder1, Efolder2 fso = CreateObject("Scripting.FileSystemObject") EFolder1 = fso.getfolder("C:\temp2") Efolder2 = fso.getfolder("C:\temp3") For Each Efile In Efolder2 ...Show All

  • Jeanne P Word.doc

    Is it possible to open a word.doc in a RichTextBox and if yes, how Thanks for the that weirdbear, What you suggest would work for what I want, so if you could please show me that would be great. I am not sure how anyone is going to open word document reading that article // however i just rated the page 1 on a scale 1 to 10... However the problem still exists Looking for answers ... how to open .doc files in vb.net Pointed me in the right direction. below is what I have to open a Word.doc. Imports System.IO Imports System.Runtime.InteropServices Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Han ...Show All

  • zdrae Highlight Flexgrid

    hi, i need to search in MSFlexgrid. I'll give the input in a text box and on clicking a button i hav to highlight the row of that name in the MSFlexGrid. Thank You! Hi One method may be to iterate the rows in the grid, locate the one with the column value that you are looking for and set the grids active row index to the appropriate value. Something like this (I am not familiar with the flexgrid so the property names may be wrong) Richard for n as integer = 0 to grid.rows.count - 1 step 1 if not grid.rows(n).column("columntosearch").value = searchvalue then continue for grid.rows.selectedindex = n exit for next ...Show All

  • Alexey Rokhin Arraylist acting like a Linked List

    Hello, I have been working on this all day and can't tell if this is a bug or an intended funciton of an arraylist. I don't believe I have ever run into it before. I have an arraylist defined within a function and I need to add objects to it. I pass in an object to the function, update the object's properties, and add it to the arraylist. Then I update the object's properties again and add it again to the arraylist. The problem is: When I update the variable's properties before adding it the second time, the arraylist's first item is also updated! I don't specifically reference the arraylist's first item... it's just getting updated when I modify the original object. I can't figure out how to get around this, since I need to a ...Show All

  • nares need some help with the menuStrip!!

    I need help with a few things I am a begginner so sorry in advance if this is dumb question using the menuStrip i have made menu with like so: File Screen 1 Screen 2 Screen 3 Screen 4 Exit for each "screen" i will use a different form my first question: I want to know how to select a different form so when say i select screen 2 my screen 2 form will appear (from another form which i created) my second question on the last part of my menu strip i have "exit" i want to know the code i have to write for it to exit the application .Also for it to include a confirmation request using a MessageBox with an appropriate action taken depending on the users response. ...Show All

  • maest Error when adding a reference to the main project in a solution

    Error 1 Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0'. PerfWSService I get this error when I add a new Windows Service project and then add a reference to the main project "PerfWS". I can not figure out why this is happening I tried everything and it still does not work. What options do I have to make this thing work properly Is there someone else I can contact that is able to help me with this in more detail Thanks, At this point I'm thinking it's either something conflicting in your project file for the main project or solution file. If you feel comfortable doing so, can you post the contents of your solution file and main project file 1. VB2005 2. ...Show All

  • watch is Changing ConnectionString at runtime

    In my application, i am not sure where will be the database. So i thought to put the connection string in app.conf file. So that i may read it runtime and create connection. Working good. But what if i have to change the connectionString define in app.conf at runtime It may not be necessary that i must use app.conf, you people can suggest me one better approach so that i may not be dependent on databasestring. It could be created/change at runtime. Hi Actual user scoped settings are not stored in the app.config file. This file will contain the default initial value for the setting only. When you call the Save method, user scoped changes are stored in a config file located under the user's application data directory, and this ...Show All

  • Quentin Mayberry Printer compatibility library is available now.

    If you used to use Printer for printing tasks in VB6 and plan to migrate to VB.NET, it's a good news for you. It only need very minimum of code modification) http://msdn2.microsoft.com/en-us/vbasic/bb219077.aspx In most of the cases, only below steps are needed to take. 1. Open the application in Visual Studio. If a Visual Basic 6.0 application has not yet been upgraded, opening it in Visual Studio will start the Upgrade tool. 2. On the Project menu, click Add Reference . 3. In the Add Reference dialog box, on the .NET tab, click Microsoft.VisualBasic.PowerPacks.Printing.Printer , and then click OK . 4. In the Code Editor , add the following statement at the top of the module that contains you ...Show All

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

  • Rafer vb duplicate form

    i have been lookin for a refrence on how to get form to make a copy of itself on a button click. without having to make multiple forms in my project. like say i want to open 6 forms and want them to be the same as form 1 i wouldnt want to have to make 6 diffrent forms in my code just to that. can you help your right that gave me 6 forms simialar to a flooder not what i intended but is a good refrence to go by. thanks Ok now i understand what you actually wanted:P you wanted to duplicate a form from where you click that button :)... and it was simple as you did with smal modification :) good try... ok i reviewed the code and tested it with a simple cahnge i was ...Show All

  • Gordon Bell GDI newbie help

    I am jus beggining to work with GDI with visual basic. Trying to draw a line with the system graphics, I get a nulll exception error. Dim bb As System.Drawing.Point bb.X() = x_plot bb.Y() = y_plot hit.DrawLine(Pens.Black, x_plot, y_plot, 580, 195) I get the error on hit. what I am missing. Thank for help You want to implement the PictureBox1_Paint event to display the graphic. Something like: Private Sub PictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint '--- Hit the ball out of the park: e.Graphics.DrawLine(Pens.Black, 0, 0, 100, 100) End Sub You need the new operator to create the Point in ...Show All

  • ItsMe!!! Illeagal Characters In Path Error.

    Hi, I have this error, Illeagal characters In path. I figured out it happend when the FILE NAME had spaces in it, so It took me one week to make it change the spaces to "_". In the debug I didn't have the problem any more. Now I installed the program, and it happend. I don't know the exact line, but if it's because of space it's in the Folder's name. SPACE ISN'T AN ILLEAGAL CHARACTER! Why does it happen Is it a bug in VS How can I fix it Thanks. The Error Message is: ************** Exception Text ************** System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path) at System.IO.Path.GetFileName(String path) at System.IO.File ...Show All

  • Kesava PictureBox1.Image.Save - Only .PNG Works Properly

    I am able to save images from a picturebox in the .png format properly, but not using .jpg or .gif formats. What I get is a black image only with .jpg and .gif. The picturebox has a white background with text and lines on it which I generate via VB coding. I am running Win 2K and VB 2005. Any suggestions Thanks, Titus505 code example: GraphicOutputs.PictureBox1.Image.Save( "c:\graphics\" & TextBox1.Text & ".png" , ImageFormat.Png) No, I don't think this is a bug... something else is going on here... Try this: Dim img As Image = Me .PictureBox1.Image Dim bmp As New Bitmap(img.Width, img.Height) Dim gfx As Graphics = Graphics.FromImage(bmp) gfx.DrawImageUnscaled(img ...Show All

  • yanivpinhas Problem with GetChanges() from a DataTable Object

    I am trying to find out if a DataTable object has any changes that need to be saved to it's SQL Database using the Update() method. I looked throughout the properties of the DataTable object and can't find a Dirty property. But I did find a GetChanges() method. Problem is whenever I execute the GetChanges() method, which claims to return a DataTable of records that have been modified, I get the following error: MissingMethodException was unhandled No parameterless constructor defined for this object. Does anyone know why this is Or better yet, anyone know how I can accomplish what I am trying to do How are you calling this method...please show the local code you are using! Are you calling 'AcceptChanges' before h ...Show All

141516171819202122232425262728293031

©2008 Software Development Network

powered by phorum