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

Software Development Network >> Visual Basic

Visual Basic

New Question

Check by name if Object exists
Question in adding item in ContextMenuStrip
Fonts and comboboxes
Recording sound from microfphone in VB 2005 EE
array of controls..
IO.Compression
circular references between usercontrols and 'main' form in vb6->.net upgrade
XML Creation
Add connection wizard fails with Access database
image looping problem

Top Answerers

ChinmayaNayak
Bo Yu
Norbert.Bender
digdug
rsri
pardgr8
thedewd
TrevorT
kesim
Philly10407
sitemap
Only Title

Answer Questions

  • Horst Klein TextBox1.DataBindings.Add update issue!?

    Hello people, I have a issue with the databindings attribute for the textbox. I have a textbox1 which gets linked to a class iDemoCustomer as follows: Me.TextBox1.DataBindings.Add("Text", iDemoCustomer, "CompanyName") The class contains just a few properties to get and set its attributes. Now the issue I have is that while entering something in the textbox the class property for CompanyName doesn't get updated on TextChanged event. The update of the property CompanyName occurs when textbox1 loses focus (leave event). Would it be possible to make the DataBinding update on the TextChanged event And could you give some information on how to do this Thanks in advance, Dries Robeyns Dries Robeyns, I don't think ...Show All

  • chronozphere Currency issue with bound objects -I think

    Problem: two textBoxes are bound to two fields in a datagrid.When the text in the first textBox is deleted and replaced , and then the second textBox text is deleted it deletes the text in the first text box(or moves its value back to what it was prior to making the change).Note that if I just modify the text it has no affect on the other textBox-only when I have had a prior deletion. Specifics: the mouse click in the text boxes show a month calendar from which a date is selected and shown in the text box. A keydown event is used to pickup if the "delete" key is hit, and if text is selected it removes the text from the text box and from the dataSet as well(could not get it to delete text by just removing from textBox). ...Show All

  • Johnny Liverpool icon from primary output not showing on the desktop

    Hi I have a vb.net 2005 project, with an installation project I added the primary output to the file system for the installation and dragged to the desktop. I get a shortcut on the desktop after installation - but it doesn't show the application icon ... Why is this Do I need to distribute the icon as well (I hope not) Thanks Bruce Hi, Bruce, Sorry for the confusion. I'm assuming that you're using a setup project, yes In the File System view for the setup project, select the shortcut. Go to the property grid and see what the value of "Icon" is. If it says "None," then click that "None," select "Browse..." from the dropdown that appears. That ...Show All

  • Ramanakumar VB.Net general

    Hi all, Can I show a form within a panel of another form -- Atanu I'd have to agree here that user controls, sound more like what your trying to achieve. Think of User controls more as mini-forms that need to be hosted within a containing control/form. The User-control can be a single control or group of controls. And provide you with some canned functionality that you can re-use easily. I just spent hours arranging a huge bunch of controls on forms with borderstyle set to zero, and now I find out that I should have used 'UserControl' instead *sigh* I hope there's no downside to using forms this way, as there's no way I'm gonna redo it :) Thanx, though! ...Show All

  • ddrakonn Cannot access Shared Property in Visual Studio 2005

    I have an aspx page (pdfOpen.aspx) that needs to set a value on another aspx page (Errors.aspx). I've set the properties on Errors.aspx to be Shared, but the other page (pdfOpen.aspx) cannot see the Shared properties. The Errors class is not visible to the pdfOpen class, as I get the error "Name 'Errors' is not declared". I've done this same thing successfully in Visual Studio 2003, but cannot succeed using Visual Studio 2005 & .NET 2.0. Can you see where I'm missing it My code below is greatly abbreviated for clarity, but everything needed should be present. Thank you. Partial Class pdfOpen Private Function errorHandle (ByVal theMessage As String) Errors.exMessage = theMessage End Sub End Class Partial Class Errors I ...Show All

  • Nate879 Rename a Table in MS Access using VB or SQL statement

    Hi all, How can I rename an MS Access table in VB or thro' SQL statement I have 2 clues as given below, but I am not able to get to use these ideas. These statements does not seem to refer the ADO library and hence, I do not know how to arrive at framing a program for these statements. Please help me in using these clues by guiding me how to frame a program around the statements or please let me know if there are any alternative ways. Clue 1: This creates a copy of the original table and you then delete the original leaving you with a newly named table. DoCmd.CopyObject, "myTableOld", acTable, "myTable" DoCmd.DeleteObject acTable, "myTable" ----------------------------- Clue 2: CurrentDB.TableDefs("myTable").Name = "myTableOld" Any he ...Show All

  • dgracey priority event when showing a new form

    Hello, I would like to know the order of event when a new form is showing. Before the "LOAD", which events are execute (if there is code, of course). thanks a lot ! ben Have a look at the following: http://msdn2.microsoft.com/en-us/library/86faxx0d.aspx Hi, The Windows Form Designer Generated Code is run first so take a look at that. It has code to setup the controls on the FORM(s) and their size and colours used etcetera. Regards, S_DS ...Show All

  • Sébastien Nunes How do you manage your controls if there are many many controls placed on the forms?

    Hi I would like to know how do .net developers manage a large window application with a large number of controls, such as textbox , button, groupbox I have seen a number of people do it this way : declare the controls as an array and initialize them one by one at run time . In this way it is easy to manage those controls because they can be accessed by array index; but this solution seems to require very good understanding of control's attribute such as its location, font etc. This could be a difficult task if the project is passed on to a less experienced developer and add changes to it. How do you deal with it Thanks, Hi, It depends on what you are trying to do... If a part of the UI must be dynamic (ie generated ...Show All

  • JoeHand Program locking up...need help

    I have made a program the compares two similar files byte by byte and outputs the diffreences, it works fine with small files but when i try a file of around 1MB it locks up. I get a ContextSwitchDeadlock was detected error. How can I stop that I'm assuming it's because the for next loop is being run repeatidly very rapidly for a long time. Thanks Sorry if this code comes out wrong not sure how to post it porperly Sub compare( ByRef file1 As String , ByRef file2 As String ) Dim bytes As Byte Dim fs, f As Object Dim a As Byte Dim b As Byte Dim file1size As Integer Dim file2size As Integer Dim pos As Integer Dim refresh As Integer Dim progress As Integer Dim ...Show All

  • Alex2200 vb6 to vb2005 problems

    i have just converted my vb6 game to vb 2005, however i have a few problems - how do you read and write to text files in vb2005 . it worked fine in my game in vb6. but i'm guessing its different for 2005 (it threw up various errors when using the conversion wizzard) Similary i controlled the game using keyboard keys (left,right,space and escape) i cannot get this to work, nor can i find information on how to do do it - all the results from searches i do on google are confusing! Also i noticed that the game runs slower on vb 2005 than it does on vb6...is this becuase my code was done on vb6 and i converted it i shall post the code i had for my controls and text documents later on...if you need to see them. thanks in advance for any ...Show All

  • Benin Panning more quickly

    I am making a program that displays complex graphs in a PictureBox that take a long time to render. Currently I draw the graph in PictureBox_Paint. When the user is panning the view, I want to stop drawing the graphs and instead display a previous 'Screenshot' of what the graphs looked like when the user started panning. So far I've done this: Private Sub PictureBox1_MouseDown( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown Moving = True MovingImage = PictureBox1.Image End Sub Private Sub PictureBox1_Paint( ByVal sender As Object , ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint Dim g As Graphics ...Show All

  • Pramod Open .exe from Resources?

    Is there a way to add a program to your resources and use this codes to open it Private Sub TestToolStripMenuItem_Click ( ByVal sender As System .Object, ByVal e As System . EventArgs ) Handles TestToolStripMenuItem . Click Process . Start ( "C:\ Resources \Another.exe" ) End Sub Let me put it this way, ... any resource that you imbed in your application you MUST have right to... either through intellectual property rights or through license (distribution or user)...also one might consider the idea of "spawning"...which can also be considered illegal... But hey, I'm no laywer and I just don't want to be involved with one either This helped me out! ...Show All

  • Yaron Q: Persistent Graphics on Form or PicBox: a real pain!!!

    Hi all, this is kind of a follow up on 2 earlier threads I started. This time the question is a bit more fundamental. It concerns replacement of the persistent graphic methods in VB6 with the Picbox_paint persistent graphics in VB.net. Whatever I try, and whatever help I ask I simply cannot perform the following task: (heavily simplified) I have a VB6 program that reads inputvalues (X and Y) from an A/D convertor. It continuously reads values at ~5 per second and plots them as vectors. Aim is to visualize outliers and get a quick view of grouping of the outliers. I definitely need to implement exacly this functionality in VB.net. After a number of days, millions or even billions of vectors are drawn, with only a few outliers. ...Show All

  • Cyberjunkie Disable "Move" for my form

    I am writing Windows Application with VB.NET. I would like to have my form occupying the whole screen and disallow the user from resizing it and moving it. I successfully coded it such that the form didn't move when the user dragged the title bar. It was what I wanted but it was not so perfect. When I press ALT+SPACE, a context menu popped up and this menu contains a menu item called "Move". I wanted to disable this menu item "Move" such that it only showed as a gray text instead of a black text. Which function to call DMan1, I am sorry to say that this solution is extremely poor. It doesn't address my "Move" menu item problem and it yields a very poor user-experience. I int ...Show All

  • averge joe Problems with streamread

    I discovered a really great problem when using streamread function in visual.... The special characters, such as a, e, i, o, u, €,.. etc are not even readed from the file i try to read from... so, a line like this: I want to be a great programmer is transformed to this: I want t be great programmer Does anybody know why this happens and also if there is some other way to read and write from simple text files that dont reperesent this problem Thanks Change the StreamReader.Encoding property. I have my streamreader: srInput = New StreamReader("C:\test.txt") How can i modify the streamreader (srInput) to make it have an unicode (for example) encoding ...Show All

787980818283848586878889909192939495

©2008 Software Development Network

powered by phorum