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

Software Development Network >> Visual Basic

Visual Basic

New Question

How to sort a list from A to Z
VB 2005 Window Stay On Top?
Converting VBA to VB2005 problem (or my ignorance)
Array starting at 1
How do I make a variable available to another form?
Dynamically load a DLL in VB.net
Notepad program wants to write Fonts and Colors in XML.
VisualBasic... missing reference
Timer needs to count down and be displayed
reading information in files

Top Answerers

RhythMick
Justin Tang
Peter Feigl
Paul Stovell
XNA Rockstar
Bart1
Paul Tew
Lolchickenzor
Arcan
Auris
sitemap
Only Title

Answer Questions

  • Chandra4332 Finding Length of an Real Media Audio File

    Hi, I need to find out the length (i.e. HH:MM:SS) of a rm (Real Media) Audio File from my application which I made in Visual Basic 6.0. I don't need to play it or record it, just find out the length of the file. Please let me know how this can be possible. Thanks Amad As I said it is just an example to help you work it out. I do not have a RM file to play with in any format so I can not tinker till I get it, but that is where most of the fun of programming is in tackling these things. Also I have to hold my hand up to making a small mistake it is int32 not int16...sigh!, apologise. You can however see from the header file that the bytes following the header marker give the size of the header block, which might be differ ...Show All

  • Ronald de Feijter Inserting a Variable into a statement

    First off its been a while since I programed, so im relearning the slight abilities I had years ago. my question is, how do I insert a variable into a statement for example, here is what I have. For X As SByte = 1 To Form_Main.NumberOfPlayers tempplayer.PlayerName=FORM_newgame.TextBox_Player"X" Form_Main.Players.add(TempPlayer,TempPlayer.PlayerName) Next What I want to be able to do is take the names from Textbox_player1, Textbox_Player2, TextBox_Player3, etc, and add them into a collection. among other information. I can add them manually with a case statement based on the number of players, but that takes alot of code, if I could use a for statement that would be alot cleaner. ...Show All

  • Nagu Tab Control Bug in VB 2005 Express

    Hope This is right place for this question Apologies if not. Hi I have looked around the MS site to see if there is a fix for this bug. When I use the Tab Control Panel and place the tabs down the left or right of the control I cannot see the labels, it seems to work fine whilst tabs are at the top. O and the problem only seems to exist in XP Theme, if I change the theme back to old Classic it works fine. Regards Northhaven You correctly diagnosed this bug. Check this thread for a solution. Thank you, I will try that out ASAP. Add a new class to your project and paste this code (VB.NET): Public Class FixedTabControl   Inherits TabControl   Private Declare Function SetWindowTheme Lib "uxth ...Show All

  • SPECIALK_BC After further research on this topic....

    I don't need much, just the ability to send a one line msg on an event. The applet buys/sells stocks or options and that part works fine. Now I would like the applet to report the action to an IRC channel. The applet probably doesn't even need to have the connection persist because the computer is already connected to the IRC server and channel through mIRC. I can't even find any coding samples for this, so any suggestions would be appreciated. Indi For starters the IRC network is hard coded to the wrong net, and it doesn't auto-connect to a channel, which would be nice in this case. A simple connect, join channel, fire of one statement and disconnect is the desired effect. There is ...Show All

  • Aaron Oneal 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

  • Redmanmc filling a bitvector32 in a loop

    Dear all, I can fill a bitvector32 like this: Dim InBytes As Int32 dim i for i = 1 to 1000000 InBytes = i 'for example Dim InBitVector As New System.Collections.Specialized.BitVector32(InBytes) next i and then I can read out the individual bits (need this for a graphics conversion). Problem: this gets VERY slow, and I trailed that to the Dim InBitVector statement. Is there ANY way to assign an Int32 number to the InBitVector WITHOUT using the dim statement Thanks, Kees Yes, that is exactly the idea. Kesim Key, Everyone here is not a guy. it looks like to me as if you are interested in bit ...Show All

  • Ramanujam Sampath How can we see other applications open in windows and know when they are minimized or maximized

    Hi everyone I need to know if there is a way i can see other applications open in windows and know when they are minimized or maximized. So basically if there are five applications open like outlook, excel, word, a bowser, etc. How can i see this in vb.net code Is it possible then to know when that form is minimzied or maximized (event) Thanks in advance :) To get a list of the processes on the machine. Or if you looking for specific applications then there is a GetProcessByName method. For Each Pr As Process In Process.GetProcesses ComboBox1.Items.Add(Pr.ProcessName) Next I'm not sure if you can tell if the application is minimized or maximized easily though. ...Show All

  • HMote vb 2005 Tab(n) Printing

    I an trying to set absolute positions when printing a schedule using Tab(n). which I have successfully used in vb6 i.e. (info(0,i); Tab(4) ; info(1,i); Tab(15);) an so on. I can print with Spaces and Format but each are text length sensitive which do not register correctly in the printed schedule. The numerous books do not seem to cover this point. Help would be appreciated. hemo No I am printing on the default printer. Thanks hemo I need to print the below loop, due to the different length of text Spaces are not satisfactory as the printed data does not register at the same point in subsequent printed lines. Dim sb1 As StringBui ...Show All

  • Rich Pearson ApplicationSettings

    I need to read the settings from "project a" in "project b" from the same solution, how can I do this using "my.settings.[whatever]" I'm using VS2005 and VB.NET regards, Pablo Tola   k,    I figured out how to deploy the GUI apps with click once and transferring files between Dev/Test/Production.  I'm still having an issue on the web services deploy (I have the separation of duties requirement there as well).    How can I modify the the config settings after the initial deploy to test   The web services have a reference to my business objects - the settings appear to be hardcoded in the BO.dll file that is in the bin directory of the web service.  How do I ...Show All

  • zocmer New Tables and Relationships in VB don't appear in SQL Management Studio Express?

    Hi Everyone, I'm developing a VB/SQL application and I need to modify the table structures and their relationships. I thought I could work in either Visual Studio or SSMSEE (SQL Server (Management Studio Express Edition) and it would be "seamless". This is not the case. If I add a table in VS 2005 it will appear in SSMSEE (in a database diagram) as will its primary keys. However, if I add a relationship (parent/child), then that relationship won't appear in SSMSEE. If I add the table and relationship in SSMSEE, these changes WILL appear in VS 2005. I am using SQL Server Express v9.0.2047 (sp1) and the latest version of SSMSEE. I am using Visual Studio Standard Edition (is there an SP1 I didn't find any on the web) Is this a bug ...Show All

  • gcox18 Shrinking a file

    Hi, I have a long file, and I want to make it smaller. How can I do it zip it http://www.winzip.com/ if you mean in code with API, then http://www.sharpziplib.com/ else shell to a command line or http://www.7-zip.org/ endif ok, thanks. .net 2.0 has ZIP libraries built in... 2mb That's nothing. I guess it depends on the target computers, but most modern computers have hard drives of 40gb or more. Ultimately you will need to rely on users deleting what they don't want to keep. Alternatively offer an "archive" function like Outlook does, and soon as they use that option it ZIPs up all the files. There a ...Show All

  • gpetrosh XmlDocument not aware of attribute's default values as defined in schema

    I'm using XmlDocument to read in and process an XML file and schema in ASP.NET 2.0 with VB. My schema defines a default value for an attribute, and I'd like my XmlDocument to be aware of this default value. Right now, when I try to read in the optional attribute on an element which does not contain it, XmlDocument throws an exception. I want it to return the default value instead. What do I need to do differently to get this to work, if it's possible at all Thanks in advance. 'Create my XmlDocument: Dim doc As New XmlDocument() doc.Load(documentPath) doc.Schemas.Add(Nothing, XmlReader.Create(New FileStream(Server.MapPath(schemaPath), FileMode.Open, FileAccess.Read))) <!--Stylesheet definition of optional attribute--> <xs:co ...Show All

  • Jon Abbott Out of process .NET DLL used in VB6?

    Hello, I would like to use an out of process dll that I created in .net in a vb6 application. Is it possible to just create a new thread in the dll and do the number crunching on the new thread Another option I've seen suggested is to use an ActiveX EXE wrapper. Would this be a better solution Thanks. You can't use a dll as an out of proc process, so if you call the dll you would be run it it "in-proc". Out-of-proc object calls are expensive, so unless you have a very specific reason to do so, I would recommend that you stay with the in-proc approach. Also, if you want to keep your app responsive, while your function does "number crunching", you need to create the extra thread ...Show All

  • Alexnaldo Santos Making a window appear at the mouse

    But I want the bottom-right hand corner to appear at the mouse popint. How would I do this Dave: The form doesn't appear (Yes, I _have_ included the F.Show()) Richard: Thanks, it works! Thank you all for your time. Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick Dim F As New Form2 F.StartPosition = FormStartPosition.Manual F.Left = Cursor.Position.X - F.Width F.Top = Cursor.Position.Y - F.Height F.Show() End Sub Ok .. is this what you were after Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim pt As Point = Wi ...Show All

  • Socrates Kapetaneas ADO.NET in VS 2005

    Hi, I've got a child table called: Booking for saving user bookings, with three parent tables namely: User, Venue, and Booking Type. All in an Access DB, now here's my scenario: I want to insert data into the Booking table depending on on the type of booking the user selects like so: 1. if booking type is meeting , then only userID(FK), startDate, startTime, endTime, and venue must be saved, including booking type ofcourse. 2. if booking type is leave , then only userID(FK), startDate and endDate must be saved, including booking type ofcourse. 2. if booking type is other , then only userID(FK), startDate, startTime, endTime, and description must be saved, including booking type ofcourse. In essence, the only required fiel ...Show All

5678910111213141516171819202122

©2008 Software Development Network

powered by phorum