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

Search:

Type: Posts; User: Shuja Ali

Page 1 of 80 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    22
    Views
    3,617

    Re: if then statement and switch statement

    Well, that may be true, but the compiler does not know about that. You need to let the compiler know that it will always be 2 values (like using an Enum).
  2. Replies
    22
    Views
    3,617

    Re: if then statement and switch statement

    What if "arg" value is neither "install" nor "Uninstall"? This is precisely what your code is complaining about.
  3. Thread: Back

    by Shuja Ali
    Replies
    3
    Views
    1,393

    Re: Back

    Where are all the old uncles?
  4. Re: [C#, Win7, Visual C# 2010 express] Help on creating a particular form!

    You could do something like this.


    static int buttonClickCount = 0;
    private void button1_Click(object sender, EventArgs e)
    {
    buttonClickCount++;
    ...
  5. Replies
    3
    Views
    3,722

    Re: DataAdapter.Fill not returning results

    Does your stored procedure actually return a dataset?

    You can always post a sample code instead of the exact working code that you have in your application.
  6. Thread: Back

    by Shuja Ali
    Replies
    3
    Views
    1,393

    Back

    Codegurus -
    :wave:
  7. Replies
    2
    Views
    3,007

    Re: SQL 2008 need help

    For Insert, you will have to use Insert Query and for Update you will have to use UPDATE Query. I guess you will need to take a closer look at how data is inserted or updated in the database. Go...
  8. Replies
    2
    Views
    800

    Re: .NET Framework 1.0 and 3.5

    The answer to your question is "yes".
  9. Thread: How to in C#

    by Shuja Ali
    Replies
    1
    Views
    688

    Re: How to in C#

    You can create a separate class that will do all the operations on the players, like move, change color, etc.
  10. Replies
    3
    Views
    4,933

    Re: 3-tier windows application

    Google would help you.

    Take a look at these samples, each showing a different way of building n-tier model:
    http://msdn.microsoft.com/en-us/magazine/cc188750.aspx...
  11. Re: how to select a record and delete from table afterwards?

    If you are using SQL 2005 then you should look at "OUTPUT DELETED" keyword on MSDN. This can be used with the delete statement to output the deleted rows into a table, etc.
  12. Replies
    4
    Views
    938

    Re: Odbc data source....

    I have never tried this, but you can check "Microsoft ODBC Data Source (ODBC)" in the options that you get when you click on Connect to database.
  13. Replies
    4
    Views
    11,064

    Re: C# Minimize on button click!

    If it is a Winform application and you are just using one form, you can simply write this.Close();.
  14. Replies
    2
    Views
    959

    Re: URGENT!! only one connection per site

    I guess you haven't heard of a connection pool till now. There is no need to keep a connection open. Open the connection, do your work, close it and when you try to open it next again it will be...
  15. Replies
    4
    Views
    938

    Re: Odbc data source....

    Not really an ideal way of doing it. You should use the SQLClient rather than ODBC. What is wrong in storing the uid/pwd in config file? If you are concerned about security, same things can be done...
  16. Replies
    1
    Views
    946

    Re: Background Process using Threads

    You should look at BackgroundWorker Component It will let you do multi-threading without too much of complexity.
  17. Replies
    10
    Views
    1,705

    Re: On error goto....

    Here is a simple solution to your problem.


    Private Sub Form_Load()
    On Error GoTo Errorhandler
    MsgBox "Hello World!"
    Exit Sub

    Errorhandler:
    MsgBox "Error!"
  18. Re: Some Explanation about Difference Between New and Createobject

    You question is already answered in Post #2. Just to add, New is used for early binding where in during design time itself your code knows which object is being created and what all...
  19. Replies
    3
    Views
    3,284

    Re: Linq and SqlBulkCopy performance

    As I mentioned earlier, it is not a good idea to have such huge data loads in a Win Form/ASP.NET application. If you are familiar with SQL Server, Integration Services would be easy to learn. There...
  20. Replies
    1
    Views
    932

    Re: Restore Database from a Remote Backup

    I have never tried it with code, however you can try using the devices rather than directly giving the location. Something similar to this
    USE master
    GO
    RESTORE DATABASE MYDATABASE FROM TAPE =...
  21. Re: Please help me install SQL Server 2008 for the umpteenth time

    What is the name of the SQL instance.

    Well for one thing SQL Server installation is not just for any computer user. Sometimes even the most experienced IT professionals have problems installing...
  22. Replies
    5
    Views
    2,837

    Re: Help with C# console application

    The solution is already given, you just need to write the code. Just write it. :thumb:
  23. Replies
    3
    Views
    3,284

    Re: Linq and SqlBulkCopy performance

    I would rather use Sql Server Integration Services package to perform such kind of heavy data loads. Writing code for it and then processing 130M records would definitely take time. SSIS has been...
  24. Replies
    5
    Views
    1,671

    Re: vb.net download file

    Yes it is possible using VB.NET as long as you are developing a Web Application.
  25. Replies
    1
    Views
    1,355

    Re: Slide Show in C#

    Actually both your threads have a common solution. You need to go through System.Diagnostics.Process class on MSDN. You can get the currently running processes, their window titles and handles just...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured