User Profile

Collapse

Profile Sidebar

Collapse
Aads
Aads
Last Activity: May 9 '13, 08:59 PM
Joined: Mar 3 '08
Location: UK
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Okay - I found the solution in some other forum.

    Since I'm using a server button control & calling a javascript function from within it, it executes the client code & then it performs a post back because of which the value is being lost.

    Hence there are two solutions for this:

    1. Either use an HTML button control or input element with type = Button & then call the function OR
    2. Modify the...
    See more | Go to post

    Leave a comment:


  • Text box flashes the value returned from Client script & then disappears

    Hi,

    Since I'm new to web development, I'm learning few things by trying out myself.

    Anyway, I've a web service which returns the sum of two numbers & I've called this web service in my client code. The web service runs fine so does everything else. However, the problem is when I set the result retrieved from the Web service to the text box, at run time, the text box just flashes for a second displaying the...
    See more | Go to post

  • Aads
    replied to How to make an application look busy?
    in .NET
    Thanks for your quick reply - that's a great idea to solve this problem! But was just wondering if there is any alternative or a way wherein we could make the application look busy.

    Many thanks.
    Aads
    See more | Go to post

    Leave a comment:


  • Aads
    started a topic How to make an application look busy?
    in .NET

    How to make an application look busy?

    Hi all,

    Is there a way or method wherein I can make my windows application busy as long as a method on a separate thread is executing without interrupting the running thread?

    For example, when I execute a method on a separate thread (not on the UI thread) which takes around 10 seconds to complete; it is in this interim that I would want my application to be busy as though the method was called from the UI thread....
    See more | Go to post

  • Aads
    replied to Terminating UI thread's method
    in .NET
    Thanks for your quick reply - It did work in the sample application that I created.

    Thanks,
    Aads
    See more | Go to post

    Leave a comment:


  • Aads
    started a topic Terminating UI thread's method
    in .NET

    Terminating UI thread's method

    Hi all,

    Is there a way wherein I can terminate a method that is started on the UI thread?

    I've the following code where I'm trying to achieve the same but in vain.

    Code:
    System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer();
    private bool _KillUIThreadMethod = false;
    
     private void LongOperationMethod()
            {
                try
    ...
    See more | Go to post

  • Aads
    replied to Debugger disappears
    in .NET
    Hi Plater,

    Thanks for your quick reply.

    When I debug the application the control advances to the next statement as it should, but after a gap of some time, say for example 40 seconds, the application pauses for 5 seconds & then both the debugger & the application disappears.

    When I say debugger I mean the yellow highlighted line that moves when I press F10/F11 & when I say application...
    See more | Go to post

    Leave a comment:


  • Aads
    started a topic Debugger disappears
    in .NET

    Debugger disappears

    Hi all,

    I'm working on a C#.NET windows application which comprises of 80 projects under a single solution & the application is based on CAB (Composite Application Blocks). The problem I face is that the debugger disappears most of the times during debugging. I'm running out of my patience because of this problem. By the way, I'm using Visual Studio 2008 IDE.

    I've got to admit that it is a multithreaded...
    See more | Go to post

  • Aads
    started a topic Excel Chart - Scatter Lines
    in .NET

    Excel Chart - Scatter Lines

    Hi,

    Can anyone please help me in figuring out what change needs to be done to the below code in order to show the chart (the chart I want is displayed only when I click the "Switch Row/Column" button on the toolbar, I want it to be displayed automatically without manually clicking the button - please see the attached file). Below is my code:


    Code:
     Private Sub DisplayGraph()
            Try
    ...
    See more | Go to post

  • Aads
    replied to Is Object Datatype right?
    in .NET
    Yeah that's not a bad idea either - I tried & it worked!

    Thanks,
    Aads...
    See more | Go to post

    Leave a comment:


  • Aads
    replied to Is Object Datatype right?
    in .NET
    Thanks for your quick reply. Using Events is not a bad idea, however, I need to do bit of R & D on that.

    Thanks,
    Aads...
    See more | Go to post

    Leave a comment:


  • Aads
    replied to Is Object Datatype right?
    in .NET
    That's great! Good logic! and guess what it worked! As you said, I declared an Interface in the dll project & then implemented the same in both exe project's MDI Form & in the classes of the dll project & then used the interface as the datatype instead of object. Now I can see the members in the intellisense. Cheers buddy I appreciate it.

    Thanks,
    Aads...
    See more | Go to post

    Leave a comment:


  • Aads
    replied to Is Object Datatype right?
    in .NET
    Well that's a good question. You are absolutely right that a dll project should be independent of the exe project.

    Well I'm working on a mechanical project containing intensive mathematical calculations - the UI is just an exe containing MDI form & the other dll projects contains only mathematical calculations. I have a ToolStripProgre ssBar control on the MDI form of the exe project which needs to be updated from the dll project...
    See more | Go to post

    Leave a comment:


  • Aads
    replied to Is Object Datatype right?
    in .NET
    Yeah the accessibility of my methods are all okay i.e. they are all public.Since I'm not able to typecast it to the exact type & instead using Object datatype as a solution, I'm not able to see the members in the intellisense.

    Thanks,
    Aads...
    See more | Go to post

    Leave a comment:


  • Aads
    replied to Is Object Datatype right?
    in .NET
    That means it will be available to me superficially.. Having said that is there any way that I can typecast it to my exact type?

    Thanks,
    Aads...
    See more | Go to post

    Leave a comment:


  • Aads
    replied to Is Object Datatype right?
    in .NET
    Thanks for your quick reply.

    If I typecast it to Form, It would only show the standard form members not the one which I have written. For example: I might have written a public function by name AddTwoNumbers, which would not appear in the intellisense as it is not a member of a standard form but the member of my class. I want this member to be displayed in the intellisense. In fact it could be any user defined class for that matter....
    See more | Go to post

    Leave a comment:


  • Aads
    started a topic Is Object Datatype right?
    in .NET

    Is Object Datatype right?

    Hi there,

    I've two projects - one is an exe & the other is a dll. I add a reference of the dll project to the exe so that it can access dll project's types. Now in my dll project I've code which requires reference to the exe project; this is not possible as it would result in circular dependency. Hence all I'm doing is I'm passing exe's type say for example the MDIForm of the exe project to the dll project with datatype being...
    See more | Go to post

  • Cheers buddy - that solved my problem.

    Thanks,
    Aads
    See more | Go to post

    Leave a comment:


  • Aads
    started a topic Opening a DOS window with some path

    Opening a DOS window with some path

    Hi there,

    Can anyone tell me how to open a DOS window from a VB.NET app pointing to my own path which I pass as a parameter. For ex: I want the DOS window to be opened with D:\TestBed\MyAp p\. All I want to know is how do I pass the path "D:\TestBed\MyA pp" to the DOS window.

    Thanks in advance,
    Aads
    See more | Go to post

  • Solution

    Hi there,
    • First of all add a new form to your project.
    • Drag one Combobox from the toolbox & add it to you form; rename the combobox to cmbMovies.
    • Paste the below code in your form.
    • You will have to change the connection string to point to your database.


    Code:
        Private mResetOnClear As Boolean = False
        Public Property ResetOnClear() As Boolean
            Get
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...