User Profile

Collapse

Profile Sidebar

Collapse
todashah
todashah
Last Activity: Jul 18 '12, 08:00 AM
Joined: Feb 23 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • todashah
    started a topic check constraint

    check constraint

    how can i put check constraint for date while creating a table.
    I want to pass a constant as a date and do not want to pass as a database variable.
    See more | Go to post

  • todashah
    replied to Why use delegates?
    In C# Console Application if u want to fire event then
    u have to compulsory declare delegate bcoz delegate
    is a base of any event & without delegate event is not
    possible in C# console application.

    I Hope your doubt is clarify...
    See more | Go to post

    Leave a comment:


  • How to Capture Click Event of Button While Pressing Enter Key From Textbox ?

    Hi ! All,

    I want to developed simple web page using asp.net 2.0
    & C#. This web page page contain one text box & two
    button just like a page of google. Assume that text of Button
    is First & Second. I want to Provide a functionality that once
    i type anything in text box & press enter key then First button
    is invoke & whatever text typed in text box is display in
    message...
    See more | Go to post

  • i have give
    http://localhost/myvd/Default.aspx in internet explorer to
    run this web page. Now to preformed authentication it is asked
    for user id & password if i give user id & password of window os
    then its give error & not allowed me to access page. I have given
    read,write & execute permission for this application when i create
    virtual directory...
    See more | Go to post

    Leave a comment:


  • todashah
    replied to MessageBox from asp.net and c#
    If u don't want to use java scripts then other option is also available in .net framework 2.0.

    Select Website Menu from that select Add References... select .NET tab
    & then select System.Windows. Forms then click ok button.

    Now if u use Messagebox then write following syntax in click event of button

    System.Windows. Forms.MessageBo x.Show("Hello", "Message", System.Windows. Forms.MessageBo xButtons.YesNo) ;...
    See more | Go to post

    Leave a comment:


  • Problem With Window Authentication in ASP.net 2.0

    Dear Programmer,
    I have a developed simple asp.net application to learn how window
    authentication is work ? To perform window authentication i have
    make following changes.

    1) First i create virtual directory name (myvd) for my application.
    2) Next i open iis & from that i have select my virtual directory
    & from action menu i have selected properties then i have select
    Directory...
    See more | Go to post

  • todashah
    started a topic WinSock API
    in .NET

    WinSock API

    How i can create console application for the Iterative-connection oriented server and client for the same in C# ?
    See more | Go to post

  • todashah
    replied to C# - Adding values to combo box items.
    in .NET
    Hi ! I have assume that u want to assign roll no to name of student which are
    store in combo-box whenever user select name of student. Write following code
    to do this.

    First declare int[] j; in class defination of form.

    then write following coding in page load event of form.
    j = new int[comboBox1.Items .Count];
    for (int i = 0; i < j.Length; i++)
    ...
    See more | Go to post

    Leave a comment:


  • How to Display Message Box on Screen while using Asp.net with C# ?

    Hi ! Guys,
    I have no idea about How to Display Message Box on Screen while using Asp.net with C# ? Help Me.
    Thanks in advance...
    See more | Go to post

  • todashah
    replied to validation
    in .NET
    U have not specified whether it is window or web application ? In case of window application using C# set PasswordChar Property of Textbox using * or any character u like. After that u r not able to use Cntr + C & Cntr + V for copy & paste respectively..U have no need to write any code for this.

    Bye...Take Care...Enjoy Coding

    Dhaval Shah
    See more | Go to post

    Leave a comment:


  • todashah
    replied to OO techniques Get/Set functions
    in C
    To Generate Correct output Replace Your Code within main function from following code.

    Entity m;
    GeoLocation gl;
    m.Location(gl.X Y(2,15));
    GeoLocation glt=m.Location( );
    cout<<gtl.Y()<< endl;
    return 0;

    Bye..Take Care..Enjoy Coding
    See more | Go to post
    Last edited by Ganon11; Apr 15 '08, 08:04 PM. Reason: Removed Quote to make post show

    Leave a comment:


  • todashah
    replied to Opening and closing Form C#
    in .NET
    If u don't want to close first form(form1) when u navigate to onther form(form2)..
    Write down following code.

    Form2 frm=new Form2();
    frm.showDialog( );

    This code work perfectly.Altho ught form2 display on screen but it is modal so u can't navigate to from1 untill u close from2.

    Bye...Take Care....Enjoy Coding
    See more | Go to post

    Leave a comment:


  • What is the advantage to declare destructor as a virtual in c++ ?

    I have idea about virtual function in c++. It is supported dynamic binding but i have no idea about what is the advantage to declare any destructor as a virtual in c++ ? Explain with suitable example....

    Bye...Take Care...Give Reply
    See more | Go to post

  • todashah
    replied to Simple Text box validation
    in .NET
    To perform this kind of validation in C# write down following code in Leave event of textbox.

    int l = textBox1.Text.L ength;
    if (l != 4 || l < 0 || l > 9999)
    MessageBox.Show ("Invalid No");
    else
    MessageBox.Show ("Valid No");

    Make necessary changes in this code so it is execute in VB.net..
    Bye...Enjoy...
    See more | Go to post

    Leave a comment:


  • todashah
    replied to listbox and arrays
    in .NET
    As far as C# is concern write down following code to copy content
    of listbox to array....

    int k = listBox1.Items. Count;
    int[] i = new int[10];
    int a = 0;
    for (int j = 0; j < k; j++)
    {
    i[a++] = int.Parse(listB ox1.Items[j].ToString());
    }

    Here i have assume that listbox contain integer...
    See more | Go to post

    Leave a comment:


  • todashah
    replied to Regarding textbox control events
    in .NET
    In a click event write down following code...

    dgv.refresh() ;

    Here i have assume that name of grid control is
    dgv & through that name i have call refresh
    method..

    Bye...Enjoy Coding
    See more | Go to post

    Leave a comment:


  • todashah
    replied to string[][]
    in .NET
    You can declare 2darray of string in C# following way.

    string [,] s =new string [5,10];

    Here s is an array that hold 5 string & length
    of each string is 10 characters....

    Bye...Enjoy Coding
    See more | Go to post

    Leave a comment:


  • todashah
    replied to converting string to date
    in .NET
    Dear Write down the following Code...
    First add name space Globalisation using

    using System.Globaliz ation;

    then to convert given string(31/12/2008) to a date write down following
    two line code.

    CultureInfo culture = new CultureInfo("en-GB");

    DateTime dt = Convert.ToDateT ime("31/12/2008",culture);...
    See more | Go to post

    Leave a comment:


  • todashah
    replied to cannot create an object
    in .NET
    Dear how u r able to create object of object ? bcoz Instance is an object
    of ResourcePackBui lder class & u try to create object of Instance which
    is not possible because it is an object & u can call Built() function using this Instance
    object....
    See more | Go to post

    Leave a comment:


  • todashah
    replied to " Digit Catching From TextBox With C# "
    in .NET
    Replace your code int personNr = Convert.ToInt32 (txtPersNr.Text );
    with
    int personNr = Convert.ToInt32 (txtPersNr.Text .Substring(2, 2));
    so u r able to store 12 in personNr from given no 331256...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...