Click here to Skip to main content
15,168,235 members

Comments by jaipe (Top 13 by date)

jaipe 18-Dec-12 3:23am View
   
Hi, I am not getting the grip on it, please help, below is the code which I am using for highlighting normal words.

private void HighLightRTBLISTJOBS()
{
string tex = txtText.Text;
if (tex.Length > 0)
{
int jp = -1;
int searchStart = 0;
while ((jp = rtbListJobs.Find(tex, searchStart, RichTextBoxFinds.None)) > -1)
{
rtbListJobs.Select(jp, tex.Length);
rtbListJobs.SelectionBackColor = Color.YellowGreen;
searchStart = jp + tex.Length;
}
}
}

Kindly help
jaipe 13-Jul-12 2:10am View
   
Sorry, updated it now :)
jaipe 11-Jan-12 1:46am View
   
Not getting the exact idea from the link, please help
jaipe 24-Nov-11 1:51am View
   
Thank you very much, worked well :)
jaipe 6-Oct-11 6:14am View
   
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

kindly advice
jaipe 17-Sep-11 3:03am View
   
Pls guide me, i am confused
jaipe 16-Sep-11 9:45am View
   
Thankyou very much, exactly what i was looking for, kindly let me know same on file count to a textbox based on the datetimepicker1 to datetimepicker2
jaipe 9-Aug-11 5:02am View
   
Hi, i had checked with the datatable and dataset, i am still not getting the report generated. Please help
jaipe 23-Apr-11 4:01am View
   
Hi, i have changed the code, but i am getting the same text of which ever final row is selected, like .. i have selected 4 rows with control key + mouse click
i am getting as ,2008,2008,2008,2008, of column 1
jaipe 23-Apr-11 0:39am View
   
Hi Tarakeshwar, i am getting only one value to textbox even by trying your advice, kindly advice on the same pls
jaipe 9-Mar-11 22:20pm View
   
Thank you, i had it with trigger.... but i will start from stored procedures, coz there are many more to be inserted :)

Cheers
jaipe 24-Feb-11 8:45am View
   
Thank you, i have added one more column as (Permit) int to the table... i am bit confused on how to proceed, below is the code which i am using on button login click

private void btnLogon_Click(object sender, EventArgs e)
{
SqlConnection cn = SRData.DRSQLConnection.Instance;
try
{
cn.Open();
}
catch (Exception er)
{
MessageBox.Show(er.Message);
}
SqlDataAdapter objAdpt = new SqlDataAdapter();
DataTable objDt = new DataTable();
objAdpt.SelectCommand = new SqlCommand("select * from users where username = @username AND password = @password", cn);
objAdpt.SelectCommand.Parameters.AddWithValue("@username", txtUserName.Text.Trim());
objAdpt.SelectCommand.Parameters.AddWithValue("@password", txtPassword.Text.Trim());
objAdpt.Fill(objDt);
if (objDt.Rows.Count > 0)
{
this.Hide();
SCRIBE_REPORTS sr = new SCRIBE_REPORTS();
sr.Show();

}
else
{
MessageBox.Show("Username/Password Wrong", "Credentials Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
cn.Close();

}
jaipe 24-Feb-11 8:41am View
   
Thanks for the info
Started working on it, will get back to you