mat_net's Q&A profile
Visual Studio 2008 (Pre-release) AppendText doesn't scroll anymore
When I use TextBox.AppendText in my Windows Forms app. the text is added and the TextBox is scrolled such that the last line appended is displayed. When doing so in a WPF app. the scroll never happens. Bug Feature User error NIK Well it's debatable if it should scroll automatically, so I'll leave that to a Microsoft rep to answer, but if you want to scroll, just make a call to ScrollToEnd after your call to AppendText. HTH, Drew ...Show All
Visual Basic serial port - com
I toke from the VB6 the example about using the serial port with MSComm. I run this program in VB2005 after it was upgrade ofcourse by the VB2005 and try to send and receive strings in a loop(1-1000). But sometimes in this loop the string that I'm sending is stuck or something that I don't understand why I run this loop with the some strings a lot of times and everytime is a different string that stuck. if someone can tell me why In VB2005 there is something similar to MSComm that I can use Hi, Look I'm still a rookie in VB2005 but I'll try to help you... So I guess that ...Show All
Windows Forms Exact rectangle of a single character
How can I get the exact rectangle of a character Using the method "MeasureString" returns the size of the character with some empty space at all sides. I want a rectangle as close as possible to the drawing character. Is there any comfortable .NET-methods to achieve that Thx! ...Show All
Visual Studio Team System team build of C# and C++ projects
Hi, I am working on managed code projects written in C# and C++. Now, iam trying to build using Team build. It seems its not possible to build them with one buildtype because platform settings. Is there any possible solution Thanks in advance. Yes, you can build them in one build type. Use "Mixed Platforms" as the platform. Thanks. ...Show All
Visual J# Java Conversion Tool Help
I installed Beta Version II of the IDE and Java Conversion tool. When I ran the tool it appears to have run fine. The problem however is that when I click on the correction links to get the examples on how to convert some of the code it can not find the help. I did a full install of the MSDN help that came with the conversion tool and with VS 2005 and still no documentation on how to do the actual conversion. Also searched MSDN for the articles and they were not found. Does anybody know where the documentation is located or where I can find the examples at least Hi, Really sorry for the inconvenience cau ...Show All
Visual FoxPro A list where, the first element already apears
I have a list in a formular. Cand I do, that when the form is Init, the first element of a list, already apears, in that list before I select any element from list. Thank you. If you want to select first item in the listbox, add something like this to Init() method of your form : this.myListBox.Selected(1) = .T. ...Show All
Windows Forms What is the best way to Load/Store Form Location and Size?
Hello, What is the best way to Load/Store Form Location and Size Also what it the best method for Load/Store of other elements on a form such as a MenuStrip and ToolStrip when that are placed in a ToolStripContainer Thank you for your help, Well, I am using ToolStripContainer, several objects of type ToolStrip and one MenuStrip/StatusStrip. Unfortunatly it seems ToolStripManager.Save() and ToolStripManager.Load() do not work with dynamically added toolstrips. My application has several views within the same form where some share the same toolbars and some do have others instead, or more or less ...Show All
SQL Server Transactions
I have transaction that will run on an hourly bases. I need to make sure that no one will start this transaction while it is running. I just need to know the system table that has all the transaction names in them and check to see if the transaction is running or not. what i am trying to do is not to have locks....just wanting to make sure that no one would run the same transaction twice. does anyone have any idea on how we can do this The thing I am going to suggest is a rather artificial one yet it will work perfectly. Just create a table, name it, say, SyncRoot, insert a single row into it. Then, lock t ...Show All
Visual Studio Team System Run time errors
Hi I get the following 2 errors when the script is run under load . These errors do not show up when I run the scripts by them selves , but only in load test error 1. ExtractionRuleError ExtractValues event 18 The HTTP response does not contain an HTML document. error 2 Exception RequestEnumeratorException 9 Exception occurred: The given key was not present in the dictionary. Both these errors happen in not one particular script, but randomly in all scripts, on different pages. Any help on what these errors mean and more importantly how can I elegantly catch them by writing an extraction rule would help Thanks Man ...Show All
Microsoft ISV Community Center Forums Reading From excel spreadsheet cell
Hi all, i know this is off the topic but have been looking everywhere for an answer my code is as follows Dim xl As New Excel.Application Dim xlsheet As Excel.Worksheet Dim xlwbook As Excel.Workbook Private Sub Command1_Click() Text1.Text = xlsheet.Cells(16, 6) Text2.Text = xlsheet.Cells(2, 3) xl.ActiveWorkbook.Close False, "c:\book1.xls" xl.Quit End Sub Private Sub Form_Load() Text1 = "" Set xlwbook = xl.Workbooks.Open("c:\book1.xls") Set xlsheet = xlwbook.Sheets.Item(1) end sub and i am trying to import the actual forumals in answer in the same format as the spreadsheet into a vb6 textbox ...Show All
Visual Basic ToolBar and ImageList
I am new to Visual Basic. So the differences between C++ and VB are striking to me. But even this seems like too much. Here is what I am talking about: I got a project out of source safe and I started working with it. The Graphics associated to an image list had been compiled into the project but the actual graphic files were missing. So they appeared in the project at first but then the buttons associated with the image list went blank. I thought all I had to do was to get the graphic image files and then reassign the image list and the toolbar. But NOOOOO. According to the book I have, once the image is set, you cannot cha ...Show All
Visual Studio Report: Prevent textboxes from moving
I created a report that has a table and some textboxes. I need the table and textboxes to be in a specific location on the report. The table varies between 1 and 6 rows. This causes a problem because the textboxes below the table move according to how many rows on in the table. Does anyone have any suggestions on how I can prevent the textboxes from moving location Thanks, Marc I found a solution.... I had one report where the table did not cause the textboxes to change location and another report where the table changed the textboxes location. I opened the .rdlc file in notepad and ...Show All
Visual Studio Team System Error checking in Setup Project
We were setting up a new team project, and went to attach the solution, including the setup project, to our team project. Everything was fine, except the setup project sent several errors up on the screen, and now the references are wrong. The error that we received was: Error 1 error(s) encountered attempting to perform the undo operation on 910 item(s) First Error Encountered: No pending changes were found for C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\template\layouts\1033\styles\iaccms\style.css See output tool window for information on any other errors Has anybody seen this or had the same ...Show All
Windows Forms How to get hDC for PictureBox?
Hi I want to pass the handle and DC of a picture box to a third party control. These were available in VB6 readily. Now we are porting the application to VB.NET . I am unable to get hDC. Please help.. It's a very urgent. Thanks Prasanth Use the GetHdc method of the System.Drawing.Graphics class. You can get the Graphics object for t ...Show All
Smart Device Development New .net compact framework on device
All, I wrote a simple application using .Net 2.0 - Windows mobile 5.0 smartphone sdk . My application uses Microsoft.WindowsMobile.Status.dll. When I installed this application on AudioVox SMT5600 and tried to ran it. An error popped up on device saying " The application requires a newer version of Microsoft .Net compact framework than the one installed on this device ". Does it mean, .net 2.0 Smartphone apps. written using mobile sdk 5.0 will not be compatible with devices running Windows Mobile 2003 second edition Any help in solving this problem would be greatly appreciated. Thanks. I'm glad it ...Show All
