Click here to Skip to main content
15,892,746 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: How Can I use any Code Snippets Pin
Richard MacCutchan12-Jul-12 3:30
mveRichard MacCutchan12-Jul-12 3:30 
GeneralRe: How Can I use any Code Snippets Pin
Wes Aday12-Jul-12 6:49
professionalWes Aday12-Jul-12 6:49 
GeneralRe: How Can I use any Code Snippets Pin
Richard MacCutchan12-Jul-12 6:59
mveRichard MacCutchan12-Jul-12 6:59 
QuestionAforge.net for YUV display Pin
mYashodhar7-Jul-12 3:55
mYashodhar7-Jul-12 3:55 
QuestionHow to Save/Load Files like Pictures in/from Database Pin
ICEFLOWER26-Jul-12 20:45
ICEFLOWER26-Jul-12 20:45 
AnswerRe: How to Save/Load Files like Pictures in/from Database Pin
Richard MacCutchan6-Jul-12 21:12
mveRichard MacCutchan6-Jul-12 21:12 
SuggestionRe: How to Save/Load Files like Pictures in/from Database Pin
ICEFLOWER27-Jul-12 23:20
ICEFLOWER27-Jul-12 23:20 
AnswerRe: How to Save/Load Files like Pictures in/from Database Pin
ZappaDog24-Jul-12 3:41
ZappaDog24-Jul-12 3:41 
'Save
Dim ms As New MemoryStream
PictureBox1.Image.Save(ms, PictureBox1.Image.RawFormat)
Dim strType As String = ToolStripStatusLabel1.Text.Substring(ToolStripStatusLabel1.Text.LastIndexOf("."), 4)
Dim arrImage() As Byte = ms.GetBuffer
ms.Close()
Dim strFileName As String = IO.Path.GetFileName(ToolStripStatusLabel1.Text)
Dim connectionString As String = "Data Source=MIKEY-HP\jtsql;Initial Catalog=Images;Integrated Security=True"
Dim cnn As New SqlConnection(connectionString)
Dim DateFiled As Date = FormatDateTime(Now(), DateFormat.ShortDate)
Dim strSQL As String = _
"INSERT INTO ImageTab (ImageData,Type,ImgFileName,DateFiled)" & _
"VALUES (@ImageData,@Type,@Filename,'" & DateFiled & "')"
Dim cmd As New SqlCommand(strSQL, cnn)

With cmd
.Parameters.Add(New SqlParameter("@Filename", SqlDbType.VarChar, 50)).Value = strFileName
.Parameters.Add(New SqlParameter("@Type", SqlDbType.VarChar, 10)).Value = strType
.Parameters.Add(New SqlParameter("@ImageData", SqlDbType.Image)).Value = arrImage
End With
Try
cnn.Open()
cmd.ExecuteNonQuery()
cnn.Close()
Catch ex As Exception
MsgBox(ex.ToString)
End Try

'Load
Try
Me.ImageTabTableAdapter.FillBy(Me.ImagesDataSet.ImageTab)
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
Questiontype in a datagridview and find in a listbox Pin
GOURANG.RASTOGI6-Jul-12 17:23
GOURANG.RASTOGI6-Jul-12 17:23 
AnswerRe: type in a datagridview and find in a listbox Pin
Sandeep Mewara8-Jul-12 4:19
mveSandeep Mewara8-Jul-12 4:19 
QuestionCommunication Webservices or TCP Networking using C++/CLI Pin
Ger Hayden6-Jul-12 12:27
Ger Hayden6-Jul-12 12:27 
Questionstring assignment in vb.net (It's too slow Pin
dl4gbe6-Jul-12 6:16
dl4gbe6-Jul-12 6:16 
AnswerRe: string assignment in vb.net (It's too slow Pin
90823656-Jul-12 10:18
90823656-Jul-12 10:18 
AnswerRe: string assignment in vb.net (It's too slow Pin
Dave Kreskowiak6-Jul-12 10:59
mveDave Kreskowiak6-Jul-12 10:59 
AnswerRe: string assignment in vb.net (It's too slow Pin
Matt T Heffron10-Jul-12 14:42
professionalMatt T Heffron10-Jul-12 14:42 
QuestionEntity Framework - Updates with eSQL Pin
Member 82251805-Jul-12 9:08
Member 82251805-Jul-12 9:08 
AnswerRe: Entity Framework - Updates with eSQL Pin
Sander Rossel12-Jul-12 6:00
professionalSander Rossel12-Jul-12 6:00 
GeneralRe: Entity Framework - Updates with eSQL Pin
Member 822518013-Jul-12 2:26
Member 822518013-Jul-12 2:26 
GeneralRe: Entity Framework - Updates with eSQL Pin
Sander Rossel13-Jul-12 7:27
professionalSander Rossel13-Jul-12 7:27 
QuestionHow to Install Created Windows Service via VB.Net Pin
ICEFLOWER22-Jul-12 13:24
ICEFLOWER22-Jul-12 13:24 
GeneralRe: How to Install Created Windows Service via VB.Net Pin
Abhinav S2-Jul-12 16:22
Abhinav S2-Jul-12 16:22 
QuestionRe: How to Install Created Windows Service via VB.Net Pin
ICEFLOWER23-Jul-12 18:45
ICEFLOWER23-Jul-12 18:45 
SuggestionRe: How to Install Created Windows Service via VB.Net Pin
Richard MacCutchan3-Jul-12 22:12
mveRichard MacCutchan3-Jul-12 22:12 
GeneralRe: How to Install Created Windows Service via VB.Net Pin
ICEFLOWER24-Jul-12 2:31
ICEFLOWER24-Jul-12 2:31 
SuggestionRe: How to Install Created Windows Service via VB.Net Pin
ICEFLOWER27-Jul-12 23:21
ICEFLOWER27-Jul-12 23:21 

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.