Click here to Skip to main content
15,913,904 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Multi Colum Listview Pin
mr_1234510-Jun-06 4:27
mr_1234510-Jun-06 4:27 
AnswerRe: Call MS SQL Procedure from VB.NET Pin
Colin Angus Mackay9-Jun-06 22:31
Colin Angus Mackay9-Jun-06 22:31 
GeneralRe: Call MS SQL Procedure from VB.NET Pin
Antebios115312-Jun-06 2:41
Antebios115312-Jun-06 2:41 
GeneralRe: Call MS SQL Procedure from VB.NET Pin
Colin Angus Mackay12-Jun-06 8:22
Colin Angus Mackay12-Jun-06 8:22 
QuestionBackground Image causing performance problem Pin
SudheendraKurudumale9-Jun-06 7:33
SudheendraKurudumale9-Jun-06 7:33 
QuestionHelp on playing waves in VB.NET Pin
DJLarZ9-Jun-06 6:40
DJLarZ9-Jun-06 6:40 
QuestionHow to get the length of a string in pixels? Pin
TheFoZ9-Jun-06 5:29
TheFoZ9-Jun-06 5:29 
AnswerRe: How to get the length of a string in pixels? Pin
arcticbrew9-Jun-06 8:02
arcticbrew9-Jun-06 8:02 
I use this method to adjust the font size so my strings fit in the available width.

    Dim ThisFont As Font = AdjustFontSize("Steve", 40, New Font(Me.Font.Name, Me.Font.SizeInPoints, Me.Font.Style))<br />
<br />
<br />
    Public Function AdjustFontSize(ByVal s As String, ByVal w As Integer, ByVal LocalFont As Font) As Font<br />
        Dim Gr As Graphics = Me.CreateGraphics<br />
        Dim ThisFontSize As Single = 15.0!<br />
<br />
        Do<br />
            ThisFontSize -= 0.5!<br />
            LocalFont = New System.Drawing.Font(LocalFont.Name, ThisFontSize, LocalFont.Style)<br />
        Loop While (Gr.MeasureString(s, LocalFont).ToSize.Width > w) AndAlso (ThisFontSize > 7.5!)<br />
<br />
        Gr.Dispose()<br />
        Return LocalFont<br />
<br />
    End Function<br />

GeneralRe: How to get the length of a string in pixels? Pin
TheFoZ9-Jun-06 9:40
TheFoZ9-Jun-06 9:40 
Questionvb.net and oracle client Pin
hemrk9-Jun-06 5:22
hemrk9-Jun-06 5:22 
AnswerRe: vb.net and oracle client Pin
Dave Kreskowiak9-Jun-06 10:39
mveDave Kreskowiak9-Jun-06 10:39 
AnswerRe: vb.net and oracle client Pin
mr_1234510-Jun-06 5:26
mr_1234510-Jun-06 5:26 
GeneralRe: vb.net and oracle client Pin
Dave Kreskowiak11-Jun-06 2:52
mveDave Kreskowiak11-Jun-06 2:52 
GeneralRe: vb.net and oracle client Pin
mr_1234511-Jun-06 11:45
mr_1234511-Jun-06 11:45 
AnswerRe: vb.net and oracle client Pin
mr_1234511-Jun-06 11:43
mr_1234511-Jun-06 11:43 
QuestionThreadhPool versus Thread.Join() misunderstanding Pin
manustone9-Jun-06 4:46
manustone9-Jun-06 4:46 
AnswerRe: ThreadhPool versus Thread.Join() misunderstanding Pin
Dustin Metzgar9-Jun-06 4:59
Dustin Metzgar9-Jun-06 4:59 
GeneralRe: ThreadhPool versus Thread.Join() misunderstanding Pin
manustone9-Jun-06 5:09
manustone9-Jun-06 5:09 
QuestionProblem in SQL DataAdapter Configuration wizard Pin
Syed Ali Raza9-Jun-06 4:28
Syed Ali Raza9-Jun-06 4:28 
AnswerRe: Problem in SQL DataAdapter Configuration wizard Pin
Mohammed Amine9-Jun-06 6:07
Mohammed Amine9-Jun-06 6:07 
Questionselection of string at runtime in vb.net1.1 Pin
amaneet9-Jun-06 4:21
amaneet9-Jun-06 4:21 
AnswerRe: selection of string at runtime in vb.net1.1 Pin
TheFoZ9-Jun-06 5:20
TheFoZ9-Jun-06 5:20 
Questionprinting problem in vb.net1.1 Pin
amaneet9-Jun-06 4:19
amaneet9-Jun-06 4:19 
Questioni need u r help Pin
avinashprabhu.t.p9-Jun-06 3:54
avinashprabhu.t.p9-Jun-06 3:54 
AnswerRe: i need u r help Pin
Paddy Boyd9-Jun-06 4:38
Paddy Boyd9-Jun-06 4:38 

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.