Click here to Skip to main content
15,908,264 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralDotNet Fx1.1 Sp1 Issue :- Need Urgent help !! Pin
jk chan17-Feb-05 20:06
jk chan17-Feb-05 20:06 
GeneralFax Componet for .Net Pin
Arvind200416-Feb-05 4:07
Arvind200416-Feb-05 4:07 
GeneralRegular Expression in vb Pin
Anonymous16-Feb-05 0:23
Anonymous16-Feb-05 0:23 
GeneralUnable to run the application on machine without VC++ installed Pin
sachin.kumar15-Feb-05 21:25
sachin.kumar15-Feb-05 21:25 
GeneralRe: Unable to run the application on machine without VC++ installed Pin
Colin Angus Mackay16-Feb-05 0:07
Colin Angus Mackay16-Feb-05 0:07 
GeneralRe: Unable to run the application on machine without VC++ installed Pin
Anonymous17-Feb-05 17:08
Anonymous17-Feb-05 17:08 
GeneralRe: Unable to run the application on machine without VC++ installed Pin
yasinPL17-Feb-05 14:00
yasinPL17-Feb-05 14:00 
Generalcompress fonts at runtime Pin
tuanattech215-Feb-05 19:43
tuanattech215-Feb-05 19:43 
:(i have problem with Font and
i couln'd resolve it by myself. Could you please give me some help on
this?
My problem is how to compress a Font (changing the character's width
while its height remains unchanged) ? I can do it in VB6, but in
VB.Net I couldn't. Here is my code:

<structlayout(layoutkind.sequential, charset:="CharSet.Auto)"> Public _
Class LOGFONT
Public lfHeight As Integer
Public lfWidth As Integer
Public lfEscapement As Integer
Public lfOrientation As Integer
Public lfWeight As Integer
Public lfItalic As Byte
Public lfUnderline As Byte
Public lfStrikeOut As Byte
Public lfCharSet As Byte
Public lfOutPrecision As Byte
Public lfClipPrecision As Byte
Public lfQuality As Byte
Public lfPitchAndFamily As Byte
<marshalas(unmanagedtype.byvaltstr, sizeconst:="32)"> _
Public lfFaceName As String
End Class

Public Shared Function CreateLogFont() As LOGFONT
Dim tmpfont As Font
Dim tmpLogFont As New LOGFONT
tmpfont = New System.Drawing.Font("Courier New", 27.0)
tmpfont.ToLogFont(tmpLogFont)
tmpLogFont.lfHeight = 15
tmpLogFont.lfWidth = 10
Return tmpLogFont
End Function

After creating tmpLogFont, i create new font for my TextBox

Public Sub New()
MyBase.New()
Dim lf As New LOGFONT
Dim tmpfont As new Font
tmpfont = tmpfont.FromLogFont(CreateLogFont)
Me.Font = tmpfont
End Sub

The only thing changed is the font height, and the font width
(lfWidth) remains 0!
is there any error in my code?
I tried again, but by using API function CreateFontIndirect, and got
the same result !
Could you give me an example for compressing fonts?

Thank you very much
Best regards.
GeneralClick Events in .NET Pin
sarabjs15-Feb-05 9:30
sarabjs15-Feb-05 9:30 
GeneralRe: Click Events in .NET Pin
S. Senthil Kumar15-Feb-05 11:05
S. Senthil Kumar15-Feb-05 11:05 
GeneralRe: Click Events in .NET Pin
sarabjs15-Feb-05 11:58
sarabjs15-Feb-05 11:58 
GeneralRe: Click Events in .NET Pin
sarabjs15-Feb-05 13:03
sarabjs15-Feb-05 13:03 
GeneralRe: Click Events in .NET Pin
S. Senthil Kumar15-Feb-05 18:26
S. Senthil Kumar15-Feb-05 18:26 
GeneralRe: Click Events in .NET Pin
sarabjs22-Feb-05 10:22
sarabjs22-Feb-05 10:22 
GeneralDeserialization throws "No Top Object" exception. Pin
ganeshvijay14-Feb-05 20:55
ganeshvijay14-Feb-05 20:55 
Generalsuitability of .net for network servers Pin
kon_t14-Feb-05 8:25
kon_t14-Feb-05 8:25 
GeneralRe: suitability of .net for network servers Pin
Mike Dimmick15-Feb-05 2:20
Mike Dimmick15-Feb-05 2:20 
GeneralRe: suitability of .net for network servers Pin
kon_t16-Feb-05 15:42
kon_t16-Feb-05 15:42 
GeneralRe: suitability of .net for network servers Pin
Mike Dimmick17-Feb-05 2:57
Mike Dimmick17-Feb-05 2:57 
GeneralRe: suitability of .net for network servers Pin
kon_t17-Feb-05 11:46
kon_t17-Feb-05 11:46 
GeneralRe: suitability of .net for network servers Pin
Rei Miyasaka22-Feb-05 21:43
Rei Miyasaka22-Feb-05 21:43 
GeneralRe: suitability of .net for network servers Pin
Sebastian Schneider23-Feb-05 2:09
Sebastian Schneider23-Feb-05 2:09 
General.Net Control Printing Pin
khurram rasheed13-Feb-05 22:05
khurram rasheed13-Feb-05 22:05 
GeneralSummation of Hours in Dataset Pin
Vipul Mehta13-Feb-05 21:20
Vipul Mehta13-Feb-05 21:20 
GeneralRe: Summation of Hours in Dataset Pin
yasinPL17-Feb-05 14:09
yasinPL17-Feb-05 14:09 

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.