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

Software Development Network >> Visual Basic

Visual Basic

New Question

Managing systems from a common system
Windows Service - Out of Memory Exception
Adding Controls Dynamically
Watching a process.
General Array Questions
need help with offsets for LayoutKind.Explicit - unravelling a returned struct from unmanaged into managed
Service Programming
New to databases in VB
releasing resources
Dochostuiflag_enable_forms_autocomplete

Top Answerers

Octopus384
enric vives
maheshkg
aschaeffer
Sreenivas amirineni
crazy_foo
Rapper
Jassim Rahma
pwhitaker
Steve Hoff
sitemap
Only Title

Answer Questions

  • Devo64 Selection of item in dropdown not revealing subsequent dropdowns in webbrowser

    Hi there, I'm sure this is a really dumb question but I'm new to webpages etc... I'm trying to fill in data on an online form which when first loaded contains nothing but one dropdown box. When a value is manually selected in that dropdown in the webbrowser, it reveals a second dropdown box. However, when I set the value of the first dropdown programatically (webbrowser1.document.all("ID").value=x) the second box does not appear. I have tried the Invokemember("submit") solution posted elsewhere in this forum, but it does not work as that method is not supported by the "ID" element. Any help would be greatly appreciated as I've just about pulled all my heair out :) Thanks in advance ...Show All

  • vsto-newbie Dead Keys and KeyPress event

    Hi. I am designing a program to convert normal latin/american characters to cyrillic characters when a certain key is pressed, for example, when I press a letter in my keyboard, the program checks which letter was pressed and accordingly converts it to a specific cyrillic letter defined by me (Yes, I have a huge Case statement for each keyboard letter). I'm currently using the KeyPress event to do this. Here is a brief bit of example that is working, so you can see what I mean: Private Sub frmMain_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress LatKey = e.keychar Select Case LatKey Case "q" CyrKey = " " Case "w" CyrKey = " &q ...Show All

  • GeoB Excel VlookUp Problems

    Hello, I am wanting to use the VLOOUP tool so when i select a certain item, e.g. a TV, it brings up the description of that item, the price of that item and the image of that item. I have managed to make it show the price and the description. However the image does not show up, it only bring up a Zero in the box. If you have any ideas on how to use images with VLOOKUP would be much apriciated. Many Thanks Lee ...Show All

  • jermaine88 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 Ok...here is my code line that crashes... If Me .DataSet.Tables( "tblCodes" ).GetChanges().Rows.Count > 0 Then ...Show All

  • tcarff Two-Way Communication Between DHTML and Client Application Code

    Hi, I'm using a WebBrowser object in a form in my Access 2002 project. I am making a feature which pulls book information from web pages and puts it into the access database. I want to do this the following way: Since websites often change their structure, for each site I want to make a reference to the element on the page that I want to pull the data from. I will have the database pull the data from the DOM based on that reference, and if the page layout changes, I can change the reference. For example the "List Price" data will be at document.body.childnodes[1].childnodes[2].childnodes[3].innerHTML This is also necessary because that node has no associated name or id. I've made the javascript code to retur ...Show All

  • alka_mehta how to Extract the current word

    hi there i am making an editor and i want it to autocolor some words so i done kinds of text search and it looks like nothing is flicker free so i wanna do something new here it is : i wanna search the current word and check if it is from the keywords or not and then color it so any ideas of a code for that i wanna split it for the text  not select it Thanks In Advance WAT or you can use a webBrowser control, set it text with html font format. Private Sub WebBrowser1_GotFocus( ByVal sender As Object , ByVal e As System.EventArgs) Handles WebBrowser1.GotFocus Me .WebBrowser1.DocumentText = "asb <STRONG>asdf</STRONG>& ...Show All

  • Bollwerk Raster Image Formats

    does anyone know how to access an image in a " Raster Image Formats" and display it in a picture box in .net 2.0 What image format specifically are you having trouble with Most raster image types can be loaded directly using New Bitmap("filename") or Image.FromFile("filename"). I found out last night that the format was LEAD Raster image. Downloaded thier .Net control for eval and it worked, just trying to convice my boss of the value of the tool. Matt ...Show All

  • Brett H. Call EXE method from DLL

    Hi Is there a way that I can call a method in an EXE (managed code, VB.NET) from a .NET DLL by passing a reference to the instance of the EXE Multiple instances of EXE might be running and loaded in memory and I need the DLL to invoke a method within the running instance by passing a reference (such as the application title, window handler etc). In case you are wondering why the DLL is calling the EXE method and not the other way around, it is because this DLL is like a wrapper class and the method that invokes the method in the EXE is actually called from an Access VBA module. TIA Is it possible to do this without remoting It seems like overkill to do this via TCP. My situation is this. The user opens an instance of the ap ...Show All

  • MatthewVincent pls give me the simple source code for vb progress bar

    thnks edel There are several ways to control the value of the progress bar...drop one on your from from the toolbox and then: Me . ProgressBar1 . Maximum = 100 Me . ProgressBar1 . Minimum = 0 Me . ProgressBar1 .Step = 1 Me . ProgressBar1 . Increment (10) Me . ProgressBar1 . PerformStep () Me . ProgressBar1 . Value = 20 ...Show All

  • Raghu_das Magic Number???

    I'm trying to decompress a ZIP file using VB 2005. When calling the Read() method on a GZipStream object I get this error message: "The magic number in GZip header is not correct. Make sure you are passing in a GZip stream." I think I'm doing everything by the book. What is this magic number A 'Magic Number' is usually a fixed value, and often appearing somewhat arbitary, possibly indecipherable. For example, a line of code may have: If X = 31 then 'Do Something End If In this case, 31 is a 'Magic Number': It has no obvious meaning (and as far as coding is concerned, a term of derision). Files (of different types) often have the first few bytes set to certain values ...Show All

  • bshive get { return (int)this["Attribute1"]; }

    Is the following the equivalent vb.net Get Return CType ( Me ( "Attribute1" ), Integer ) End Get Thank you, -greg Thank you for the discussion. I just found this msdn vb.net/c# code sample equivalent as given on how to "To create a custom configuration section handler" ' Add declarations for child elements and attributes like this: '<ConfigurationProperty("<propertyName>", <named parameters>)> _ 'Public Property MyAttrib1() As <type> ' Get ' Return CStr(Me("<propertyName>")) ' End Get ' Set(ByVal value As <type>) ' Me("<propertyName>") = ...Show All

  • MrPerez Add connection wizard fails with Access database

    I have the RTM version installed. I am quite puzzled at this wizard. It works fine with SqlClient. But for Access databases, this wizard completely fails. In this wizard, I only have one option to do - setting the ConnectionString. I set it to Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\path\abc.mdb, which works fine in my code. But when I click OK, it complains: --------------------------- Microsoft Visual Studio --------------------------- Format of the initialization string does not conform to specification starting at index 0. --------------------------- OK   --------------------------- And more, the Advanced button is disabled and the dialog does have the same funtionalities as described in MSDN ms-help://MS.VSCC.v80/MS ...Show All

  • JDavide Trouble creating new object (picture box) while the project is running

    What i'm trying to do is during a certain point in the program i would like it to create a new object (picture box in this case), and then likewise remove it when its use is over. This is so i don't have to have many picture boxes pre-placed on the form (though not visible), and can just add/remove them as they are needed. I hope i was able to explain that right . Awesome, that did the trick perfectly, thanks a bunch! Hi, try this to create and add a PictureBox to your current form: Dim pb As PictureBox = new PictureBox() pb.Image = ... ' set the image and possible some other properties to setup your picture box me.Controls.Add(pb) ' I assume you are in a method ...Show All

  • Colin Fawcett VB6.FixedLengthString(intBufferSize)

    When converting VB6 code to VB 2005, I get some conversions that are in the form "VB6.FixedLengthString(cintBufferSize)". This usually occurs in a Type declaration where a string has to be of a certain length. What does this mean, and what would be the correct format to use in a Structure in VB 2005 Thanks, Mike glad I could help! if a string has to be of a fixed length, you can either: 1) use a stringbuilder and specify a specific capacity (and best practice to do this for handling strings) 2) take a look at this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvbpj01/html/gs0601.asp I guess from reading it, you can specify the "space" length: Dim theStri ...Show All

  • Derek at Potters Clay User Control problem

    I have a UserControl which basically shows in a textbox the content of a row in a table relationally linked to another table in a database and also a combobox containing the contents of that second table. This mean that as you travel through the main table you can see what the linked text entries are and have a combobox when entering a new record. I started the table in VB.NET 2002 and upgraded it to VB2005 Express and have been using it successfully for some months.So, it has saved considerable code and added to my VB skills. However, having recently discovered the MaxDropDown size property for the combobox I wanted to add a line to the UserControl to fix the MaxDropDown size to be the size of the records in the table it accesses. T ...Show All

232425262728293031323334353637383940

©2008 Software Development Network

powered by phorum