Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

andiyuniar

@andiyuniar
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Which is the best way to set default value for properties
    A andiyuniar

    Apparently, i missunderstanding what i read before. componenmodel.defaultvalue is used for other purpose (designer). thanks

    Visual Basic question

  • Which is the best way to set default value for properties
    A andiyuniar

    I used the second code, but i didn't realize until your reply. Yes, the 2nd code doesnt work if we change the value to 'true' I googling to msdn and find this statement: "A DefaultValueAttribute will not cause a member to be automatically initialized with the attribute's value. You must set the initial value in your code."

    Private MyVar as Boolean = False
    <DefaultValue(False)> _
    Public Property MyProperty() As Boolean
    Get
    Return MyVar
    End Get
    Set
    MyVar = Value
    End Set
    End Property

    and it make me more confuse,what is the function of this <DefaultValue(False)>

    Visual Basic question

  • Which is the best way to set default value for properties
    A andiyuniar

    Hi there, I'm newbie here, I want to know, to set default value for property, which is the best way? 1.

    Private _AddFoto As Boolean = False
    Public Property AddFoto() As Boolean
    Get
    Return _AddFoto
    End Get
    Set(ByVal value As Boolean)
    _AddFoto = value
    End Set
    End Property

    Or 2.

    Private _AddFoto As Boolean
    <ComponentModel.DefaultValue(False)> _
    Public Property AddFoto() As Boolean
    Get
    Return _AddFoto
    End Get
    Set(ByVal value As Boolean)
    _AddFoto = value
    End Set
    End Property

    Thanks

    Visual Basic question

  • set binary image in Image web control.
    A andiyuniar

    Thanks. it help me.

    ASP.NET database help tutorial question

  • set binary image in Image web control.
    A andiyuniar

    In my web application, I need to display binary image from database in image web control. I can convert binary data to image, but how to bind it to Image web control? Please help me.

    ASP.NET database help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups