Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
F

frossie

@frossie
About
Posts
24
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to make the text bold in richTextBox?
    F frossie

    ResultForm.richTextBox1.Text += "Return Result # " + (beginResultPage + i + 1).ToString() + "\r"; ResultForm.richTextBox1.Text += gresult.resultElements[i].title + "\r"; ResultForm.richTextBox1.Text += gresult.resultElements[i].snippet + "\r"; ResultForm.richTextBox1.Text += gresult.resultElements[i].URL + "\r\r"; Hi from the codes above, i want to bold some of the results that is recieved through the richTextBox control in the form. For eg, if i want to make bold the title that is produced using this line of code, ResultForm.richTextBox1.Text += gresult.resultElements[i].title + "\r"; What do i need to add in to ensure that the title is in bold? I tried with FontStyle.Bold but i can't seem to get this right. Help!,

    frossie

    C# help tutorial question

  • richtextbox question
    F frossie

    ResultForm.richTextBox1.Text += "Return Result # " + (beginResultPage + i + 1).ToString() + "\r"; ResultForm.richTextBox1.Text += gresult.resultElements[i].title + "\r"; ResultForm.richTextBox1.Text += gresult.resultElements[i].snippet + "\r"; ResultForm.richTextBox1.Text += gresult.resultElements[i].URL + "\r\r"; ResultForm.richTextBox1.Text = ResultForm.richTextBox1.Text.Replace("**", ""); ResultForm.richTextBox1.Text = ResultForm.richTextBox1.Text.Replace("**", ""); ResultForm.richTextBox1.Text = ResultForm.richTextBox1.Text.Replace(" ", " "); Hi reading from the codes above, i want to bold some of the results that is recieved through the richTextBox control in the form. For eg, if i want to make bold the title that is produced using this line of code, ResultForm.richTextBox1.Text += gresult.resultElements[i].title + "\r"; What do i need to add in to ensure that the results is in bold? frossie

    C# question

  • displaying results in another form
    F frossie

    Hi i have a form1 that allows user to search for words. Then i have another form2 that is for displaying the results, taking into consideration the parameters from form1. However i have errors telling me that the richTextBox1 that i'm using it in form2 is inaccessible due to its protection level. Error 1 'LookUpShakespeare.Form4.richTextBox1' is inaccessible due to its protection level G:\WebServices\Project\Projects\LookUpShakespeare\LookUpShakespeare\Form2.cs 126 32 LookUpShakespeare Error 2 'LookUpShakespeare.Form4.richTextBox1' is inaccessible due to its protection level G:\WebServices\Project\Projects\LookUpShakespeare\LookUpShakespeare\Form2.cs 127 32 LookUpShakespeare Error 3 'LookUpShakespeare.Form4.richTextBox1' is inaccessible due to its protection level G:\WebServices\Project\Projects\LookUpShakespeare\LookUpShakespeare\Form2.cs 135 40 LookUpShakespeare Error 4 'LookUpShakespeare.Form4.richTextBox1' is inaccessible due to its protection level G:\WebServices\Project\Projects\LookUpShakespeare\LookUpShakespeare\Form2.cs 136 40 LookUpShakespeare Error 5 'LookUpShakespeare.Form4.richTextBox1' is inaccessible due to its protection level G:\WebServices\Project\Projects\LookUpShakespeare\LookUpShakespeare\Form2.cs 137 40 LookUpShakespeare Error 6 'LookUpShakespeare.Form4.richTextBox1' is inaccessible due to its protection level G:\WebServices\Project\Projects\LookUpShakespeare\LookUpShakespeare\Form2.cs 138 40 LookUpShakespeare Can anyone help me to solve this? FORM1 using LookUpShakespeare.GoogleSvc; namespace LookUpShakespeare { public partial class Form2 : Form { public Form2() { InitializeComponent(); } public TextBox t1 = new TextBox(); public TextBox t2 = new TextBox(); private void btnGenerate_Click(object sender, EventArgs e) { String buildTerm = ""; if (radioButton5.Checked == true) buildTerm = word.Text; else buildTerm = "\"" + word.Text + "\""; if (radioButton2.Checked == true) buildTerm = "-" + buildTerm; if (txtSearchString.Text != "") if (radioButton4.Checked == true) buildTerm = " OR " + buildTerm; else buildTerm = " " + buildTerm; if (checkBox3.Checked == true) { t1.Text = "true"; }

    C# help question

  • Creating windows application using C#
    F frossie

    Oh ic.. it works! haha thanks! Btw, what's the difference between form2.show and form2.showdialog? I mean i tried with both but i can't spot any visible difference..can u explain in some simple terms? hehe.

    frossie

    C# question csharp winforms help

  • Creating windows application using C#
    F frossie

    i created 2 forms in a project. 2 forms namely, form1 and form2. form1 uses a linklabel control (System.Windows.Forms.LinkLabel) to open up form 2. So when i click on this text "open form 2" which is the link label, it should open up the windows form2. SOrry but i don't really know how to explain in much detail, hope the above helps abit...thanks!

    frossie

    C# question csharp winforms help

  • Creating windows application using C#
    F frossie

    Hi everyone Can anyone help me out with this... In a windows application, i have got 2 windows forms. And i wan to link the forms together with a link label in the first form. How do i go about writing the codes? Thanks in advance :)

    frossie

    C# question csharp winforms help

  • problem with updating into database.
    F frossie

    aspx.vb file Public Class Default1 Inherits System.Web.UI.Page Dim inc As Integer Dim txtEventDate As Date Dim txtEventTrigger As Date Dim objConn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source= " & Server.MapPath("~/App_Data/db1.mdb")) Public Sub LoadData() Dim da As New OleDbDataAdapter("SELECT * FROM checklist_Items", objConn) Dim ds As DataSet = New DataSet() da.Fill(ds, "checklist_Items") MyDataList.DataSource = ds.Tables("checklist_Items").DefaultView MyDataList.DataBind() End Sub Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then LoadData() End If End Sub Sub Update_dc(ByVal ID) '---updates the database--- Dim sql As String = "UPDATE checklist_Items SET date_Completed=#" + txtEventDate + "# WHERE ID=" + ID Dim comm As New OleDbCommand(sql, objConn) objConn.Open() comm.ExecuteNonQuery() objConn.Close() MyDataList.EditItemIndex = -1 LoadData() End Sub Sub Update_dt(ByVal ID) '---updates the database--- Dim sql As String = "UPDATE checklist_Items SET date_Trigger=#" + txtEventTrigger + "# WHERE ID=" + ID Dim comm As New OleDbCommand(sql, objConn) objConn.Open() comm.ExecuteNonQuery() objConn.Close() MyDataList.EditItemIndex = -1 LoadData() End Sub Sub MyDataList_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs) Handles MyDataList.UpdateCommand Dim tbox As TextBox Dim ID0 As String Dim sday As DateTime '---retrieves the key for the row--- ID0 = MyDataList.DataKeys(e.Item.ItemIndex) '---find the textbox control containing the dateCompleted tbox = CType(e.Item.FindControl("txtEventDate"), TextBox) txtEventDate = tbox.Text sday = txtEventDate If (ID0 = 5) Then Update_dc(ID0) MsgBox("eventdate " + txtEventDate) '---retrieves from another database--- Dim con = "Provider=Microsoft.Jet.OLEDB.4.0;" & _

    ASP.NET database design sysadmin help announcement

  • How to use a list control and a pop up calendar together?
    F frossie

    In a DataList, when the user clicks on the Edit button, a cell (TableCell) and a link are created at runtime. When the user clicks on the link, a calendar pops up. It closes itself when the user clicks on a date. My problem is that I don't know how to populate the cell with the date that the user chooses from the calendar. I can, however, get the date from the calendar to populate the text outside the datalist. I'd be appreciate if you coud show me some samples on how to achieve this. Thanks. The problem here is i am able to populate the textbox outside the datalist but not inside a datalist.

    frossie

    ASP.NET help tutorial question

  • Data type mismatch in criteria expression
    F frossie

    If (ID = 2) Then TextBox1.Text = ds.Tables("programs").Rows(ID).Item(2) Dim temp1 As New DateTime(Year(TextBox1.Text), Month(TextBox1.Text), Day(TextBox1.Text)) MsgBox("temp1=" + temp1) temp1 = temp1.AddDays(7) ds.Tables("programs").Rows(ID + 1).Item(3) = temp1 End If i keep getting this error "Object reference not set to an instance of an object". Why isit so?

    frossie

    ASP.NET database design docker help question

  • Data type mismatch in criteria expression
    F frossie

    ok thanks alot. it finally solved that problem.

    frossie

    ASP.NET database design docker help question

  • Data type mismatch in criteria expression
    F frossie

    can you show me an example code to put in access or the codefile? becos i don really get what u say.

    frossie

    ASP.NET database design docker help question

  • Data type mismatch in criteria expression
    F frossie

    i keep having runtime errors everytime i try to update my database in the datalist. Can someone pls help me rectify them? aspx. file this is in the EditItemTemplate of the datalist control. <%#DataBinder.Eval(Container.DataItem, "ID")%> <%#DataBinder.Eval(Container.DataItem, "checklist_Item")%> aspx.vb file Sub MyDataList_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs) Handles MyDataList.UpdateCommand Dim tbox As TextBox Dim ID As String 'Dim txtEventDate, txtEventTrigger As Date 'Dim ID, txtEventDate, txtEventTrigger As String Dim txtEventDate, txtEventTrigger '---retrieves the key for the row--- ID = MyDataList.DataKeys(e.Item.ItemIndex) 'MsgBox("1") '---find the textbox control containing the title tbox = CType(e.Item.FindControl("txtEventDate"), TextBox) txtEventDate = tbox.Text 'MsgBox("2") '---find the textbox control containing the price tbox = CType(e.Item.FindControl("txtEventTrigger"), TextBox) txtEventTrigger = tbox.Text 'MsgBox("3") '---updates the database--- Dim sql As String = "UPDATE programs SET date_Completed='" + txtEventDate + "' , date_Trigger='" + txtEventTrigger + "' WHERE ID='" + ID + "'" Dim comm As New OleDbC

    ASP.NET database design docker help question

  • How to create a pop up window using asp.net?
    F frossie

    Hi all, i have a problem here, can anyone please guide me more? I want to click on a title which will link itself to open a pop up window that shows a checklist of things. How can i go about writing the codes to make a window pop up with all the contents i want inside? Thanks in advance for taking up your time.

    frossie

    ASP.NET tutorial question csharp asp-net help

  • How to create a popup window in Visual Studio 2005?
    F frossie

    Hi all, i have a problem here, can anyone please guide me more? I want to click on a title which will link itself to open a pop up window that shows a checklist of things. How can i go about writing the codes to make a window pop up with all the contents i want inside? Thanks in advance for taking up your time.

    frossie

    Visual Basic tutorial question csharp visual-studio help

  • Insert into access database from a webform using ASP.NET
    F frossie

    Sorry there, but i'm not able to create a webform that allows insertion into database still. i have tried various methods including using a datagrid, gridview, formview, dataview in asp.net. But im pretty confused at using an accessdata source and what not to write in the file.aspx.vb page? frossie

    ASP.NET csharp asp-net database help tutorial

  • Insert into access database from a webform using ASP.NET
    F frossie

    Hi everyone, I have a web form that has the following fields: name, address, postal code, country, email, contact number. My Access database is called vcalendar.mdb. I have a table called users that has the following text fields: name, address, pcode, country, email, contact. I need to know how to take the information from the web page and insert it into the database. Believe it or not, I can't seem to find any examples. I've seen a lot that say something like Value, Name, etc. but I haven't found any that show multiple values into an Access database using VisualBasic. I hope someone can help me out with the backend codes.. thanks in advance. frossie

    ASP.NET csharp asp-net database help tutorial

  • Sending Email from Asp.net
    F frossie

    there will be an error if i put that sentence. Cos it say that InnerHTML is not part of a panel control. sigh. frossie

    ASP.NET csharp asp-net database help tutorial

  • Sending Email from Asp.net
    F frossie

    Thanks for the above codes.:) But i would be more interested if you can further guide me on how to get the HTML of my panel to put it into my MailMessage.Body. By the way, i have already set the BodyFormat to HTML. If u can, please show me a sample code? Thanks in advance. frossie

    ASP.NET csharp asp-net database help tutorial

  • Sending Email from Asp.net
    F frossie

    Can u show me some sample codes to go about doing it? What can i put here, MailMessage.Body = ? How do i send all the multiple values from different textboxes to the body of an email? Currently, i have inserted a asp:panel in my webform with all the textboxes in it, how can i add the panel of stuff into the MailMessage.Body? frossie

    ASP.NET csharp asp-net database help tutorial

  • Sending Email from Asp.net
    F frossie

    Hi everyone. i have a query. Do anyone by chance know how to send a webform from asp.net to an email address? The webform itself consists of many textbox values and i do not want to just send a value across but retrieve multiple values from multiple textboxes and send it across to the user as an email. Please help me. Thanks in advance. frossie

    ASP.NET csharp asp-net database help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups