hi,
i have a rich text box in my application and a save button.Can anyone tell me how to send that text from rich text box to database .Thanks
sdhawan
-2
Junior Poster
Recommended Answers
Jump to PostYou can do it like this:
SqlCommand cmd = new SqlCommand("INSERT INTO table (richTxt) VALUES('" + richTextBox1.Text + "')"); cmd.ExecuteNonQuery();
Thanks
Jump to PostSave the image somewhere and then use
Process.Start()
to open Paint.Here's an example:
string imagePath = @"C:\image.jpg"; // This will open the image in Paint System.Diagnostics.Process.Start("mspaint", imagePath");
Thanks
All 6 Replies
farooqaaa
48
Enthusiast
sdhawan
-2
Junior Poster
sdhawan
-2
Junior Poster
farooqaaa
48
Enthusiast
farooqaaa
48
Enthusiast
sdhawan
-2
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.