Jump to content
Xtreme .Net Talk

et_

Members
  • Posts

    15
  • Joined

  • Last visited

About et_

  • Birthday 12/16/1980

et_'s Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. et_

    con fus ed

    Is there any way to display more than one image in a picturebox, i cant find code on how to do this anywhere.
  2. et_

    con fus ed

    how would i get the coordinates? I could pull the position, but thats from the top left corner of the image, correct?
  3. et_

    con fus ed

    No i mean if i have multiple images in a picture box, and a user clicks one, how do i know which one was clicked? Using only one picbox.
  4. et_

    con fus ed

    I have a small app that adds pics to a picture box, but id like to make the images clickable. I know how to fire an event, add handlers, etc, but how do i add an event to an image ? Im not sure if im even asking this question correctly. I just want to know how i can tell when a newly added image (to a pic box) has been clicked. Thanks
  5. What's the difference?
  6. I would like to create a custom Graphical interface class that i can implement into any project in the future. Similar to the windows forms, but different shapes. What is the best way to go about this? ANything will help even google search strings... Thanks
  7. I have an xml parser that parses the following file: <?xml version="1.0"?> <records><image signid="6DBAE77E-EA03-4549-9CBA-1BB811C8F10D"> <signtype>Banner</signtype> <signtypecustom></signtypecustom> <sizeheight>24</sizeheight> <SizeWidth>60</SizeWidth> </image> </records> I can grab everything in this xml file, except signid.... Ive looked everywhere to figure out how to do this. please help :confused: :confused:
  8. et_

    ole errors

    This happens anytime i use oledb rather than sqlclient. Can anyone give me info on this?
  9. I found a code example using oledb. I guess ill try sqlclient, but im still curious why everytime i use oledb i get the following error:
  10. this site seems cool: http://www.homeandlearn.co.uk/NET/vbNet.html This one will definitely help: http://www.youtube.com/watch?v=rN2VqFPNS8w :)
  11. Ive visited connectionstrings.com and tried all the oledb options, but none have worked out. Either i get a named pipes error, or can not connect error. Im using sql server 2005 express. my code: 'Testing Class Public Class Form1 Public WithEvents test1 As GenSchema Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Dim dsPath As String = "C:\Documents and Settings\Administrator\Desktop\db\SignMaker_Data.MDF" 'Dim strConn As String = "Provider=Microsoft.Jet.OLEDB.4.0;" _ '& "Data Source= " & dsPath & ";" _ '& "Persist Security Info=False" Dim strConn As String = _ "Provider=SQLNCLI;Server=BORAT\SQLEXPRESS;Database=SignMaker;Trusted_Connection=yes;" test1 = New GenSchema(strConn) End Sub Public Sub statChange(ByVal connectionStatus As GenSchema.dbStat) Handles test1.evStatus MsgBox(connectionStatus.ToString) End Sub End Class 'Connection class Public Class GenSchema Public Enum dbStat closed open disposed openError End Enum Public connectionStatus As dbStat Public Event evStatus(ByVal connectionStatus As dbStat) Public Sub New(ByVal strConnPath As String) 'Open a connection object Dim oleConn As OleDb.OleDbConnection = Nothing Try openConnection(oleConn, strConnPath) Catch ex As SqlClient.SqlException Console.WriteLine("crap, " & ex.Message.ToString) connectionStatus = dbStat.openError RaiseEvent evStatus(dbStat.openError) Catch ex As Exception Console.WriteLine("crap, " & ex.Message.ToString) connectionStatus = dbStat.openError RaiseEvent evStatus(dbStat.openError) Finally oleConn.Close() connectionStatus = dbStat.closed RaiseEvent evStatus(connectionStatus) oleConn.Dispose() connectionStatus = dbStat.disposed RaiseEvent evStatus(connectionStatus) End Try End Sub Private Sub openConnection(ByRef oleConn As OleDb.OleDbConnection, ByVal strConnPath As String) oleConn = New OleDb.OleDbConnection(strConnPath) oleConn.Open() connectionStatus = dbStat.open RaiseEvent evStatus(connectionStatus) End Sub End Class
  12. Im reading about the commandbuilder class, and im not really sure the point. It says it's easy and less details, but i havent seen any good examples of this. Id like to connect to a SQL database (not really sure whether to use sqlconnection or OLE), and use commandbuilder in a fast efficient way to update/insert/select. Please help.
  13. I do have another class that uses an arraylist,xml reader, sql adapter, and sql connection. I read about including a dispose method , but im not sure how to implement this. I guess i could just call each objects dispose method, but im curious as to add the disposal methods to my class.
  14. :) Thanks for catching that, i changed the properties to strings.
  15. If i create a small class: Public Class XMLNode1 Private xmlHeader As String Private xmlValue As String Public Sub New() xmlHeader = Nothing xmlValue = Nothing End Sub Public Sub New(ByVal head As String, ByVal val As String) Me.propHead = head Me.propVal = val End Sub Public Property propHead() Get Return xmlHeader End Get Set(ByVal value) xmlHeader = value.ToString End Set End Property Public Property propVal() Get Return xmlValue End Get Set(ByVal value) xmlValue = value.ToString End Set End Property End Class How should i go about writing a disposal method for it? Also, my idea of disposing a class is releasing all th eobject that class uses...Is that correct? Please help :confused:
×
×
  • Create New...