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

Software Development Network >> Visual Basic

Visual Basic

New Question

Losing Web References
Unloading a picture from a picturebox in VB.net
Getting a pinvoke stackimbalance error
Deleting all the records from an access database.
MissingManifestResourceException with simple application
Form Refresh During extensive process
Using a declared function in a dir' address.
How to insert data (probably simple question)
IsolatedStorageFileStream access problem
VB6 to VB.Net 2005 Upgrate Error while closing the application

Top Answerers

incendy
AndrewStone
apaspula
Tony_NTFY
Thomas Greenleaf
LeoXue
SQLIdiot
lcj
kageg
udayan
Object Oriented Template Library (OOTL) for
Only Title

Answer Questions

  • Michal2071 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 I have found the chunk PROP. It starts from the 19th byte. I found that through the code For cnt = 1 To 10000 Open file_name For Binary As #fnum Get #fnum, cnt, str Close fnum If str = "PROP" Then MsgBox cnt Exit Sub End If Next Please note that through cnt I am reading each byte. Now comes the MAIN problem. After finding the PROP chunk; I add 4 bytes for each 'dword' and 2 bytes for each 'wor ...Show All

  • Chris Richner Value assignment problem

    I have a function that is supposed to find where a label should be placed to be in the center, but I get a code error. The code looks something like this: Public Class Form1 Dim screensize As Rectangle = My .Computer.Screen.Bounds Sub New () InitializeComponent() Label1.Location.X = centerLabel(screensize, Label1) End Sub Function centerLabel( ByVal rect As Rectangle, ByVal label As System.Windows.Forms.Label) As Integer Return (rect.Width / 2) - (label.Width / 2) End Function End Class The Label1.Location.X part is underlined in blue and the error says "expression is a value and therefore cannot be the target of an assignment". What am I doing wrong here ...Show All

  • Barry Kwok How can I mute Wave Sound Without Muting System Sound ?

    HI Friends !! I am able to Record Sound in VB 6.0 and also can play a sound. But now i want to Mute this sound without Making My Sytem Mute ! Means, that sound shuould be muted but my system sound must not be. Please Help Me!! Emersion T hese forums are for VB.NET and there are better places to find answers for older versions of VB. Maybe the VB6 newgroups - http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vb.general.discussion&lang=en&cr=US Or perhaps the VB6 resource center http://msdn.microsoft.com/vbrun/ or perhaps www.vbcity.com may be useful places to search for answers on VB6 related questions. Hopefully this helps. Thanks MSFT ...Show All

  • Don Higgins Implementing For Each

    Hi, There is a sample in the help for VS called " HOW TO: Make a Visual Basic .NET Class Usable in a For Each Statement". I wanted to use it for enumerating tax classes in a financial program as it would make the code more readable and lines shorter...So I modified the example only change was to add runtime initialisation of the items rather than a fixed set as in the example and it semi-works... In the example it passes only one iteration of the for each loop my application uses it many times and each instance after the first iteration fails with the loop never executing as it is at the end of the set. Applied this to the example as is and it has the same behaviour, basically the reset is never call ...Show All

  • mclagett PrintPreview awkward to use?

    It might be just me, but doesn't PrintPreview work rather backwards I'm used to constructing a report from the top down: Whenever the line count goes over say 60, I do a formfeed which prints the page, set the line count back to 0, and carry on like that. That seems very natural. But with PrintPreview, I must have a single routine for handling the printing of any page. What if I don't know what will be on page 6 until I've printed pages 1 to 5, which happens often What might be on page 6 with one report run might be a different page with another run, depending on the content. What if pages may have various different formats I can't do a 'switch' on the page number because I may not know on which physical page some parts of ...Show All

  • Anonomuys VS2005 with VB 6.0 Installed

    Hi, I installed VS2005 in a PC that already had VB 6.0 installed. Now whenever I open VB 6.0 a message "Please wait while Windows configures Microsoft Visual Studio 2005 Professional Edition - ENU" appears and then it will ask for the cd. What is it trying to do Will there be any conflict between the 2 IDEs I also have had that issue. In my installation stack, there was first Visual Studio 6, then IBM Rational software, then Visual Studio dot net 2005. Before the install of dot net, everything was fine. Then I installed dot net, and had those problems. Then I uninstalled Rational, and Visual Studion was messed up. I had to uninstall it, then reinstall it. I have seen the same problem with HP ...Show All

  • Khenat.Ram To deploy from Release folder or Debug folder?

    Hello, In visual studio 2005, I have the option to set the configuration manager to output my files to a debug folder or a release folder. Right now by default, it is set to the debug folder. To deploy my vb.net application, would I use the files in my debug folder, or change my program to dump files in the release folder and then use tthe files that reside in the release folder I have used the click once deployment option but finding my application taking way to long to start up after a cold boot, where as if I use the files from my debug or release folder, it starts up fine. Any advice, or clarification on debug and release folders is greatly appreciated. Thanks. By default if you set it to ...Show All

  • chaza not sure it this goes here or not

    I am using vs 205 team suite. I am at this point creating a crx app but everytime i try to save i get an error. An unhandled win32 exception occurred in devenv.exe[3612] the number changes, and then exits. when i restart and try to ope the project i get the same message on opening the project. How can i fix this The environment is purely VS, i haven't installed any plugins or extensions. usually appears when i save a project. Than i can't get into the project anymore. I can't find any information on that error code. Can you post the entire eventlog entry There should be a copy button and then you can paste the result as a post. .Net Runtime version 2.0.50727.91 - ...Show All

  • seu How do I unzip a file at runtime?

    I'm making a game which has an animated 261 frame intro (entirely BMP images). I would like to be able to extract them from my project's resources at runtime and then import them into DirectDraw to draw them. The problem is, my computer simply doesn't have enough power to build a project with 261 800x600 bitmaps! Instead I would like to extract them from a ZIP file contained as a resource in my app, at runtime. How would I do this .NET doesnt provide Zip Functionality out of the box. You'll need to find a third party component to handle this. A simple web search will reveal many components. A common one used is http://www.sharpziplib.com/ .NET does have some compression routines - but they are not winzip file compa ...Show All

  • dragoncells ImageLooper Control

    I am working on a VB tutorial, and at the same time trying to create my first control called ImageLooper. This is pretty straightforward, a control box with a picturebox1 inside, a left arrow button and a right arrow button (button1 and button1 respectively). The idea is, with each click in either direction, the next or previous in line image will display, depending on which arrow is clicked. Each button works individually ok, but when I switch from the left arrow button to the right or visa versa, instead of going to the next image down or up, on the first click, it takes one step in the opposite direction, displays that (wrong) image, then, with subsequent clicks, starts moving through the images correctly. The language is below: ...Show All

  • Noel Muhleisen Help: WebBrowser Control with custom http headers

    I use WebBrowser control in VB.NET windows application and have to customise the USER-AGENT for only control under the application itself (does not effect the original IE) sample: Original USER-AGENT : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) desired USER-AGENT : My Application Name (any version) I saw that it is an overloaded function to add a custom http header but it is available only for POST method It is very easy to do this with VB6 but .NET is different. Tried searching over the internet but found no answer yet. Did you find an answer anywhere - I am trying to do the same thing Just found the answer, very easy. Try u ...Show All

  • indersunny get CPU info

    Hello friendz I'm developping a little software(just for learning Visual Basic ) and I'm pretty far. I want a form with all the specifications of the CPU. I know that I have to do it with WMI or API. My preference goes to WMI so forget API I read a lot of threads and stuff like that, but I can't find how to do it. What I want: every information about the CPU(e.g. name, temperature{have sensor}, ...) Can you guys help me out Thanks in advance Marnik Not everyone here is a guy. You won't get temperature information. It's just not there. You have to talk to the bios through a driver in order to do that. Obviously there is a way to get CPU information such as the name, model and clock frequeny, because it' ...Show All

  • Nick Gravelyn Where do I start?

    I'm relatively new to the Visual Basic language and the Studio environment. What is the best way for me to store data that a user can view, edit, and update via the DataGridView I want this program to run solely on the end users PC with no need for an internet connection or any special database software. I would also like the user to be able to add columns to the data they're storing. So my question is, what is the best way to do this in Visual Basic How do I create an XML source from Visual Basic 2005 Express Agreed, XML is pretty damn awesome to work with, I often find in small applications its a l ...Show All

  • notec Uploading a word document to the database and displaying it in Ms Office

    Hi, In my application, i want to upload a word doucment to a SQL Server database. Later on the application will only show the file description or name via the application. When they click on the file description the file must be opened in Ms Office. But i have no clue :P. I am open to any kind of suggestion, please help :) Ayhan Yerli, 1. Upload a word document to a SQL Server database: please take a look at the following link that can help you: Word document automation through .NET: http://www.codeproject.com/office/automate_word.asp 2. Show the description: Writing SQL Server Database tables description into Word Document http://www.codeproject.com/useritems/DB_Documentor.asp 3. Word, Excel, Image, X ...Show All

  • MrOctree need to create an array of classes

    This is probably a fairly strange thing to want to do but it would sure simplify the code. I have many (10 so far and more coming) classes that all derive from the same base. The all process different types of files. The new operation currently is a little expensive and the objects are not small. What I was thinking about doing was creating a SHARED method in each derived object that can look at the input and decide if ir is a file it can process. That way New is only called after determining which of the derived objects will really process it. What I wanted to do was something like: dim processors() as filereader = {processor1, processor2, processor3) dim p as filereader dim realreader as filereader for each p in process ...Show All

202122232425262728293031323334353637

©2008 Software Development Network

powered by phorum