Search:

Type: Posts; User: Cooi

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    947

    C# Condition Issue?

    When setting a button's visibility to true in a condition, checking its visibility later still returns it false. This is done in Visual C# 2008, and the (merged) screenshot below pretty much explains...
  2. Replies
    12
    Views
    1,411

    VS 2008 Re: TextBox Colored Text Failing

    It has nothing to do with the length of the words, I just want(ed) specific words to be colored just like Visual Studio colors keywords.
  3. Replies
    8
    Views
    1,357

    Re: Multiple Forms Noob Question

    Thanks for your help guys! That's a thing I really struggled on in C#.

    -Cøi.
  4. Replies
    8
    Views
    1,357

    Re: Multiple Forms Noob Question

    Can I use the 'form1' instance in the Form2 class outside the "public Form2()" event? As I said, I want the DoSomething() to be on ButtonClick() event. (Sorry if this is a stupid question).
  5. Replies
    8
    Views
    1,357

    Re: Multiple Forms Noob Question

    Can you give me an example please? I'm pretty beginner at C#, so I don't really get what you say.
  6. Replies
    8
    Views
    1,357

    Multiple Forms Noob Question

    Hi all.

    In Visual Basic, which I'm used to, you can just have 2 Forms doing events on each other:

    [Form1]

    Private Sub ButtonClick() 'The event that will show Form2
    Form2.Show()
    End Sub
  7. Thread: My First Project

    by Cooi
    Replies
    24
    Views
    15,908

    VS 2010 Re: My First Project

    I don't have Visual Studio 2010 on this computer, but by viewing the images I would give your application an 8 out of 10.
    It's a nice layout for someone who's only beginner, especially the images of...
  8. Replies
    12
    Views
    1,411

    VS 2008 Re: TextBox Colored Text Failing

    The words getting colored are working fine, except the fact that you can't select any text anymore and if the textbox contains scrollbars (I mean if the text gets bigger) the scrollbars are...
  9. VS 2010 Re: How to check if value has decimals and if it has decimals, remove them?

    If you only want the decimal part to be removed and not be "adjusted" (like you want 2.5 to be 2 and not 3),
    I suggest this:

    If x.ToString.Contains(".") Then
    Dim result As Integer =...
  10. Replies
    7
    Views
    1,070

    Re: VB2008 much slower than VB6?

    Actually I think VB.NET is a lot faster than VB6.
    VB6 is terribly slow (maybe except this because of VB.NET handling the code not the same like VB6).
  11. Replies
    12
    Views
    1,411

    VS 2008 TextBox Colored Text Failing

    Hi all.

    So, I'm trying to make a RichTextBox which makes seperate words colored as you type them (like in Visual Studio itself ;)).

    The problem is, it's absolutely not working as I want and...
  12. Replies
    2
    Views
    1,316

    VS 2008 Re: Change Windows Color Scheme

    Could please someone help me? It's getting boring to always watch the same colors on the edge of each window...

    Help is appreciated.
  13. Replies
    1
    Views
    1,807

    Re: Noughts and Crosses Game - Wrong Selection

    Button ForeColor's are always gray when the buttons are not enabled.

    Also, some hints:

    Instead of using
    btn1.Text = ""
    you can also use (unlike vb6)
    btn1.Clear

    also, something notices me...
  14. Replies
    6
    Views
    8,229

    VS 2008 Re: Deleting repeated Lines in Textbox

    Thank you for the reply,
    it works well and I was stuck at this easy piece of code.
  15. Replies
    6
    Views
    8,229

    VS 2008 [RESOLVED] Deleting repeated Lines in Textbox

    Hi all.

    If I have a multi-line textbox like this:

    ----

    Line 1
    Line 1
    Line 1
    Line 2
  16. Replies
    2
    Views
    1,316

    VS 2008 Change Windows Color Scheme

    Hi all.

    I want to make a small program in visual basic that can change the windows Vista / 7 color scheme, not one of the default list, but RGB, like in the 'Color mixer' options when you go to...
  17. Replies
    3
    Views
    3,277

    Re: Play .wav Sound in Resources?

    This is a .wav file in the resources.
    I already have found the solution:



    System.IO.Stream s = a.GetManifestResourceStream("<Project name>.Resources.Sound1.wav");
  18. Replies
    3
    Views
    3,277

    Play .wav Sound in Resources?

    Hi all.

    I found this code on msdn:



    System.Reflection.Assembly a = System.Reflection.Assembly.GetExecutingAssembly();
    System.IO.Stream s =...
  19. Replies
    2
    Views
    726

    VS 2008 Re: Battery Life Meter

    Thank you.
  20. Replies
    2
    Views
    726

    VS 2008 [RESOLVED] Battery Life Meter

    Hi all.

    Title explains it, I'm trying to get the battery life meter in percent, so it will be shown on a progressbar when you're on a portable computer.
  21. Replies
    13
    Views
    1,285

    Re: Displaying Text to Center of Screen

    Try
    System.Threading.Thread.Sleep(ShowTime)
  22. Replies
    3
    Views
    633

    VS 2008 Re: Get MSN Messages and Auto-Respond

    Code bank forum? Can you give me a link to it, please..
  23. Replies
    13
    Views
    1,285

    Re: Displaying Text to Center of Screen

    Try adding this code:



    Private Sub ShowText(ByVal sText As String, ByVal TextColor As Color, ByVal ShowTime As Integer) 'ShowTime in miliseconds!
    Dim frmText As New Form
    ...
  24. Replies
    3
    Views
    633

    VS 2008 Get MSN Messages and Auto-Respond

    Hi all.

    I'm trying to making an auto-responding program for different Instant Messaging chat programs, like MSN or XFire.
    I don't know if it's possible to do this in Visual Basic. If not, feel...
  25. Re: Me.SizeChanged and Me.Resize? What's the difference?

    If they fire at the same time (I mean same event), why are there 2 events then that do the same things?
  26. [RESOLVED] Me.SizeChanged and Me.Resize? What's the difference?

    Hi all.

    What's the difference between the SizeChanged event and the Resize event?
  27. Replies
    9
    Views
    4,692

    VS 2008 Re: Cancel / Discard Code Being Executed

    I know that there are alot of other solutions I can do to stop the code being ran by booleans and stuff like that, but is there absolutely no way to cancel the execution completely?
  28. Replies
    9
    Views
    4,692

    VS 2008 Re: Cancel / Discard Code Being Executed

    That is a helpful hint, but are you confirming there is no possibility to discard the code being executed immediatly?
  29. Replies
    9
    Views
    4,692

    VS 2008 Cancel / Discard Code Being Executed

    Hi all.

    Is it possible to stop a Sub from executing its code when you, for example, click a button?

    Example:



    Private Sub ExecutedCode()
    'doing things here
  30. Replies
    7
    Views
    4,682

    Re: Disable form dis-focusing when executing code

    I'll give an example of what the program does:



    string[] filePaths;
    string allText;
    FolderBrowserDialog SelectFolder = new FolderBrowserDialog();

    private void button1_Click(object sender,...
  31. Replies
    7
    Views
    4,682

    Re: Disable form dis-focusing when executing code

    It's a code that will always take a long time, because it's checking files you select in a folder, so it can't be sped up.

    Edit: and the thing I want is showing the status on controls in the form.
  32. Replies
    7
    Views
    4,682

    Disable form dis-focusing when executing code

    Hi all,

    When my program is executing code it's disfocusing the form so you can't do anything on the form. Is there a possibility to fix that? I already have heard of the Backgroundworker, but I...
  33. Replies
    21
    Views
    4,517

    VS 2008 Re: Opacity of a Usercontrol

    It works fine, but now my question is how to make the form a child of a panel, because adding an owned form, for me, looks the same like Form2.Show()
  34. Replies
    21
    Views
    4,517

    VS 2008 Re: Opacity of a Usercontrol

    I think there's no solution for this.
  35. Replies
    21
    Views
    4,517

    VS 2008 Re: Opacity of a Usercontrol

    Thanks, I'll try that when I have finished breakfast.
  36. Replies
    21
    Views
    4,517

    VS 2008 Re: Opacity of a Usercontrol

    Well, when I'm trying to fade out a childform in a panel (ChildForm.TopLevel = False will prevent errors) its always 100&#37; visible unless the opacity is 0.0
    So, I didn't found a solution for this yet.
  37. Replies
    21
    Views
    4,517

    VS 2008 Re: Opacity of a Usercontrol

    I think I have found another solution. I could use Forms instead of UserControls. By changing the Form's borderstyle to None and then add it later as a childform, you wont notice any difference. Am I...
  38. Replies
    21
    Views
    4,517

    VS 2008 Re: Opacity of a Usercontrol

    I was already thinking of this solution when there's no other.. Doesn't suprise me it's not possible in VB, though..

    Anyway, I'll try it now
  39. Replies
    21
    Views
    4,517

    VS 2008 Re: Opacity of a Usercontrol

    there is an image behind the panel, so I want the control and all its child controls inside it to fade out to the image behind it.



    I want to be able to do both.
  40. Replies
    21
    Views
    4,517

    VS 2008 Re: Opacity of a Usercontrol

    My question is not the animation. It's how to change the opacity of the whole control like changing the opacity of a form, but instead of that a control.
Results 1 to 40 of 55
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width