User Profile

Collapse

Profile Sidebar

Collapse
SEhtesham
SEhtesham
Last Activity: Jan 24 '12, 10:33 AM
Joined: Aug 22 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • SEhtesham
    started a topic How to add Superscript text in c#.Net

    How to add Superscript text in c#.Net

    hi,
    i want to add some static text in my C#.Net code.But i want some text to be subScript and some to be SuperScript..
    Please guide how can i do this?
    See more | Go to post

  • How to move a button using Javascript on MouseOver

    hi,
    I want to move a button to new location at the mouseOver event in JavaScript..
    Please have a look at my code below.
    Code:
    function move() {
       b1.style.position = "relative";
       setTimeout(b1.style.left = 100,1000)
       }
    
    <input type="button" name="b1" value="click" onmouseover="move()"/>
    Im able to move the button to...
    See more | Go to post

  • How to delete a Cookie in Asp.Net MVC at the click of Logout.

    Hi,
    I have an Asp.Net MVC application coded in C#.Net.
    I have two users Admin and General User.There is a Home View which is visible to both the users.Once the user logs in there is also a Logout tab.When the user clicks the Logout or Navigates to the Home page it should get log out and the cookies should get clear.He should have to Log In again to access the Authenticated pages.
    Below is how im saving the Cookies.
    ...
    See more | Go to post

  • How to get the Hour part from Date Time Picker.

    Hi,
    I have a DateTimePicker, whose
    dateTimePicker1 .Format = Time
    dateTimePicker1 .ShowUpDown = True
    But now i want only the hour part from the Date Time Picker as i have to compare the hours with some logic in my Database.

    Please Guide how cn i do this?
    See more | Go to post

  • SEhtesham
    started a topic DatagridView Background Issue

    DatagridView Background Issue

    Hi,
    Im trapped into a silly issue,I have a datagridView,wh ich is filled with the Click of the Button.My Issue is i can see the data only when i select a row.When no row is selected by mouse then its just showing blank cell,whereas data is actually there in the datagridView.I know its something with the color setting from the DatagridView Properties.
    I have tried and corrected all the cell Style properties related with that DatagridView.An d...
    See more | Go to post

  • how to show a progress bar while generating a excel from database

    hi,
    I have a form and a button on that form.When the user clicks on the button an MS-Excel sheet is generated from MS-Sql Server 2005 and saved in a particular location.As this generation of excel tkes sometime to complete,what i want to do is i want to show a progressbar loading till the entire sheet is generated.
    Showing the progress bar will help the user to understand that the generating of excel is under process.
    Code:
    
    
    ...
    See more | Go to post

  • SEhtesham
    started a topic How to export data from SQL Server 2005 to Excel
    in .NET

    How to export data from SQL Server 2005 to Excel

    Hi,
    My application is in VS2008 and coded in Vb.net.
    I have my database in Sql Server 2005.I have a Database table say Table1 in My Database named Test.
    Now i want to export the data in Table1 to a MS-Excel(.xls) file on the click of a button.
    An excel file should be generated after the user clicks on the button and the generated Excel file should have the data that is present in Table1.
    Can anyone provide me with...
    See more | Go to post

  • How to Compare every record in Excel file and save to Database Table.

    Hi,

    I have my application in VS2008 and coded Vb.net.

    My query is i want to save record from an excel sheet to my Database Table.

    But i dont want to insert the Excel sheet as a whole rather i want to insert the record in my database table Row wise.Inserting the records is not the only thing but my major issue is i want to check and compare the Primary Key column of my Table with the Column in my Excel....
    See more | Go to post

  • How to use a String Array for passing Values

    Hi,

    I have a simple query but im just not able to get it right.

    Have a look at my sample code below
    Code:
    Sub Function1
    
    My Code Here
    Function2(Year,Month)
    
    End Sub
    
    Sub Function2(Year,Month)
    Dim Str as String()
    
    for 1 to 30
    Dim MyDate As New Date(Year, Month, i)
    Str = MyDate.DayOfWeek.ToString()
    Next
    Return Str
    ...
    See more | Go to post

  • How to get numeric value from a string

    Hi,
    I have a StatusStrip and is filled with Year in the format say "June2009 - May2010".
    I want to get the years from this string like 2009,2010 from the above string.
    Please suggest how can i do this.
    I have tried this but not able to further separate June2009.
    Please have a look
    Code:
     Dim strYearDet As String()
     strYear11, strYear2 As String
     strYearDet = StatusStrip1.Items(0).Text.Split("-")
    ...
    See more | Go to post

  • dude i know how to fill the datagridview...
    i want to fill the DatagridViewCom boboxColumn.Ple ase help how can i fill that combobox in DatagridView.Da tagridViewCombo boxColumn should have the values of columns Value1 and Value2 from Table1.
    See more | Go to post

    Leave a comment:


  • How to add Items in the DatagridViewComboboxColumn of DatagridView during runtime

    Hi,

    My application is in VS2008 and coded in VB.net.

    I have a datagridView(DG V) on one of my form.DGV contains a column of type DatagridViewCom boboxColumn.I have another column of SrNo.

    Consider Table1 to be the table from where my DatagridView is filled which contains following fields SrNo,Value1,Val ue2.

    My requirement is i want to fill the values in my DatagridViewCom boboxColumn from...
    See more | Go to post

  • How to validate a cell of datagridview in vb.net

    Hi,
    I have a datagridview on my form.There is a column of roll no in the datagridview.
    I want that whenever user presses anyother key than a number key(ex:1,2,3,4. ...)than immediately i should get a messagebox that only numbers allowed.
    I have tried the below code on datagridView Cellvalidation event but its not working.
    Please suggest on what event and how can i do such validation.
    Code:
    If GridView2.Item(2,
    ...
    See more | Go to post

  • Thanks mate for your reply.I think i was not able to explain u what i wanted.I have got a simpler way to do it.I just want that some data that is populated on form1 should be displayed in form2 as well.
    This was my grid for Form1.I want the same data also on form2 when user clicks a certain button on form1.So i can simply assign these values to Datagrid in form2.
    Code:
      DGVStudRecord.Rows.Add(dr(0), dr(1), dr(2), dr(3), dr(4), dr(5))
    ...
    See more | Go to post
    Last edited by SEhtesham; Sep 23 '11, 11:22 AM. Reason: Correction

    Leave a comment:


  • How to compare two Date values in two different columns of a table

    Hi,

    My application is in VS2008 coded in vb.net.I have a table with three columns

    FromDate,Todate and Schedule.FromDa te and ToDate will have date values whereas Schedule will have a any of these values(weekly,M onthly,Yearly)

    In my Form i have given some provision to the user to check the records.My requirement is The currentdate that is Today's date should be compared with the values of Fromdate and ToDate.First...
    See more | Go to post

  • hi frnds..
    im done with my issue,
    here is the code
    Code:
    checklistbox.SetItemChecked(checklistbox.FindString(classesChecked(i).Trim), True)
    thanks
    See more | Go to post

    Leave a comment:


  • SEhtesham
    started a topic CheckListBox in vb.net using for Loop

    CheckListBox in vb.net using for Loop

    hi,
    My application is in VS2008 coded in vb.net.I have a form with a datagridview which loads data from databaase.there is one column where data is stored separated by comma's.Like Name,Surname,La stName name this column as Testing.I have a checklistbox on another of my form.When the user selects a particular row from datagridview another form open and the row selected records are populated in the control of my other form.My issue is i want...
    See more | Go to post

  • How to compare the value of DataGridViewComboboxColumn in datagridView

    Hi,
    My application is in VS2008 coded in Vb.net
    I have a datagridView on one of my form.This is filled from the database at the load event of the form.The datagridView also has a column of type DatagridViewCom boboxcolumn.
    This DatagridViewCom boboxcolumn already has 4 values added to it in its collection during design time.My requirement is when the data is loaded in the datagridview, the corresponding record which is supposed...
    See more | Go to post

  • Hi,
    actually i used the wrong term may as duplication.
    My issue was the records were getting repeated.Like just for an example
    I have a Designation master which has only 3 designations in it
    MD,CEO,Presiden t.But when i was running the Query and the data was getting filled using dr it was repeatedly adding the same records again till the loop was executing.
    Like my table1 had 3 records and table2 had 5 so it was executing...
    See more | Go to post

    Leave a comment:


  • Hi frnds done with my Issue.
    Im just checking in the combobox that weather the data in dr already exists in combo or not.This way
    Code:
    if combo1.Items.Contain(dr(0))=false then
    combo1.Items.Add(dr(0))
    end if
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...