This *should* be simple

Visual Studio .Net

    Next

  • 1. how to show line numbers
    How to show line numbers, now with .NET 2002... Thanks a dozen times Jack
  • 2. Unexpected bug in search in IDE
    Select Help/Search from the IDE and type in "not" (without the quotes). Why do I get an error about the string is invalid?
  • 3. Bug in VS.NET C# code generation for event handlers
    Visual Studio .NET (version 7.1.3088) generates incorrect event handler methods when you are writing event code within a static method. If you have a static constructor, say: static MyClass() and within this constructor, you subscribe to a static event of another class: MyOtherClass.SomeEvent += Visual Studio will offer to generate the code for you: MyOtherClass.SomeEvent += SomeEventHandler(MyOtherClass_SomeEvent); However, it will make the MyOtherClass_SomeEvent method an instance method, not a static method, thus generating incorrect code. The IDE should create MyOtherClass_SomeEvent as a static method. Not a big deal... just an annoyance.
  • 4. Change font?
    How can I change (manually) the font that is used to display the contents of files that are open with the binary editor?

This *should* be simple

Postby BobF » Sat, 10 Sep 2005 08:18:12 GMT

How do you paint transparent sections of a bitmap with the VS.Net 2003
image editor?

I have a bitmap that's been imported into a project.  I want to make the
outer parts of the bitmap transparent.  I've tried MSDN - the instruction
don't help much.  I've searched newsgroups.

Hopefully there's a really simple, easy answer out there that someone is
willing to share.

Re: This *should* be simple

Postby Carlos J. Quintero [VB MVP] » Tue, 13 Sep 2005 18:34:53 GMT

AFAIK, while icons can have transparency, bitmaps not. Using bitmaps you use 
whatever color that you want for transparency and later you tell the GDI 
functions which color you used for transparency (Bitmap.MakeTransparent, 
ImageList.TransparentColor, etc).

-- 

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
 http://www.**--****.com/ 

"BobF" < XXXX@XXXXX.COM > escribien el mensaje 


>>
>> How do you paint transparent sections of a bitmap with the VS.Net 2003
>> image editor?
>>
>> I have a bitmap that's been imported into a project.  I want to make the
>> outer parts of the bitmap transparent.  I've tried MSDN - the instruction
>> don't help much.  I've searched newsgroups.
>>
>> Hopefully there's a really simple, easy answer out there that someone is
>> willing to share. 



Re: This *should* be simple

Postby BobF » Tue, 13 Sep 2005 21:20:57 GMT




Thanks Carlos.  I eventually did enough digging to figure it out.  I'm
exploring wxWidgets and other alternatives now.

Thanks

Similar Threads:

1.Simple MemoryStream Problem - What am I missing?

I am having trouble with MemoryStream....

        Dim Im As Image
        Im = Im.FromFile("C:\smallphoto.Bmp")

        Dim ms As MemoryStream = New MemoryStream

        Im.Save(ms, Imaging.ImageFormat.Bmp)

... I get "Value cannot be null." error on the last line. 

Suggestions?

Thanks
Bob

2.Postback problem when I am using simple data binding on a overridden TextBox Control

Hello,

This example has been cut from a larger context, therefore it looks very 
simple. It has just been created to illustrate the error. I have overridden 
the standard TextBox so it now looks like this:

    public class MyTextBox : System.Windows.Forms.TextBox
    {
        protected string objectValue;

        public string ObjectValue
        {
            get { return objectValue; }
            set
            {
                this.Text = objectValue as string;
                objectValue = value;
            }
        }
    }

I have then created a form and placed several instances of the MyTextBox 
control on it. All the controls bind to a property of a simple class.

---
            Employee employee = new Employee("Heinz", "Svendsen", 36);
            employeeBindingSource.DataSource = employee;
---
            this.firstNameTextBox.DataBindings.Add(new 
System.Windows.Forms.Binding("ObjectValue", this.employeeBindingSource, 
"FirstName", true));
----

Now if I bind the properties of the Employee class to the Text property of 
the MyTextBox everything works fine. But if I bind to the "ObjectValue" 
property the binding system writes the value from the MyTextBox back to the 
employee class everytime I change control.  It thinks that the value has ben 
changed even though I have changed nothing.

If I call EndEdit() on the bindingSource all controls write back the value 
to the Employee class. This also only happens if I databind to the 
ObjectValue property. Everything is ok if I use the Text property.

Any ideas?

Best regards
Henrik Skak Pedersen 

3.Simple Simple question!!!

On Fri, 25 Jun 2004 08:46:24 -0700, "Tim::.." <myatix_at_hotmail.com>
wrote:

>That's not quite it! I have a control in my html code which has an id called FreeTextBox1! The problem is when I put this piece of code in the code behind it asks me to declare the FreeTextBox1!
>
>How do I do this?
>
>
>..:: Control ::..
><FTB:FreeTextBox DesignModeCss="../Styles.css" EnableHtmlMode="False" AutoGenerateToolbarsFromString="false runat="server" id="FreeTextBox1">
>
>
>..:: Code Behind ::..
>  Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
>        If Not Page.IsPostBack Then
>            FreeTextBox1.Text = GetDocument()
>        End If
>    End Sub 'Page_Load 

he was correct.  declare it as mentioned earlier.

-Adam

4.simple binding properties on the page - simple but impossible

Simple problem - binding Visible property of label to Checked
property of radiobutton on the same form.
How do I do that in VS2005?? 
Visible="<%# radiob.Checked %>" - DOESN'T WORK
It was so simple in 2003 but how it can be done in VS05
using binding expressions. Theres no controls listing under 'Expressions'
on the designer properties window.
Please help.

Eric

5.Simple, Simple Question

In ASP.Net a datagridview has an event called RowDataBind.  What's the 
equivalent in a Windows Form Gridview?

Ross 


6. simple databinding on a tabpage not so simple??

7. a simple mind with a simple question

8. simple databinding of a simple string to textbox



Return to Visual Studio .Net

 

Who is online

Users browsing this forum: No registered users and 74 guest