Click here to Skip to main content
11,639,126 members (63,209 online)

Visual Basic

 
AnswerRe: Using large XML dataset efficiently Pin
David Mujica7-Nov-12 9:10
memberDavid Mujica7-Nov-12 9:10 
Questionvb.net Web Browser Control! how to automate when web page is using frames. Pin
Kieran Sloan7-Nov-12 4:27
memberKieran Sloan7-Nov-12 4:27 
AnswerRe: vb.net Web Browser Control! how to automate when web page is using frames. Pin
Zaf Khan26-Nov-12 2:13
memberZaf Khan26-Nov-12 2:13 
QuestionHelp with Error Message Pin
GeorgieMPorgie5-Nov-12 3:32
memberGeorgieMPorgie5-Nov-12 3:32 
AnswerRe: Help with Error Message Pin
Wayne Gaylard5-Nov-12 4:05
mentorWayne Gaylard5-Nov-12 4:05 
GeneralRe: Help with Error Message Pin
GeorgieMPorgie5-Nov-12 5:03
memberGeorgieMPorgie5-Nov-12 5:03 
GeneralRe: Help with Error Message Pin
Wayne Gaylard5-Nov-12 18:31
mentorWayne Gaylard5-Nov-12 18:31 
QuestionUse Reportvier to Show Table with Unknown Number of Columns Pin
Member 76634803-Nov-12 15:03
memberMember 76634803-Nov-12 15:03 
AnswerRe: Use Reportvier to Show Table with Unknown Number of Columns Pin
Dave Kreskowiak4-Nov-12 4:25
mvpDave Kreskowiak4-Nov-12 4:25 
AnswerRe: Use Reportvier to Show Table with Unknown Number of Columns Pin
Mycroft Holmes4-Nov-12 11:54
memberMycroft Holmes4-Nov-12 11:54 
QuestionHow can i retrieve image to pictureBox ? Pin
heinhtataung1-Nov-12 18:04
memberheinhtataung1-Nov-12 18:04 
AnswerRe: How can i retrieve image to pictureBox ? Pin
Eddy Vluggen2-Nov-12 0:57
memberEddy Vluggen2-Nov-12 0:57 
AnswerRe: How can i retrieve image to pictureBox ? Pin
SZLMCL6-Nov-12 23:20
memberSZLMCL6-Nov-12 23:20 
QuestionHow can i save image in my N-tier application? Pin
heinhtataung31-Oct-12 20:20
memberheinhtataung31-Oct-12 20:20 
'In DA_Company'
 Function Company_Save(ByVal M_Model_DA As Model.M_Company) As String
        Try
            connection_enable()
            cmd = New SqlCommand()
            cmd.CommandText = "SP_HR_Company_Insert"
            cmd.Connection = con
            cmd.CommandType = CommandType.StoredProcedure 
            cmd.Parameters.Add("@Company_Logo", SqlDbType.Image).Value = M_Model_DA.Company_Logo
            err_message = cmd.ExecuteNonQuery()
        Catch ex As Exception
            err_message = ex.ToString()
        End Try
        Return err_message
    End Function

'In BL_Company'
 Function Company_Save(ByVal M_Company_BL As Model.M_Company) As String
        Try
            DA_Company = New DataAccess.DA_Company()
            error_message = DA_Company.Company_Save(M_Company_BL)
        Catch ex As Exception
            error_message = ex.ToString()
        End Try
        Return error_message
    End Function

'In M_Company'
Public Property Company_Logo() As Byte
        Get
            Return Me.CompanyLogo
        End Get
        Set(ByVal value As Byte)
            Me.CompanyLogo = value
        End Set
    End Property
'In Frm_Company'

  Private Sub Company_Save()
        Try
            BL_Company = New BusinessLogic.BL_Company()
            M_Comapny = New Model.M_Company()
            M_Comapny.Company_Logo = Convert.ToByte(browseCompanyLogo.Value)
            error_message = BL_Company.Company_Save(M_Comapny)
 
            If error_message > 0 Then
                MessageBox.Show("Complete Save")
                Company_GridView_FillData()
            End If
        Catch ex As Exception
            MessageBox.Show(ex.Message.ToString())
        End Try
 
 
 

 Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
        
Company_Save()
 
    End Sub
 

But It Shows Input Stream was not in a correct format . Why ? please !
AnswerRe: How can i save image in my N-tier application? Pin
Eddy Vluggen1-Nov-12 3:05
memberEddy Vluggen1-Nov-12 3:05 
QuestionAI program Pin
Casey Edison31-Oct-12 5:04
memberCasey Edison31-Oct-12 5:04 
AnswerRe: AI program Pin
Simon_Whale31-Oct-12 5:08
memberSimon_Whale31-Oct-12 5:08 
GeneralRe: AI program Pin
Casey Edison31-Oct-12 5:13
memberCasey Edison31-Oct-12 5:13 
AnswerRe: AI program Pin
Richard MacCutchan31-Oct-12 7:59
mvpRichard MacCutchan31-Oct-12 7:59 
GeneralRe: AI program Pin
Casey Edison31-Oct-12 12:26
memberCasey Edison31-Oct-12 12:26 
GeneralRe: AI program Pin
Richard MacCutchan31-Oct-12 23:18
mvpRichard MacCutchan31-Oct-12 23:18 
GeneralRe: AI program Pin
Casey Edison1-Nov-12 0:42
memberCasey Edison1-Nov-12 0:42 
GeneralRe: AI program Pin
Richard MacCutchan1-Nov-12 2:06
mvpRichard MacCutchan1-Nov-12 2:06 
GeneralRe: AI program Pin
Casey Edison1-Nov-12 8:14
memberCasey Edison1-Nov-12 8:14 
GeneralRe: AI program Pin
Richard MacCutchan1-Nov-12 8:19
mvpRichard MacCutchan1-Nov-12 8:19 
GeneralRe: AI program Pin
Casey Edison1-Nov-12 12:40
memberCasey Edison1-Nov-12 12:40 
GeneralRe: AI program Pin
Richard MacCutchan1-Nov-12 14:55
mvpRichard MacCutchan1-Nov-12 14:55 
GeneralRe: AI program Pin
Casey Edison1-Nov-12 8:15
memberCasey Edison1-Nov-12 8:15 
GeneralRe: AI program Pin
Eddy Vluggen2-Nov-12 1:08
memberEddy Vluggen2-Nov-12 1:08 
QuestionHow to INSERT multiple rows of data to sql table? Pin
zaimah31-Oct-12 1:28
memberzaimah31-Oct-12 1:28 
AnswerRe: How to INSERT multiple rows of data to sql table? Pin
Eddy Vluggen31-Oct-12 2:11
memberEddy Vluggen31-Oct-12 2:11 
GeneralRe: How to INSERT multiple rows of data to sql table? Pin
zaimah31-Oct-12 2:28
memberzaimah31-Oct-12 2:28 
GeneralRe: How to INSERT multiple rows of data to sql table? Pin
Eddy Vluggen31-Oct-12 2:48
memberEddy Vluggen31-Oct-12 2:48 
GeneralRe: How to INSERT multiple rows of data to sql table? Pin
zaimah31-Oct-12 3:01
memberzaimah31-Oct-12 3:01 
GeneralRe: How to INSERT multiple rows of data to sql table? Pin
Eddy Vluggen31-Oct-12 3:22
memberEddy Vluggen31-Oct-12 3:22 
GeneralRe: How to INSERT multiple rows of data to sql table? Pin
zaimah31-Oct-12 3:53
memberzaimah31-Oct-12 3:53 
GeneralRe: How to INSERT multiple rows of data to sql table? Pin
Eddy Vluggen31-Oct-12 3:58
memberEddy Vluggen31-Oct-12 3:58 
GeneralRe: How to INSERT multiple rows of data to sql table? Pin
zaimah31-Oct-12 4:17
memberzaimah31-Oct-12 4:17 
AnswerRe: How to INSERT multiple rows of data to sql table? Pin
Eddy Vluggen31-Oct-12 4:53
memberEddy Vluggen31-Oct-12 4:53 
GeneralRe: How to INSERT multiple rows of data to sql table? Pin
zaimah31-Oct-12 5:28
memberzaimah31-Oct-12 5:28 
GeneralRe: How to INSERT multiple rows of data to sql table? Pin
Eddy Vluggen31-Oct-12 6:20
memberEddy Vluggen31-Oct-12 6:20 
AnswerRe: How to INSERT multiple rows of data to sql table? Pin
Andy_L_J15-Nov-12 20:14
memberAndy_L_J15-Nov-12 20:14 
AnswerRe: How to INSERT multiple rows of data to sql table? Pin
April Fans19-Dec-12 17:43
memberApril Fans19-Dec-12 17:43 
QuestionMemory required by a form Pin
Gagnon Claude30-Oct-12 1:35
memberGagnon Claude30-Oct-12 1:35 
AnswerRe: Memory required by a form Pin
Eddy Vluggen30-Oct-12 2:38
memberEddy Vluggen30-Oct-12 2:38 
AnswerRe: Memory required by a form Pin
Dave Kreskowiak30-Oct-12 7:07
mvpDave Kreskowiak30-Oct-12 7:07 
GeneralRe: Memory required by a form Pin
Gagnon Claude30-Oct-12 13:24
memberGagnon Claude30-Oct-12 13:24 
GeneralRe: Memory required by a form Pin
Dave Kreskowiak30-Oct-12 13:45
mvpDave Kreskowiak30-Oct-12 13:45 
QuestionWhy can't i find a consistent set of examples for SQL and Linq Pin
Gerald Connolly29-Oct-12 11:51
memberGerald Connolly29-Oct-12 11:51 
AnswerRe: Why can't i find a consistent set of examples for SQL and Linq Pin
Eddy Vluggen30-Oct-12 1:12
memberEddy Vluggen30-Oct-12 1:12 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.150728.1 | Last Updated 31 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid