CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Niya

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    1,046

    Re: Starting my C# Journey looking for some advice

    You want to use C# as an alternative to PHP ?

    If so, that might be viable but it depends on what you're doing. C# is a general purpose programming language so it can be used to write just about...
  2. Replies
    5
    Views
    2,476

    Re: How to make a pictureBox switch Image

    What page ? Are you talking about a web page ?
  3. Re: In Visual C#, how to refresh Form1 from inside a class?

    If you want to refresh from the class, you must have a reference to the Form inside the class. You will then be able to call Refresh from the reference.
  4. Replies
    6
    Views
    6,018

    Re: VB 2012 Modules and Forms help

    What ?....lol

    You're supposed to call Add:-

    lblAnswer.Text = Add(decNumber1, decNumber2).ToString
  5. Re: vb.net send multiple connections at the same time

    You mean you don't know how to use threads and you have a Thread object created in your code ?
  6. Replies
    6
    Views
    6,018

    Re: VB 2012 Modules and Forms help

    There is no where in that code where you perform any addition. Of course it would be 0.
  7. Replies
    6
    Views
    6,018

    Re: VB 2012 Modules and Forms help

    Here a partial implementation of your assignment. Note that it doesn't adhere to all the requirements made by your instructor. You're gonna have to fix those:-

    Public Class Form1
    Private Sub...
  8. Replies
    6
    Views
    6,018

    Re: VB 2012 Modules and Forms help

    This might be your problem:-

    Public Function Add(ByVal decAdd As Decimal) As Decimal
    Return decAdd = (decNumber1 + decNumber2)
    End Function

    Firstly, you need two parameters if that...
  9. Replies
    2
    Views
    6,941

    Re: Problem when rendering my game.

    I'm assuming your canvas is some kind of control or a Form. You need to set the DoubleBuffered property on this control/Form to True to prevent flicker. Also, don't delete the previous frame when...
  10. Replies
    2
    Views
    3,383

    Re: Help on Garbage Collection

    I'm going to wager that your C++ calls are allocating some native handles. For example, file handles. The .Net GC doesn't know about these resources. That means you have to clean them up yourself....
  11. Re: vb.net send multiple connections at the same time

    You can use that code and some simple multi-threading to achieve this.
  12. Replies
    2
    Views
    5,416

    Re: Installing VB6 on Win7

    Maybe something in this thread can help.
  13. Replies
    3
    Views
    4,964

    Re: Display message every hour

    Here is some sample code that will show a message every hour from when the app was started:-

    Imports System.Threading
    Public Class Form1

    Private g_dtStart As Date

    Private Sub...
  14. Replies
    147
    Views
    153,954

    Re: Please help save VB6

    Wow....can't I go anywhere on the internet without seeing this troll thread ? VBForums wasn't enough ?
  15. Replies
    2
    Views
    2,494

    Re: Problems with Callbacks

    You're supposed to pass delegates I believe. Not Longs or IntPrts. Define a delegate that corresponds with the callback expected and declare the API's parameter to use this delegate as its type. When...
  16. Replies
    3
    Views
    5,137

    Re: Help with Arrays in Murachs Visual Basic

    Well arrays are fixed in VB.Net. When you need to add items to a list its generally recommended you use a List(Of T). It has an Add method.
  17. Replies
    1,291
    Views
    498,555

    Re: Who is the Sexiest Actress¿¿

    Catherine Zeta-Jones is a close second.

    http://www.buzzlogin.com/wp-content/gallery/catherine-zeta-jones/catherine-zeta-jones-14.jpg
  18. Replies
    1,291
    Views
    498,555

    Re: Who is the Sexiest Actress¿¿

    The answer is obviously Jessica Alba.

    http://triallift.files.wordpress.com/2013/03/alba.jpg
  19. Re: Consume a WebService written in Java by our provider from our vb.net App

    Nvm, I see you asked the same question over at VBForums and got some assistance.
  20. Re: Where should my collection of data objects be instantiated?

    If the list is tied closely to the instance of the Form then it should definitely be a field of the Form class. However, if the list is part of some global state then I would opt to use a property of...
  21. Re: Consume a WebService written in Java by our provider from our vb.net App

    How are you communicating with this web service ?
  22. Replies
    3
    Views
    9,490

    Re: DialogResult does not default to None?

    The FormClosing event can provide info on how the Form is going to be closed. That event passes a FormClosingEventArgs which has a property called CloseReason.
  23. Thread: Cheer Up

    by Niya
    Replies
    5
    Views
    7,444

    Re: Cheer Up

    Let 'em watch some George Carlin clips. He is really good at using truth as comedy. He's not PG-13 though.
  24. Re: how to pass an array to function and return array in asedning order

    Alternatively you can use LINQ to sort the array. IMO its the better choice because of its flexibility. You can specify a function for it to use in a transformation. Basically, you can tell it how to...
  25. Re: My aplication uses 100% of a CPU core even if idle.

    Those loops you are using are called spin-waits and they are strongly discouraged for the very reason you are concerned about. Essentially they consume a hell of a lot of CPU cycles while not doing...
Results 1 to 25 of 47
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured