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

.NET (Core and Framework)

 
QuestionNetworkstream receiving same data twice [modified] Pin
evdsande14-Apr-08 10:05
evdsande14-Apr-08 10:05 
Questionis Microsoft.ApplicationBlocks.Data.dll compatible to VS2005? Pin
Mustanseer M S13-Apr-08 21:26
Mustanseer M S13-Apr-08 21:26 
GeneralRe: is Microsoft.ApplicationBlocks.Data.dll compatible to VS2005? Pin
Dave Kreskowiak14-Apr-08 3:30
mveDave Kreskowiak14-Apr-08 3:30 
GeneralRe: is Microsoft.ApplicationBlocks.Data.dll compatible to VS2005? Pin
Christian Graus14-Apr-08 4:27
protectorChristian Graus14-Apr-08 4:27 
GeneralRe: is Microsoft.ApplicationBlocks.Data.dll compatible to VS2005? Pin
Pete O'Hanlon14-Apr-08 4:36
mvePete O'Hanlon14-Apr-08 4:36 
GeneralRe: is Microsoft.ApplicationBlocks.Data.dll compatible to VS2005? Pin
Dave Kreskowiak14-Apr-08 5:34
mveDave Kreskowiak14-Apr-08 5:34 
Questionhow can I set TextBox.ScrollBars to None or Both at call Pin
Shimmy Weitzhandler12-Apr-08 16:03
Shimmy Weitzhandler12-Apr-08 16:03 
GeneralRe: how can I set TextBox.ScrollBars to None or Both at call Pin
Shimmy Weitzhandler12-Apr-08 18:45
Shimmy Weitzhandler12-Apr-08 18:45 
this what I have made, and it does the trick (my WrapLines is set to false I didn't check when true):

 private void tbScroll(object sender, EventArgs e)<br />
        {<br />
            TextBox tb = (TextBox)sender;<br />
            Size tS = TextRenderer.MeasureText(tb.Text, tb.Font);<br />
            bool Hsb = tb.ClientSize.Height < tS.Height + int.Parse(tb.Font.Size);<br />
            bool Vsb = tb.ClientSize.Width < tS.Width;<br />
<br />
<br />
            if (Hsb && Vsb)<br />
            {<br />
                tb.ScrollBars = ScrollBars.Both;<br />
            }<br />
            else if (!Hsb && !Vsb)<br />
            {<br />
                tb.ScrollBars = ScrollBars.None;<br />
            }<br />
            else if (Hsb && !Vsb)<br />
            {<br />
                tb.ScrollBars = ScrollBars.Vertical;<br />
            }<br />
            else if (!Hsb && Vsb)<br />
            {<br />
                tb.ScrollBars = ScrollBars.Horizontal;<br />
            }<br />
<br />
            sender = (object)tb;<br />
        }


this event is raised at TextChanged and at ClientSizeChanged

Shimi

QuestionIs DoDirectPayment method of PayPal applicable in Australia Pin
samrat.net10-Apr-08 23:30
samrat.net10-Apr-08 23:30 
GeneralRe: Is DoDirectPayment method of PayPal applicable in Australia Pin
Christian Graus11-Apr-08 2:13
protectorChristian Graus11-Apr-08 2:13 
Generalwhat's new in dotnet framework 2.0 architecture compared to dotnet framework 1.1 architecture Pin
padma p10-Apr-08 23:24
padma p10-Apr-08 23:24 
GeneralRe: what's new in dotnet framework 2.0 architecture compared to dotnet framework 1.1 architecture Pin
Thomas Stockwell11-Apr-08 1:21
professionalThomas Stockwell11-Apr-08 1:21 
GeneralRe: what's new in dotnet framework 2.0 architecture compared to dotnet framework 1.1 architecture Pin
Dave Kreskowiak11-Apr-08 6:58
mveDave Kreskowiak11-Apr-08 6:58 
GeneralXmlTextReader - try again Pin
coleydog10-Apr-08 19:05
coleydog10-Apr-08 19:05 
GeneralRe: XmlTextReader - try again Pin
Christian Graus10-Apr-08 20:35
protectorChristian Graus10-Apr-08 20:35 
GeneralRe: XmlTextReader - try again Pin
Mark J. Miller14-Apr-08 5:50
Mark J. Miller14-Apr-08 5:50 
GeneralRe: XmlTextReader - try again Pin
coleydog16-Apr-08 14:08
coleydog16-Apr-08 14:08 
GeneralXmlTextReader - Child elements. Pin
coleydog10-Apr-08 18:59
coleydog10-Apr-08 18:59 
GeneralRe: XmlTextReader - Child elements. Pin
Dave Kreskowiak11-Apr-08 7:04
mveDave Kreskowiak11-Apr-08 7:04 
GeneralRe: XmlTextReader - Child elements. Pin
coleydog11-Apr-08 15:02
coleydog11-Apr-08 15:02 
GeneralRe: XmlTextReader - Child elements. Pin
Dave Kreskowiak11-Apr-08 18:14
mveDave Kreskowiak11-Apr-08 18:14 
Generalhi travel to assembly Pin
sujithkumarsl10-Apr-08 17:53
sujithkumarsl10-Apr-08 17:53 
GeneralRe: hi travel to assembly Pin
Dave Kreskowiak11-Apr-08 6:59
mveDave Kreskowiak11-Apr-08 6:59 
QuestionConverting Word .doc to image file Pin
kensai10-Apr-08 1:38
kensai10-Apr-08 1:38 
GeneralCross post - Please ignore Pin
Pete O'Hanlon10-Apr-08 2:04
mvePete O'Hanlon10-Apr-08 2:04 

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.