用C#开发桌面应用程序时遇到的问题
怎么看不到dropdownlist这个控件?我用的是2005
------解决方案--------------------WinForm里是combo控件
------解决方案--------------------可以的,
------解决方案--------------------framwork当然要装的咯!
------解决方案-------------------- Public Function ConverCSV2DataSet(ByVal fileName As String, ByVal tableName As String) As DataSet
Dim ds As DataSet = New DataSet
Dim _filePath, _fileName As String
_filePath = fileName.Substring(0, fileName.LastIndexOf("\") + 1)
_fileName = fileName.Substring(fileName.LastIndexOf("\") + 1)
Dim conStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " + _filePath + "\" + ";Extended Properties=" & """Text;HDR=Yes;FMT=Delimited""
Dim oleCon As OleDbConnection = New OleDbConnection(conStr)
Dim da As OleDbDataAdapter
Dim excelstr As String
excelstr = "Select 姓名 as NameID ,称谓 as CPosition ,单位名称 as Unit ,部门 as Departments ,邮政地址 as PostAddress ,电话 as Phone ,传真 as Fax ,移动电话 as MobilePhone ,主页 as Home ,电子邮件 as E_mail ,备注 as Remarks ,'" & FormatDateTime(Now, DateFormat.ShortDate) & "' as Indate from " & _fileName
Try
da = New OleDbDataAdapter(excelstr, oleCon)
da.Fill(ds, tableName)
oleCon.Close()
Catch ex As Exception
MsgBox(ex.Message)
oleCon.Close()
End Try
Return ds
End Function
------解决方案--------------------如果在客户端要安装的话,就必须安装.net framwork 2.0
如果只是生成网页,数据都在服务器上,只让网页向服务器传递数据操作消息的话,哪倒是不装也可以!