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

Software Development Network >> Visual Basic

Visual Basic

New Question

ListBox selection subroutine
combobox.selectedvalue
Not allowed to pick directory for a new windows application project
Graphics Disappear After Minimizing Window
updating totals
need help with offsets for LayoutKind.Explicit - unravelling a returned struct from unmanaged into managed
create eventlog with properties
How to access the clicked item?
Burning a CD
database report

Top Answerers

hkais
preethi_rjs
Samy Khalil Abushanab
Nonu_k
Blue-Fire
kendy
NickNotYet
elsamma
Prasad Selladurai
ChandraP
Topix: AC-DC
Only Title

Answer Questions

  • Kishore Gopalan Process.GetProcessesByName can't get process info

    Hi folks, Process.GetProcessesByName works fine when it was running as an administrator, but it gives an error when running as a plain user saying "Can't get process information from remote machine." The operating system is Windows 2003 server Std, and the machine is configured to be a terminal server. Anyone help with this I am pretty lost, thanks. Thanks mate, It was running on the real system console. The code was written in VB.NET 2003, which targets to .NET Framework 1.1. The machine got both 1.1 and 2.0 I think. I've modified the app.config file to include both version of .NET Framework, but it still gives the error. windflower ...Show All

  • adisciullo Cannot save to database?!?

    I have a form with tabs. The first tab is used to enter general data about a site. The second tab is used to enter data about specific applications to said sites from the first tab. The information in the first tab can be manipulated as it should, but I cannot do anything with the data in the second. Private Sub SaveToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripButton.Click Me.Validate() Me.ApplicationBindingSource.EndEdit() Me.ApplicationTableAdapter.Update(Me.Sludge2DataSet.Application) End Sub I get the following errors when deleting or adding data: Update requires a valid DeleteCommand when passed DataRow collection with deleted rows, Update requires a v ...Show All

  • tt2lhp Problem whit publishing

    When publishing program to a computer thet don't have internet access and framework i found thet i have to include prerequisites. Becose prerquisites can't be downloaded from web in properties i specify thet prerequisites download from the same location as my application. When publishing start i got three errors: Error 1 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\instmsia.exe' in item '.NET Framework 2.0' can not be located on disk. Error 2 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\WindowsInstaller-KB893803-v2-x86.exe' in item '.NET Framework 2.0' can not be located on disk. See Help for more info ...Show All

  • Frank the Tank crop image & save it to new file, howto?

    I have 3200x2200 resolution image, now I want to crop Image from pixel 1600,1100 until 3200,2200(1600x1100 res). and save it to the new file do you have the sample code I'll appreciate that   I just knew how to save : If SaveFileDialog1.ShowDialog( Me ) = Windows.Forms.DialogResult.OK Then   t.Save(SaveFileDialog1.FileName, Imaging.ImageFormat.Jpeg) End If but the problem is how to save the file with another image format(JPG, GIF) according to the savefiledialog   thanks this is how I crop : dim m as new picturebox Dim tmpbitmap As Bitmap Dim t As New Bitmap(1600, 1100) Dim i, j As Integer i = 0 j = 0 For x = 1600 To 3200 For y = 1100 ...Show All

  • bcarter00 DLL Creation

    I want to create a DLL for editing HEX Data I want that if it is referenced for editing any bytes you need write this line: WriteB (File , Seek, Byte) File= Files to open with FileStream ( Imports Sytem.IO is necessary obviously) Seek= For moving the pointer in a offset Byte= Byte to write in the Offset Now if i want to edit a byte i need write this code Dim str As New FileStream(OpenFileDialog1.FileName, FileMode.Open, FileAccess.ReadWrite) str.Seek(&H18D, SeekOrigin.Begin) str.WriteByte(CByte("&H" & ComboBox3.Text)) And i want to create a Function in the DLL Imports System.IO Public Class Class1 ' Start Function Public Function Nome_funzione As CallType ......... ...Show All

  • Zindros counting letters in a textbox?

    Is it possible to count the number of letters in a textbox OR label e.g >textbox1.text = "thesister" would return a value of 9 letters is this possible What would this return a single value of how many characters or something else textBox1.Text = "thesister" Dim textLength As String = textBox1.Text.Length --- Result: textLength = 9 AAAh thank you TextBox1.Text.Length will be just fine cheers TextBox1.Text.Length counts both letters and numbers, to count letters only : Dim Letters As String = "abcdefghijklmnopqrstuvwxyz" , TempIndex As Integer , Count As Integer = 0 For TempIndex ...Show All

  • TBrij Help removing menu item.

    I have code that scans a config file and when it finds a certin line it adds a new drop down menu item to File --> Configure --> "New Item Added" For example in the config I have a line that equals: Test = "Sample1" When the program loads and find the line with Test = "Sample1" it will add that item to the drop down menu under File --> Configure --> Sample1 this works perfectly. Now I also have an option to delete this item out of the config file and I am trying to get it to remove from the drop down menu. When you click the delete option you get a dialog box with a drop down that lists the items you can delete from the drop down menu that were loaded from the config file. When you select the item ...Show All

  • GroZZleR Combobox question

    hello. A question please. If I add elements to a combobox manually, I mean for example combobox.Items.Add( "Monday" ) Can I associate a key to each element of my combox Something like this: ComboBox1.DataSource = datatable ComboBox1.DisplayMember = "long_name" ComboBox1.ValueMember = "id" Thanks in advance...   This is really simple and doesnt require databinding. If you implement any class (in my case ListItem) and as long as you have a Public Overide on the tostring method - this is what will be displayed in the listbox/combobox etc. When you retrieve the selected item - you can cast it to the original object type and access all the specific properties such as ID, Name et ...Show All

  • pigi76 How to open PDF documents in a RichtextBox ?

    I know that the only way to open pdf documents in rtb is the use COM .. but few questions I shud add reference to my project .. but with which dll file .. and do i need Acrobat Reader or Acrobat Professional A few lines code wud help. I have the Acrobat Professional 7.0 and the only part that is confusing me is the Add Reference part ..i.e which dll to use..And after that which class of the dll should i use thereafter.. Thanks for replying Well, ,more importanty it works...not in richtextbox though... Right-click the toolbar and select Choose Items. Click on the COM components tab and click Browse. Navigate to C:\Program Files\Adobe\ ...Show All

  • FloridaJohn is it allowed to install Visual Studio 2005 non-express editions on more than 1 PC?

    At the moment I'm using VB 2005 Express. I'm considering upgrading to the standard or professional edition. However, now I'm able to use the express version on, for example, a pc at work and a laptop at home. Does this also apply to the payed versions Note: I'm the only programmer, so only one edition will be used at a time. Regards, Eric I believe for paid versions the answer would be no, not unless you have an MSDN subscription with certain licensing scheme or something, again, BEST to call the MS Support and confirm for sure, before finding a letter on your door! :-) It is rather dangerous to try and take individual items from a EULA and use them as a justification for you actions, as you may f ...Show All

  • bfarr23 Migrate VB6 Project

    HI, I have VB 6 Project and want to Migrate that one to VS.net 2005 What are the common errors i will get at initial stage If i want to upgrate VB 6 to VS.net 2003, what errors i will get Thanks Seshu Hi. I also suggest reading the Visual Basic Upgrade Guide by the Microsoft PAG team and ArtinSoft ( www.artinsoft.com ) http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnpag2/html/vb6tovbnetupgrade.asp You will find 500+ pages with all the details on how to achieve a complete upgrade. In addition, you might also want to review my blog: http://blogs.artinsoft.net/fzoufaly/ for a discussion on the upgrade process. Cheers! Hi Seshu, I'd recommend using the VB6 Code Advisor before using the U ...Show All

  • Ceres629 VB 2005 Window Stay On Top?

    I was trying to get my form (the main form Form1) to stay on top all other windows windows(such like the Windows Task Manager) but with no luck. I tried Google and came up with several approaches: One used the SetWindowPos API call but that generated some insanley cryptic message that the call '...unbalanced the stack...'. I also tried setting the form's TopMost property to true, but that only made the main form stay on top the other forms, in the the same project, not all other windows at runtime. So far I have nothing so if anyone had this problem before please say what I'm doing wrong (or not doing at all). Thanks in advance. -Will This code works correctly. But what I need it is that the code works for another ...Show All

  • Puil Strings Class .substring(string.lenght - string.indexof(string))

    I am confused and or concerned about the difference between the value returned by .length (it counts CHARs) and .INDEXOF I want to parse off the right hand part of a string after the occurance of a substring and was thinking stringname.substring(stringname.length - stringname.indexof(findstring)) Being new to Unicode and 2 chars per character is the above going to get me in trouble INDEXOF returns the position in Unicode characters as I understand it. I suppose this sounds confused but I AM confused by all this Unicode and CHAR mixing in the strings class. Doug W   Doug Wyman wrote: Thank You!  I appreciate a direct reply that answers my question. Espec ...Show All

  • rb531 disable text change event

    i am having a text change event, i am writing a function to clear the values, while doing so the text change event is triggered and unwanted things happen, i need this event to happen when the text edited manually and not while clearing the text through the function i need that event not to be triggered while clearing the values of the textboxes, is there any options in VB.net to disable that event for temporary and then enabling the functionality Thanks in advance URGENT!!! But i currently use private sub Clear() RemoveHandler txtFirst.TextChanged, AddressOf Inputs_TextChanged txtFirst.text = "" AddHandler txtFirst.TextChanged, AddressOf Inputs_TextChanged End Sub is this ok too but sometimes it still seem to t ...Show All

  • johnfirek Problem with Singleton Code

    I have a class that is invoked in multiple ways, but no matter how it is invoked, I only want one instance to exist at any one time. The class looks like this: [code langauage="VB"] Imports System.Threading Public Class SingletonClass Private Shared _mu As New Mutex Private Shared _instance As SingletonClass Public Shared ReadOnly Property GetInstance() As SingletonClass Get _mu.WaitOne() Try If _instance Is Nothing Then MsgBox("Creating New Instance of SingletonClass") _instance = New SingletonClass End If Finally ...Show All

626364656667686970717273747576777879

©2008 Software Development Network

powered by phorum