Questions on VB. NET!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Questions on VB. NET!

  1. #1
    Join Date
    Nov 2005
    Posts
    5

    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
    Posts
    2,750
    You might want to ask each question as a separate post since each represents a different topic.
    Paul
    ~~~~
    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, 12:40 PM
  2. They created J#, why couldn't they do VB#?
    By Thomas Eyde in forum .NET
    Replies: 290
    Last Post: 12-22-2001, 03:13 PM
  3. How to use OO4O objects in vb dot net
    By kumaran in forum .NET
    Replies: 0
    Last Post: 04-10-2001, 02:59 PM
  4. vb frequently asked questions
    By Anuradha in forum VB Classic
    Replies: 0
    Last Post: 12-13-2000, 12:58 AM
  5. some simple vb questions
    By Larry in forum VB Classic
    Replies: 1
    Last Post: 08-17-2000, 03: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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