It is a PictureBox
DeltaWind
Posts
-
Confusing Code Execution -
Confusing Code ExecutionOK. I found a solution of sorts. For some reason the code execution jumps to the ToString method and then to a high level Try...Catch. I placed a local Try...Catch around the 'offending' code and catch a meaningful exception at that point. I still don't know why the code jumped to the ToString function, but at least I can now debug the actual problem. In further insights would be appreciated, but for now I can move forward. Thanks for the help.
-
Confusing Code ExecutionNo multithreading
-
Confusing Code ExecutionSounds good, but the same problem occurs on co-worker's computer as well.
-
Confusing Code ExecutionPublic Class ControlStaffDemographics Inherits DevExpress.XtraEditors.XtraUserControl #Region " -- Member Class: ClassGroupListItem -- " Public Class ClassGroupListItem Public ReadOnly Group_PK As Guid Public ReadOnly GroupName As String Public Sub New(ByVal group As DataRow) Me.Group_PK = DirectCast(group.Item("Group_PK"), Guid) Me.GroupName = group.Item("GroupName").ToString End Sub 'New(ByVal group As DataRow) Public Overrides Function ToString() As String Return Me.GroupName End Function 'ToString() End Class 'ClassGroupListItem #End Region '-- Member Class: ClassGroupListItem -- Private Sub Save() Dim signatureStream As System.IO.Stream = New System.IO.MemoryStream() Me.picSignature.Image.Save(signatureStream, System.Drawing.Imaging.ImageFormat.Bmp) 'Other code removed End Sub 'Save() I have removed the excess code from this class for ease of reading. My problem: The second line in the Save method executes and jumps to the overridden ToString() function in the member class. There is no reference to the class or an instance of the class. Why would the execution jump to that point? Additionally, an exception is thrown when trying to execute the ToString method. Any help or ideas would be appreciated. :confused: David Zorn
-
Readings on Regular ExpressionsThis site also has a handy free tool for testing regular expression patterns! I learned everyting I know about regular expressions from this site (that may not say much though!).