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

Software Development Network >> Visual Basic

Visual Basic

New Question

Problem faced in updating databases
Remove blank space from middle of string/Concatinating
How to Convert Data Types into Byte Arrays?
Visual Studio Launches Command Prompt on Build
error converting data type nvarchar to int...
Simple Problem: Allow Only Number Input In Text Box
searching for & highlighting text
Adding New Data Question
File Watcher
Updating SQL DB

Top Answerers

thisishaydes
Jimmy Q
lillirose
Facey
Anand Raman - MSFT
dvl_vn
CCJJ
Cesar Francisco
Avi_harush
mohdtmn
Ingeniux Corporation
Only Title

Answer Questions

  • Price Brattin duplicating a tabpage

    how can i take all the controls(and sub controls) on a tab page and duplicate/make new instances of them on a new tab page   Thanks, Dan See the second Q/A in this article: http://msdn.microsoft.com/msdnmag/issues/04/01/AdvancedBasics/ If you try and do something like this ....the control will be "moved" not copied.... Dim ctrl As Control For Each ctrl In Me . TabPage1 . Controls Dim NewCtrl As New Control NewCtrl = ctrl Me . TabPage2 . Controls . Add ( NewCtrl ) Next that's it - thanks to both of you! If it can be done more simply, I wish someone would chime i ...Show All

  • ADHDsowhat Validating Textbox

    Hello. A question please. In a version of VB that I don't remember exactly, a textbox had a property called "numeric" which avoids characters. In VB2005 is there something like this Thanks... Simply bind your data property to the .Text property of the MaxkedTextBox. Alternatively, you can programatically set the MaskedTextBox.Text = MyNumber.ToString(). Jim Wooley http://devauthority.com/blogs/jwooley SQlServer is my table. I retrieve a decimal data of a table and I want to put it in a maskedtextbox. Thanks... What kind of 'table' are you using And what premises do you have to select data from the table I.e. indices, keys etc. ...Show All

  • HuWu listbox items

    How can program a list box so that when a certain item is inputed the font color changes Drawing items with different colours is very straightforward once you set OwnerDraw to an appropriate value. The following uses Spotty's example, with the error corrected in btnDelete_Click, and will colour alternate rows with blue and red. Public Class Form1 Dim F As New Font("Arial", 8, FontStyle.Regular) Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ListBox1.DrawMode = DrawMode.OwnerDrawFixed End Sub Private Sub BtnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnadd.Click Me.ListBox1.Items.Add("Add an Item" & Lis ...Show All

  • Testsubject media plalyer controls

    I have the media player in my application and it plays, pauses and stops my wmv files just fine. However, what I need to do is to be able to step forward and backward by frame. How do I activate the "next" and "previous" buttons that are already on the media player but greyed out I open the media player with the following code. TmpFrm4.AxWindowsMediaPlayer1.URL = ShowMovieNow TmpFrm4.Show() Thanks, RobertMC its a good question, I always thought it was for DVD's only ...Show All

  • Marcello Gribaudo How can I remove vbCrLf from a string?

    How do I delete all instances of vbCrLf from a string Thanks in advance. I'm not sure how you splitting the items Dim crlf() As String = {vbCrLf} Dim line As String() = strContents.Split(crlf, StringSplitOptions.None) I found that if I had a CRLF at the end of each line and did a split using VBCR but not stringsplitoption parameter that it would leave the lf character in the string array items. Chnaging to the above seemed to cure the problem. You could also do a string replace with the character with a space prior to deleteing the white space. This you would use on the string array items. For reading lines from a text file try something along these lines: Dim tfr As ...Show All

  • raghuramaiah FileUpload - How do I trap maxfilesize problems

    The fileupload control works well for files < 4MB (maxrequestlength), but if the file is larger than this the program fails with: - the page cannot be displayed, or Server error in '/xxxxx' application Maximum request length exceeded How do I trap this so that I can return a better error message The failure occurs before the Page Load from any callback, so I can't see any way of trapping the error, and I haven't seen any event or property of the Fileupload control that I can set to say "Do this when Max Request Length is exceeded" I don't want to accept larger files, I'm happy to live with the limit. Regards, Robert Barnes you did sign up to the forum correct ...Show All

  • JohnDoe1 Automatic Namespace generation in VB

    I've just finished a dll written in VB. I've never bothered with namespaces much until now, but this is a bit complex, so I've arranged it into sub-folders, with a top-level class, a few sub-classes (and base classes), and other classes that hang off some of the sub-classes. Every class has the same "Namespace Handler" around it. Looks garbage in the object viewer - every class is under the root namespace. When using the object however, it looks fine, i.e. you only see the correct sub-sub-classes hanging off the correct sub-classes, etc. However, one of my colleagues who talks C# had a look at my code, and commented that my namespaces were not declared properly, then we discovered that when coding in C#, the namespace line wer ...Show All

  • Al Christoph Bizzare problem! IDE won't accept any changes.

    Something very bizzare is happening and I have no clue as to why. Whatever changes I make to a form in the IDE whether it be adding a button, removing a button, or changing the text (title of the form), it will show in the IDE designer. But when I run it, it's as if none of the changes were made. A button I removed is still there and the code behind it still executes although I commented that code out. Saving the files doesn't fix it. Closing the solution and reopening it doesn't fix it. Exiting Visual Studio altogether and restarting it doesn't fix it. And restarting Windows XP doesn't either. It's as if my application is stuck where I left it last night. When I reboot everything, launch Visual Studio, and open the sol ...Show All

  • cpurick Permissions Issue

    I have a service which copies files from a local diretory to a remote, I set the permissions on the remote directory which to start with was the local machine to Users (DEVELOPER\Users) - DEVELOPER is the machine name everything worked fine I then used a directory on our Windows 2000 server, under the security tab it states the Everyone has full control yes the images do not copy over. It has to be a permissions issue as it works fine locally just not sure how to get around this The default is full trust, surely this is sufficient Two things to check: 1) Which account the service is running as 2) What the permissions for the network share are (th ...Show All

  • Marzullo C# as operator equivalent

    Is there a VB.Net equivalent of the C# as operator Here is some C# usage of the operator- SqlConnection conn = Dts.Connections(Connection_Name).AcquireConnection(Nothing) as SqlConnection if (conn != null) { // Do work as we have a valid object } You use it for casting, but it will never throw an invalid cast exception, the result is left as null. I am familar with CType in VB.Net but that will throw an InvalidCastException if the types do not match. As a workaround I have found TypeOf - Dim connectionObject As Object Dim connection As SqlConnection connectionObject = Dts.Connections(Connection_Name).AcquireConnection( Nothing ) If TypeOf connectionObject Is SqlConnection Then c ...Show All

  • SteveVBNET Problem setting up a remote configuration when "Make Single Instance Application" is enabled

    I have a client program that connects to a Window Service using the following code in the constructor of the main form of my client program: RemotingConfiguration.Configure("C:\EmaiFiles.config", False ) This work fine if "Make Single Instance Application" is not checked. If I check this option, I get the following exception when the program attempts to execute this line: System.InvalidOperationException was unhandled Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Remoting configuration failed with the exception 'System.Runtime.Remoting.RemotingException: The channel 'tcp' is already registered.\r\n at System.Runtime.Remoting.Channels.ChannelSe ...Show All

  • Pockey Visual Basic C#

    It is possible to change this code into Visual C#. Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If Button1.Text = "On" Then Button1.Text = "Off" Else Button1.Text = "On" End If If (Button1.Text = "On" Or Button2.Text = "On" ) And Not (Button1.Text = "On" And Button2.Text = "On" ) Then PictureBox1.Visible = True Else PictureBox1.Visible = False End If End Sub Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ...Show All

  • SuriP My Visual Basic 2005 does not compile the source code in a .exe file only .vshost.exe , why is that and how can I change that ?

    When I do a project, and click the "Save All" button. It saves it normally. When I try to debug the program whidin the IDE it reports an error that the .exe file does not excist ! Then When I look in the bin/Debug/ directory there is only a vshost.exe file. I really need some help because it really needs to be fixed (for me). By the way, why does ALLMOST every code sample in MSDN's section Coding4Fun has like a TON of errors. Like the Skype VoIP thing. Who can please alert Microsoft for that, because I can't sen E-Mails with a domain microsoft.com (I don't know why). I tried bgates@microsoft.com but it didnt work :) What kind of project have you created Before you debug a project you need to build it. You can use the B ...Show All

  • JoraPJL Create Web-like Forms as Windows App

    I have used VS 2005 to create a family-based web site ... about 100 pages/forms consisting of mostly text with some graphics thrown in for interest. I have no intention of putting this out on a publicly-accessible server but instead had anticipated burning everything onto CD's and then distributing that to family members so that they could view the site on their own machines (XP Pro SP2) using IE. In inquiring on this forum how to do that I am told that that is not feasible and that instead I should have created a windows app and simply deployed that app to the family (via CD). That's fine except for one thing ... I don't know how to create a web-like app as a windows app. For example, as I create the app I want to be able to easily highli ...Show All

  • jwellsntr Error running VB6 to 2005 Upgrade Wizard

    I am encountering an error running the VB.NET 2005 Upgrade Wizard. When the wizard completes and attempts to open the converted project I get the message: Unable to read the project file '(project name).vbproj'. The project file "(path)\(project name).vbproj" was not found. (I have substituted 'project name' and 'path' above for the actual values.) When I look in the folder I find the file '(project name).vbproj.vs7.vbproj'. When I try to open this file, the Upgrade Wizard launches again and gives the message: Operation could not be completed. The project file '(path)\(project name).vbproj.vs7.vbproj' cannot be converted. See the conversion report for details. The conversion report contains the message: Error co ...Show All

242526272829303132333435363738394041

©2008 Software Development Network

powered by phorum