Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
SuggestionRe: C# Help with new level start in Unity Pin
Richard MacCutchan20-May-15 21:32
mveRichard MacCutchan20-May-15 21:32 
GeneralRe: C# Help with new level start in Unity Pin
F-ES Sitecore20-May-15 22:20
professionalF-ES Sitecore20-May-15 22:20 
GeneralRe: C# Help with new level start in Unity Pin
Member 1170715120-May-15 23:46
Member 1170715120-May-15 23:46 
GeneralRe: C# Help with new level start in Unity Pin
Richard MacCutchan21-May-15 1:28
mveRichard MacCutchan21-May-15 1:28 
AnswerRe: C# Help with new level start in Unity Pin
mirdana31-May-15 21:08
mirdana31-May-15 21:08 
QuestionTCP Comm. <Data handling help needed> Pin
Member 1168908120-May-15 16:07
Member 1168908120-May-15 16:07 
AnswerRe: TCP Comm. <Data handling help needed> Pin
Richard MacCutchan20-May-15 21:29
mveRichard MacCutchan20-May-15 21:29 
QuestionRetreive blob as text SQLite Pin
DPaul199420-May-15 7:51
DPaul199420-May-15 7:51 
I have an SQLite database with a column type of BLOB. But, here I inserted a text, because is a very long text and data types TEXT,STRING or VARCHAR does not support such a length. How can I show the text in a richTextBox? The code so far:
C#
using (Conexiune.getConnection())
            {
                string select = "SELECT * FROM legislatie WHERE capitol = '" + SimulatorManager.LegislatieCapitol + "'";
                SQLiteCommand cmd = new SQLiteCommand(select, Conexiune.getConnection());
                cmd.CommandType = CommandType.Text;
                SQLiteDataReader rdra = cmd.ExecuteReader(CommandBehavior.CloseConnection);
                try
                {
                    while (rdra.Read())
                    {
                        data = (byte[])(rdra["date"]);
                    }
                }
                catch (InvalidOperationException ex)
                {
                    MessageBox.Show(ex.Message);
                }
                MemoryStream ms = new MemoryStream(data);
                richTextBox1.Text = data.ToString(); // wrong, it shows System.IO in richtextbox
            }

AnswerRe: Retreive blob as text SQLite PinPopular
Richard Deeming20-May-15 8:13
mveRichard Deeming20-May-15 8:13 
GeneralRe: Retreive blob as text SQLite Pin
DPaul199420-May-15 8:20
DPaul199420-May-15 8:20 
Questionpropeties in consuming class Pin
Cianide20-May-15 3:49
Cianide20-May-15 3:49 
AnswerRe: propeties in consuming class Pin
Sascha Lefèvre20-May-15 4:03
professionalSascha Lefèvre20-May-15 4:03 
Questionserver and client Pin
Nick196120-May-15 2:15
Nick196120-May-15 2:15 
AnswerRe: server and client Pin
Richard MacCutchan20-May-15 2:35
mveRichard MacCutchan20-May-15 2:35 
GeneralRe: server and client Pin
Nick196120-May-15 2:48
Nick196120-May-15 2:48 
GeneralRe: server and client Pin
Nick196120-May-15 2:51
Nick196120-May-15 2:51 
GeneralRe: server and client Pin
Richard MacCutchan20-May-15 3:07
mveRichard MacCutchan20-May-15 3:07 
GeneralRe: server and client Pin
Nick196120-May-15 12:22
Nick196120-May-15 12:22 
QuestionIIS stop the webservice application when I migrated 1.1 to 4.5 framework Pin
Narayan Mitra20-May-15 1:19
Narayan Mitra20-May-15 1:19 
Questionhow retrieve image from database Binary Format Pin
Member 1168949020-May-15 0:41
Member 1168949020-May-15 0:41 
AnswerRe: how retrieve image from database Binary Format Pin
Herman<T>.Instance20-May-15 0:52
Herman<T>.Instance20-May-15 0:52 
AnswerRe: how retrieve image from database Binary Format Pin
Sascha Lefèvre20-May-15 0:55
professionalSascha Lefèvre20-May-15 0:55 
Questionclosing an application before it begins Pin
DannyGroff19-May-15 8:30
DannyGroff19-May-15 8:30 
AnswerRe: closing an application before it begins Pin
OriginalGriff19-May-15 8:57
mveOriginalGriff19-May-15 8:57 
GeneralRe: closing an application before it begins Pin
Sascha Lefèvre19-May-15 10:01
professionalSascha Lefèvre19-May-15 10:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.