Click here to Skip to main content
15,887,346 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Hot to read uncommon picture format? Pin
Sonhospa4-Aug-09 8:32
Sonhospa4-Aug-09 8:32 
GeneralRe: Hot to read uncommon picture format? Pin
Luc Pattyn4-Aug-09 8:44
sitebuilderLuc Pattyn4-Aug-09 8:44 
GeneralRe: Hot to read uncommon picture format? Pin
Sonhospa4-Aug-09 9:47
Sonhospa4-Aug-09 9:47 
AnswerRe: Hot to read uncommon picture format? Pin
Steven J Jowett4-Aug-09 3:49
Steven J Jowett4-Aug-09 3:49 
GeneralRe: Hot to read uncommon picture format? Pin
Sonhospa4-Aug-09 6:31
Sonhospa4-Aug-09 6:31 
Questionconnecting gmail using IMAP in VB.NET? Pin
nevincm3-Aug-09 21:16
nevincm3-Aug-09 21:16 
AnswerRe: connecting gmail using IMAP in VB.NET? Pin
Mike Ellison4-Aug-09 3:17
Mike Ellison4-Aug-09 3:17 
QuestionBest practices for common routines Pin
supercat93-Aug-09 12:36
supercat93-Aug-09 12:36 
What is the best practice for placing general-purpose routines which will be widely used? To date, I've tended to simply have a ModGlue.vb file in each project, where I throw any that I need, but moving classes between projects requires locating and copying in the appropriate stuff from ModGlue, which is somewhat tedious and will become moreso the longer I go without a better strategy.

Some of the general-purpose routines are things like:
Function Byt(ByVal v as Integer) As Byte
  Return CByte(v and 255)
End Function

Function HexArr(ByVal dat() as Byte) As String  ' Returns hex representation of array

Function ByteString(ByVal dat() as Byte, ByVal Length As Integer) As String ' Converts bytes to string (by character code)

Sub Zap(ByRef it as iDisposable)
  Dim oldIt as iDisposable
  oldIt = it
  If oldIt IsNot Nothing then
    oldIt.Dispose
    Threading.Interlocked.CompareExchange(it, Nothing, oldIt)
  EndIf
End Sub


In many cases, things that sorta should have been part of the .Net framework, but aren't. What's the best way to make sure that the necessary functions get brought in when copying a class from one project to another, without ending up with extraneous or duplicated methods?
AnswerRe: Best practices for common routines Pin
Christian Graus3-Aug-09 13:39
protectorChristian Graus3-Aug-09 13:39 
AnswerRe: Best practices for common routines Pin
Mycroft Holmes3-Aug-09 13:56
professionalMycroft Holmes3-Aug-09 13:56 
GeneralRe: Best practices for common routines Pin
supercat94-Aug-09 5:46
supercat94-Aug-09 5:46 
GeneralRe: Best practices for common routines Pin
nlarson114-Aug-09 7:13
nlarson114-Aug-09 7:13 
GeneralRe: Best practices for common routines Pin
Mycroft Holmes4-Aug-09 16:08
professionalMycroft Holmes4-Aug-09 16:08 
QuestionVB-Access: Syntax error in INSERT INTO command Pin
Amanjot3-Aug-09 10:58
Amanjot3-Aug-09 10:58 
AnswerRe: VB-Access: Syntax error in INSERT INTO command Pin
Christian Graus3-Aug-09 11:17
protectorChristian Graus3-Aug-09 11:17 
AnswerRe: VB-Access: Syntax error in INSERT INTO command Pin
Paramu19733-Aug-09 21:16
Paramu19733-Aug-09 21:16 
AnswerRe: VB-Access: Syntax error in INSERT INTO command Pin
Hristo-Bojilov4-Aug-09 7:34
Hristo-Bojilov4-Aug-09 7:34 
QuestionList all active windows Pin
NewbieDave3-Aug-09 10:02
NewbieDave3-Aug-09 10:02 
AnswerRe: List all active windows Pin
Christian Graus3-Aug-09 10:32
protectorChristian Graus3-Aug-09 10:32 
AnswerRe: List all active windows Pin
Dave Kreskowiak3-Aug-09 10:36
mveDave Kreskowiak3-Aug-09 10:36 
GeneralRe: List all active windows Pin
Christian Graus3-Aug-09 10:44
protectorChristian Graus3-Aug-09 10:44 
GeneralRe: List all active windows Pin
NewbieDave3-Aug-09 11:05
NewbieDave3-Aug-09 11:05 
GeneralRe: List all active windows Pin
Christian Graus3-Aug-09 11:17
protectorChristian Graus3-Aug-09 11:17 
QuestionObject disposed when trying to assign column width Pin
Hypermommy3-Aug-09 9:27
Hypermommy3-Aug-09 9:27 
AnswerRe: Object disposed when trying to assign column width Pin
Dave Kreskowiak3-Aug-09 10:33
mveDave Kreskowiak3-Aug-09 10:33 

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.