User Profile

Collapse

Profile Sidebar

Collapse
amitjaura
amitjaura
Last Activity: Nov 21 '08, 08:24 AM
Joined: Aug 13 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Datagridview to reflect changes made in Server database

    Well i have a datagridview in my application and i want it to reflect any changes made in server database instantly with some trigger or so?
    I have a choice to use timer and get the desired results by binding datagridview after every 5 sec's or so but i dont want to do this .As it ll affect the performanc e of my application.Ple ase suggest a better way out......
    See more | Go to post

  • But one problem is coming I am using usercontrol as form1(in which I want to change the background color of checkbox) and System.Windows. Forms.Form as form 2(from which I want to raise an event of usercontrol(For m1)). Form1 and Form2 are not related to each other,means they are parent and child...
    The coding you gave is related to the concept of parent and child...and it is not working ..I have tried a lot...
    One thing I tried...
    See more | Go to post

    Leave a comment:


  • Thank you sir,
    Now I am trying to do this...
    See more | Go to post

    Leave a comment:


  • Hello Aritra
    I am not that much sure but if you can first put the data of gradview in hashtable n than to datatable,it can be possible.But first you have to make the datatable with same no of columns n same types
    See more | Go to post

    Leave a comment:


  • amitjaura
    started a topic How to call an event in one form from another?
    in .NET

    How to call an event in one form from another?

    My problem is that on button click of one form(Form1) I want to change the background color of checkbox in another form(Form2) ..One way I found is to call the form and pass the variable through constructor..Bt I don't want to create new form...The form in which I want 2 send the key is already opened n I don want to call the constructor.. Is it possible to call an event on form2 through the pressing of button on form 1....If yes then how?
    ...
    See more | Go to post

  • please reply some one
    See more | Go to post

    Leave a comment:


  • Use if IListSource for binding of combobox to the collection

    Now I am stuck at a point where I want to bind combobox with datasource.The coding I tried is:::::::::::::

    BusLayer.Surgeo n objsurgeon = new BusLayer.Surgeo n();
    BusLayer.Surgeo nCollection surgeonCollecti on;
    surgeonCollecti on = objsurgeon.GetS urgeonCollectio n();

    cmbChiefSurgeon .DataSource = surgeonCollecti on.Collection() ; cmbChiefSurgeon .ValueMember...
    See more | Go to post

  • Thank you everybody

    I have used a class returning the values and I am using object of that class
    and it is doing good:
    the coding is:::::
    Code:
    public class info
        {
            String initial,transplantDate;
           public info(String initial, String transplantDate)
           {
               this.initial = initial;
               this.transplantDate = transplantDate;
           }
    ...
    See more | Go to post

    Leave a comment:


  • Code:
    infoPatient(out initial,out transplantDate );

    How will we get values returned by the
    infoPatient(out initial,out transplantDate )
    This function will return two values (initial,transp lantDate).Shoul d we get the values in collection?

    Also you used the return type of function as string but we have two values to return....what if the two values are of different type?...
    See more | Go to post

    Leave a comment:


  • Can we return more than one value through function/method in C#

    The coding on which I am working is::

    Code:
     private String infoPatient()
            {
                String initial;
                String transplantDate;
    
                openConnection();
                SqlDataAdapter adpGender = new SqlDataAdapter("select gender from tblRegistration where pID='"+patientID+"'", con);
                DataTable dtGender = new DataTable();
    ...
    See more | Go to post
    Last edited by Curtis Rutland; Aug 25 '08, 01:07 PM. Reason: Added Code Tags - Please use the # button

  • amitjaura
    replied to tooltip on listbox
    in .NET
    private void lstRecommendedT est_MouseHover( object sender, EventArgs e)
    {

    tp.Show(lstReco mmendedTest.Sel ectedItem.ToStr ing(), lstRecommendedT est, x, y, 1300);
    this.toolTip1.S how(@@@@@Here I want to show the listbox item on which the mouse is hovered@@@@@, x, y, 1300);)
    }



    private void lstRecommendedT est_MouseMove(o bject...
    See more | Go to post

    Leave a comment:


  • amitjaura
    replied to tooltip on listbox
    in .NET
    I hav used this code


    private void lstRecommendedT est_MouseHover( object sender, EventArgs e)
    {

    ToolTip tp = new ToolTip();
    tp.Show("hi", lstRecommendati ons, x, y, 1130);
    }



    private void lstRecommendedT est_MouseMove(o bject sender, MouseEventArgs e)
    {
    ...
    See more | Go to post

    Leave a comment:


  • amitjaura
    replied to tooltip on listbox
    in .NET
    I dont know any thing abt it....It wud b nice if u will tell me...
    See more | Go to post

    Leave a comment:


  • amitjaura
    started a topic tooltip on listbox
    in .NET

    tooltip on listbox

    Can anybody guide me how to use tooltip on listbox
    See more | Go to post
No activity results to display
Show More
Working...