Bronco Billy's Q&A profile
Windows Forms How to have text size adjust to fill space.
I have a resizable panel that contains a textbox. The textbox can only display a single character at a time. The textbox's dock is set to fill. How would I adjust the size of the text in the textbox to fill all vertical space available So as the panel is increased in size, the size of the text increases to the max possible visible size. And visa versa. Thanks. Here is what I did: private void GameCell_Resize( object sender, EventArgs e) { if (textBox.Text.Length > 0) { Graphics g = Graphics .FromHwndInternal( this .Handle); SizeF currentTextSize = g.MeasureString(textBox.Te ...Show All
.NET Development Putting controls on the Web Forms
Hello : I am facing a difficuluty in putting cotrols in the right place on the web form in flow Layout. Specially right-alighned controls( as in Arabic).When the form ran , some of the controls are shifting from their positions to a random positions. How could i solve this problem Thanks alot Hasan, We have recently found and fixed several issues with regard to right-to-left rendering in Visual Web Developer. It would be really helpful if you could log a bug using the MSDN Feedback center describing the repro and result in detail. Someone from our team will follow-up with you based on our findings. Tha ...Show All
Visual C++ GDI+ : Drawing objects over TabControl
Hi, I've been working my way around GDI+ for a couple of weeks now. I made a little application where user can choose among several shapes and then move/place chosen shape using mouse, building this way a customized furniture set. The area where user can place each shape chosen is delimited by a panel control for which I defined the background color as having transparent. Everything is going smooth but... As second step, I added a tab control in order to have in first tab, the drawing area where use can place graphically each piece chosen and a second tab, the estimate or cost list of his customized furniture set. My problem is that ...Show All
Smart Device Development Windows CE 5.0 projects
Hi, What if i created a project this way, New Project > Smart Device > Pocket PC 2003 > Device application, will this project be able to run on Windows CE 5.0, or should i use the Windows CE 5.0 template, if the mentioned project will not run on Windows CE 5.0, so how can i make a project that targets Pocket PC 2003 and Windows CE 5.0 at the same time Another Question: how can i run Compact framework 2.0 applications on Windows mobile 2002 Kind regards, CBuilder You can use the "change target platform" to accomplish this. This changes the target platform of a managed device project to another platform targeting the same vers ...Show All
.NET Development I'm sure this isnt the right place for this question but ....
I was wondering if microsoft is ever going to make drivers available for Windows XP 64-bit edition. I just purchaced a fingerprint reader (a microsoft product) only to find it does not work in XP 64. I have searched everywhere I can think of to find out if there was a driver available but it doesnt seem to exist. Then I looked at the microsoft hardware site and randomly looked at driver downloads for their hardware and none NONE were available in a 64 bit version. How can microsoft sell hardware that is not compatable with their own operating systems and how do they expect people will want to buy the 64bit edition if nothing works Please ...Show All
Software Development for Windows Vista Errors while compiling xoml
We are creating custom activities and designers for them to allow users to configure their own workflows. In the process of developing these custom activities, we think we have found a bug when compiling xoml files that are not always well-formed or have some other problem. Whenever I save a bad xoml file, or build my solution, the memory use for my IDE grows signifigantly, and eventually the IDE crashes, or I get symptoms similar to those mentioned in KB Article ID 915038. http://support.microsoft.com/ kbid=915038 This is a bug in the VB.NET compiler. At first I didn't pay any attention to it, because I am using C#, not VB.NET. Eventually I ...Show All
Visual Basic RowFilter DateTime Comparison
I have two DateTime fields in a datatable, Start and End. In the rowfilter I want to filter records on just the date portion of the fields (ie. Start=#7/16/05#), but this statement will never be true just as the time portion of the 'Start' field will be taken into account which will never be 12am. How can I use just the Date portion of the DateTime field in a rowfilter.. Thanks in advance, Mike Hi, Or, you could try to use the CONVERT t-sql function in your select statement. So that the values in your DataTable would be in date format. And thus easily for you to filter... cheers ...Show All
Windows Forms Calculate Width of a String in Pixels
hallo, Given a Font and a string, is there any ready-to-use function in .NET which can compute the resulting width of the string in pixels So that I can adapt say a Label, MenuItem or Textbox to the new size of a string. thx, Steve I guess we can agree to disagree on this one. =) I didn't have a lot of time to plink with&n ...Show All
Windows Forms Formatting 0.001 values in DataGrid
How do I get formatting of 0.001 values to show in the DataGrid I have written a stock application for my PocketPC but its showing 0.0 instead of 0.001 and how can I change the formatting so it shows in the DataGrid Thanks, Kenneth You can map the fields and specify the format. Set the format to N2 or #0.0 to get a number with one decimal only. Here is an example: DS = new DataSet(); DA.Fill(DS, "Products") // Create a Grid Table Style. Map it to the "Table1" Table. DataGridTableStyle tableStyle = new DataGridTableStyle(); aGridTableStyle.MappingName = "Products"; // Create GridColumnStyle obje ...Show All
Windows Forms Windows Explorer Style App
hi... as i said my app has windows Explorer look and feel i need to do the drag and drop i have diff case...(one at a time) TreeView to TreeView TreeView to ListView ListView to TreeView so currently i tried for TreeView to TreeView Code go here..... Private Sub TV_ORG_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms. ...Show All
.NET Development .Net 2.0 send email with multiple “To” recipients
Hi, I know how to send emails in .Net 2.0, but I can not send one with multiple email recipients in the “to” field. If possible I would like to specify display names for all recipients in the “to” field but this is not required. I had the same problem, rather than change all of my code, I changed my main mail routine as follows. This works for me, let me know if you have any questions. Public Function SendEMail(ByVal strFrom As String, ByVal strTo As String, ByVal strCC As String, ByVal strBcc As String, ByVal strSubject As String, ByVal strBody As String, Optional ByVal strAttachment A ...Show All
SQL Server Doesn't like a particular namespace
Hi, Can someone try and replicate an error for me. Follow these steps: 1) Create a new package 2) Place a Sequence container in it 3) Create a variable called User::ContainerStartTime scoped to the package 4) Create a variable called User::ContainerStartTime scoped to the sequence container 5) Change the namespaces of the 2 variables from "User" to "Metadata" You get an error on step 5 saying another object in the collection already has that name yet it doesn't mind them when they're both called User::ContainerStartTime Why -Jamie Hi Jamie, Yes, but we had already found and fixed it for SP1 and that is what it is being tested on for ...Show All
SQL Server Deployment question: SQLDB - SSIS on different boxes with SQL Agent for scheduling
I am interested in how you guys are deploying your packages. I am running SQL Server Integration Service(SSIS) and SQL Server Database Service (SQLDB) on different boxes. I can't have SSIS installed on SQLDB box because in my prod. environment, the DB box has *just* DB - no services or no other fancy stuff. So far so good. Now, if I want to schedule the SSIS packages (deployed on MSDB) to run periodically, I need to create an SQL Agent job (or everyone else here is using a Windows scheduler instead ). SQL Agent has dependency on SQLDB and so it goes on the SQLDB box, correct Can I run job steps to execute SSIS packages&n ...Show All
Visual C# WebBrowser control as Editor With RitchTextBox For Code??
hi..Everybody.. I have make WebBrowser like html editor..which i have take the code of that from some site..But the question is how i can make the html editor with RitchTextBox run syncronizelly..Like Exactly MS-FrontPage..2003..i want like when i type any character on WebBroswer Editor..i want to render each character writen to RitchTextBox.. basically like ms frontag page way.. Kind Regards.. Bassam Basamad Sorry.. SeanKornish can you clear you reply..you said.. i have to save the value of RitchTextBox before i go to Design View..to make edition to my html page..so when i come back to source code(RitchTexBox) i r ...Show All
SQL Server Release database lock
Actually I'd like to know how I got the lock and then you can tell me how to release it. Here's the problem (this is sql server 2000 with visual studio 2005) I have a windows service that wakes up every 5 minutes and does some database work (reads rows from a table, process them, inserts them into another table). When the inserts are complete, the process should (I would think) release the database lock, but it doesn't. The database is accessed via a dataset object and that object is disposed of via the using/end using statement. Is there something I have to put in the connection string to avoid this behavior Thanks, Bob ...Show All
