I have a question, i need to store the value of richtextbox to MySQL and retrive the value from MYSQL to richtextbox. can you give me a code in vb.net? and will the formating be affected like the font and alignment?
I am saving the text in a Rich Text Box(vb.net) into the DB. It saves fine..(Datatype--long text). The text has modified appropriately in the DB. But, when I try to retrieve it, it says, invalid format or cannot convert to integer (If Date of Birth is in the Text) or some vague errors...Please help THE ERROR : The file format is invalidHERE IS THE ACTUAL TEXT in the RTB --Notice the Bold and the UnderlineVITAL SIGNS:
I basically need to hold a lot of data - the structure is that of a five dimensional array holding integers.What would be the most efficient way of storing this in a file (I was thinking of XML - your opinion?) that would also be quick to extract.
is there a way in storing image and retrieving images using ms access and display in picture box randomly or just like a slideshow?which slides form left to right?or vice versa..i have some codes here but i does not display.
Here is the code I used to store an image in my database (SQL Server 2008 R2) using VB 2010. The images get stored but the problem is the clarity of the image is lost when retrieved and seen in a picture box.
Public Function InsertUpdateImage(ByRef _SqlConnection As System.Data.SqlClient.SqlConnection, ByVal _Image As System.Drawing.Image, ByVal _ImageFormat As System.Drawing.Imaging.ImageFormat) As Integer
I have an application which saves contacts from Outlook/Csv onto a disk, from a Treeview. Now I want to provide security for this file. I want to provide encryption using AES algorithm to the file before it is saved on the disk. My problem here is how I encrypt it before saving the contents from the treeview into the file on the disk. Also I want to decrypt the file contents and load treeview if i find the file is encrypted.
Is there a way to set session variables during login that are then available to reports? We have a reporting services server where we move and denormalize data from our transaction system for reporting purposes. In order to allow our users to login with the same user name and password from the transactional system we have set up custom forms authentication and after much trial and error it is finally working. In addition we have the authorization accessing our transactional system so that any changes in user authority is immediately reflected in Reporting Services.
Our problem now is that we would like to add some additional features such as locking down parameters depending on user authority/groups in our transactional system. We have found a way to do it but it's inefficient, basically we have stored procedures that will query our transactional system to check for access. The problem is that these queries will often be run for every report request even though the answer is unlikely to change. It would be nice to have access to session level data that can be set once during log in and then accessed from the reports.
I have a rich text box which I use in order the user is able to add pictures, coloured writing, different font etc... however I need to load specific text in the rich text box when the user load the Form.how I can add (I guess) the HTML to load this every time the user load the form.
P.S the text will change depending on who loads the form so I can not do a simple
RichTextBox1.LoadFile("C:Documents and SettingsDesktopSigniture.rtf")
I am going to try to explain this the best I can I didn't develop the original version of this, or the part that rights it to the database.in our company, there is a program that takes PDF files and stores them in our mysql database as blobs. The blobs are attached to inventory items by the inventory items ID. they are basically certificates. That is basically all I know about it.
however, I was asked to show the PDF files for certain associates that may want to view them. ie, if a sales person looks up item 1234 and there is a stored PDF certificate for the item, be able to access the pdf and show it to the employee if they want to see it.The code that I found that was previously wrote to view the PDFs takes the blog, create the file in the app.path directory, and then uses shell to launch it like a normal PDF.
I don't have a problem using the adobe pdf reader to launch the file, but is there a more efficient way other than creating the file on any machine in our company where someone wants to view the PDF ?
I have worked out how to get the MySql data into the dataset:Dim DataSet_1 as New DataSet()
Dim SQL_Cmd_1 as New MySqlCommand("Select * from Table where feild = X") Dim SQL _Dat_Adapter_1 as New MySqlDataAdapter (SQL_CMD_1) SQL_Cmd_1.Connection = New MySqlConnection("server=localhost;user id=user;password=pwd;database=db") SQL_Cmd_1.Connection.Open() 'MessageBox.Show("Connection Opened Successfully") SQL_Dat_Adapter_1.Fill(DataSet_1) SQL_Cmd_1.Connection.Close()
If the query returns 8 column values and I want to read those values into 8 feilds on a windows form - How do I do it?
On the main form of my application, I have a Rich Text Box which is where the user will be entering information. The text is black. then, i have a button which calls the dialogue "Notes" A dialogue appears, with a rich text box. the user should then be able to enter text into the box, click "OK", and the text entered into the Notes dialogue be inserted to the rich text box on the main form -- with the font colour "Red". The rest of the text in the main rich text box on the main form should remain black.
I'm Making a Simple syntax highlighter and I'm Doing the highlighting in the text Changed event of a RTB and for obvious reasons I can't re highlight the whole document each time someone presses a key so i highlight one line each time the text changes. But this creates a Problem. If someone pastes code into the RichTextBox It only highlights the last Line. So is there a way to get if the user typed the text in with his keyboard or pasted it from the clipboard in the text Changed event?
MySQL databases exists for saving values as strings (text only). Is there any way that i could store files with the same speed as a mysql command ? I know that it depends on the file size but lets say that the file is "Avatar.jpg" 50KB... I ve tried FTP but this is not what im looking for. e.g. You want your users been able to upload a file like the [Add This Attachment] button does in dreamincode.net and you dont have any background on PHP/HTML/Javascript/ASP.NET just VB.NET and the basics of MySQL plus you dont want to use it for a website. How do you accomplish this? Something silly that ive tried was opening an image as text then update the mysql server with that text but it didnt work backwards after i wrote the text on the file and oppened it ...it said that the image was corrupted.
everyone! I've been at this for a while, and I'm not sure how this issue can be resolved:I'm working on a project in VB.Net, and I have a form with a rich text box. I have a groupbox with 4 radio buttons inside that are intended to change the font color of the text. Coincidentally, I have to repeat this same functionality for a 2nd set of radio buttons that would change the text font family.
At any rate what I've only been able to do is the following to successfully change the font color of whatever text I highlight in the rich text box:
Private Sub rbtnBlack_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rbtnBlack.CheckedChanged rtbxTextEditor.SelectionColor = Color.Black End Sub Private Sub rbtnRed_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rbtnRed.CheckedChanged
[Code]...
Is there a way that I could write a sub (I'm assuming I would use a sub, since I don't think I need to return anything, thus eliminating the use of a function) that would handle the action of changing the selected text color in the rich text box without having to use a separate sub for each radio button? Mind you, per my teacher's specs, she doesn't use a button handler for any of this.
I will show 3 columns of text in rich text box. i want show the column border with color.i can separate the texts with tabs or spaces but showing data in columns and cells will improve the visual of my program .
Okay, so what I want to do is directly output formatted RTF text to a Rich Text Box control in VB.NET. I don't want to find the text, select it and color it as it is not practical for what I'm doing. I've tried outputting RTF code but that isn't working either. Can I actually do this or will I have to write a dll?
I am working on an applictation to scan windows files to check for missing files, i have a couple questions on how to do this.I would like to use the %systemroot%system32 that way that it doesn't matter what drive letter it is, i'm not sure how to do this because when i tried it, it told me the file i was looking for didn't exist (in this case C:windowssystem32 undll32.exe) which does exist. Is there some way to use the %systemroot%?
Also, i am trying to print the resaults to a rich text box such as if rundll32.exe is missing put in the box "rundll32.exe is missing". How do I allow it to write it in the box, I tried the print command, but it didn't work.
I've been wanting to create a look like the attached jpeg Ive been looking around for a few hours for a solution to make text boxes transparent or have a background image. I've found a few projects on this form and elsewhere which include transparent text boxes, but every time I try to use it the way I need to--with the text box over a picture box--there are always various rendering errors. Most of the time, the text box is transparent if its just placed on the form (not over any other controls). But when I place them over other controls (like picture boxes), the 'transparent background' always take on the color of the form background.
This is one that I was trying to use. I found a few others around, but they all had the same render errors more or less.[URL]...I figured transparency or background images would have been supported natively. Anyone have any ideas? Maybe I missed something in my searches. I didn't really see anything which adds background images in text boxes (rich or otherwise). At this point, I'd just like anything that works, so it doesn't really need to have transparency--just a simple background image would be great.
I want to transfer data from one rich text box to another but when i use RichTextbox2.text = RichTextbox1.text it transfer just text not images.if there is any way to do so?
I have ~ 1 page how to that is currently in a text file which I want to add to a richtext box.I am just wondering if there is some way I can just copy/paste it so it keeps its formatting etc.
have more than one text color in the Rich Text Box, because when I highlight one word and use the color changer, it changes ALL of the words in the text box, and I want to know how to be able to have a specific word, or words, be a different color.
above code is working fine but when i retreive data from database in .rtf format & I try to protect some text then its not working in first time it works second time