DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2005

    Post Questions on VB. NET!

    Hello to everybody,
    I am using VB.NET to develop a project in Studio .NET 2003 and i have the following questions and affairs:

    1. I am using the following fragment of code in order to read and write in an Excel file:

    Dim oExcel As Object = CreateObject("Excel.Application")
    Dim oBook As Object = oExcel.Workbooks.Open(file)
    Dim oSheet As Object = oBook.Worksheets(1)

    But this code make my program to freeze for about 5-6 seconds (on my machine, using framework 1.1). There is any way during the execution of this piece of code not to freeze the program, but to display a progress bar or sth. else telling/notifying the user that he/she will wait for a few seconds?

    2. How can i integrate a progress bar control in a status bar panel?

    3. I have created an icon using MS Paint and i want to use as the icon of my Program. When i am trying to use it i receive the following message: "The argument 'picture' must be a picture that can be used as icon.". The icon i have created has dimensions 32x32.

    4. I am using a text box control and i want when i press enter (while the cursor is inside this control) an action to be performed. Does anyone how can i do this? An example of what i want to do is when i write the word "Hello" and i press enter to appear a Message Box with text = "Hello".

    Thanks for you time spending on reading my topic.

  2. #2
    Join Date
    Dec 2003
    You might want to ask each question as a separate post since each represents a different topic.
    Microsoft MVP (Visual Basic)

Similar Threads

  1. Need a sample of VB net code (please)
    By Barry in forum .NET
    Replies: 2
    Last Post: 03-31-2002, 11:40 AM
  2. They created J#, why couldn't they do VB#?
    By Thomas Eyde in forum .NET
    Replies: 290
    Last Post: 12-22-2001, 02:13 PM
  3. How to use OO4O objects in vb dot net
    By kumaran in forum .NET
    Replies: 0
    Last Post: 04-10-2001, 01:59 PM
  4. vb frequently asked questions
    By Anuradha in forum VB Classic
    Replies: 0
    Last Post: 12-12-2000, 11:58 PM
  5. some simple vb questions
    By Larry in forum VB Classic
    Replies: 1
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.