Why this code does not work: 
Author Message
 Why this code does not work:

Why this code does not work:
TextBox1.BackgroundImage=Image.Fromfile(strFilePath)


Wed, 21 Sep 2005 13:26:16 GMT  
 Why this code does not work:
Hello,


Quote:
> Why this code does not work:
> TextBox1.BackgroundImage=Image.Fromfile(strFilePath)

The BackgroundImage property is inherited from System.Windows.Forms.Control.
There is no implementation avaliable for the textbox. The property doesn't
show up in the control's property-window.

Regards,
Herfried K. Wagner



Wed, 21 Sep 2005 19:24:59 GMT  
 Why this code does not work:

That seems like the reason but if so, does anyone know why do they include it in the TextBox members list in the helpfile as follows:

TextBox Members
      BackgroundImage (inherited from Control) Gets or sets the background image displayed in the control.

If its not implemented surely its misleading and annoying to list it?

How does anyone know which members are fully implemented or is it just through experience?

Regards

Wayne Phipps

  Hello,


  > Why this code does not work:
  > TextBox1.BackgroundImage=Image.Fromfile(strFilePath)

  The BackgroundImage property is inherited from System.Windows.Forms.Control.
  There is no implementation avaliable for the textbox. The property doesn't
  show up in the control's property-window.

  Regards,
  Herfried K. Wagner

  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.465 / Virus Database: 263 - Release Date: 25/03/2003



Wed, 21 Sep 2005 20:00:46 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Why does the following code not work?

2. this code does not work, why?

3. Help Please...Code does not work why?

4. Why code will not work?

5. Why does this piece of code work with Word 97 but not Word 2000

6. why will this code not work

7. Find/Replace code not working - why?

8. why the @#$@% does this code not work

9. Anyone know why this code only works in 32bit and not 16 bit vb 4

10. Why this code does not work properly?

11. Why does this code not work?

12. Why does this simple code not work?

 

 
Powered by phpBB® Forum Software