C# උදවුවක්

Aventador RLR

Junior member
  • Mar 1, 2016
    143
    11
    18
    kandy
    ළමයිනේ...මම software එකක් හදනව..ඒකේ එක තැනකදි වෙනත් form එකක තියන textbox එකක value එක අනිත් form එකෙන් එන massage box එක ok කරද්දි clear වෙන්න ඔනේ:love:..එත් තාම code එක ලියා ගන්න බැ:confused:...දන්න කවුරු හරි උදවුවක් කරන්න....:(:(
     

    Aventador RLR

    Junior member
  • Mar 1, 2016
    143
    11
    18
    kandy
    26696352_1593864077371152_837488442_n.jpg

    ඕකෙ විදිහට employee number textbox එකේ තියන value එක emp password කියල තියන form එකේ mark එක click කරද්දි කරාම employee number textbox එකේ value එක clear වෙන්න ඕනේ...:(:( please help
     

    0cean

    Member
    May 25, 2017
    841
    58
    0
    N/A
    ළමයිනේ...මම software එකක් හදනව..ඒකේ එක තැනකදි වෙනත් form එකක තියන textbox එකක value එක අනිත් form එකෙන් එන massage box එක ok කරද්දි clear වෙන්න ඔනේ:love:..එත් තාම code එක ලියා ගන්න බැ:confused:...දන්න කවුරු හරි උදවුවක් කරන්න....:(:(

    Machan Screenshot ekakwath danna. :dull:

    Method 01 in Form 01
    {
    }

    Method 03 in Form 01 (New Method)
    {
    clr textbox;
    }

    Method 02 in Form 02
    {
    aftere msgBox...
    call Method 03();
    }
     
    • Like
    Reactions: Aventador RLR

    Aventador RLR

    Junior member
  • Mar 1, 2016
    143
    11
    18
    kandy
    Machan Screenshot ekakwath danna. :dull:

    Method 01 in Form 01
    {
    }

    Method 03 in Form 01 (New Method)
    {
    clr textbox;
    }

    Method 02 in Form 02
    {
    aftere msgBox...
    call Method 03();
    }

    screen shot එකක් දෑම්මා....:yes:
    ;);):love:thank you යාලුවා
     

    prazadx

    Well-known member
  • Sep 2, 2011
    2,008
    578
    113
    Gampaha
    Create a static class and call em;
    see below link.
    https://stackoverflow.com/questions/14368129/c-sharp-global-variables


    You can declare the valuables in your static class as follows;

    public static class Globals
    {
    public const Int32 BUFFER_SIZE = 10; // Unmodifiable
    public static String FILE_NAME = "Output.txt"; // Modifiable
    public static readonly String CODE_PREFIX = "US-"; // Unmodifiable
    }



    And you can use em as below;

    String code = Globals.CODE_PREFIX + value.ToString();
     
    • Like
    Reactions: Aventador RLR

    Aventador RLR

    Junior member
  • Mar 1, 2016
    143
    11
    18
    kandy
    Create a static class and call em;
    see below link.
    https://stackoverflow.com/questions/14368129/c-sharp-global-variables


    You can declare the valuables in your static class as follows;

    public static class Globals
    {
    public const Int32 BUFFER_SIZE = 10; // Unmodifiable
    public static String FILE_NAME = "Output.txt"; // Modifiable
    public static readonly String CODE_PREFIX = "US-"; // Unmodifiable
    }



    And you can use em as below;

    String code = Globals.CODE_PREFIX + value.ToString();

    :love:;);)thank you යාලුවා

    form එකට call කරලා attributes access කරන්න බෑරිද:confused:
     

    prazadx

    Well-known member
  • Sep 2, 2011
    2,008
    578
    113
    Gampaha
    :love:;);)thank you යාලුවා

    form එකට call කරලා attributes access කරන්න බෑරිද:confused:

    Ehema karanna epa. Then hema form ekakma hemathissema memory eke thiyaganna wenawa. Onitika thiyagana anith ewa flush karala danna.

    Karanna epa kiwwe beri hinda nemei, best practice ekak nemei hinda.
     

    Aventador RLR

    Junior member
  • Mar 1, 2016
    143
    11
    18
    kandy
    Ehema karanna epa. Then hema form ekakma hemathissema memory eke thiyaganna wenawa. Onitika thiyagana anith ewa flush karala danna.

    Karanna epa kiwwe beri hinda nemei, best practice ekak nemei hinda.

    එල මචෝ...මම try එකක් දාලා බලන්නම් හවසට:love::love: