Hi there, I have a CEdit Control which I have put on a form at design-time. The CEdit control does not have any text initially. Now on run-time, I am inserting text to the CEdit control and I want the CEdit Control size to fit the text that I entered. It has to fit EXACTLY the text (resizing the CEdit to have a width which will just be enough to show the text). How do I do this dynamically? Any help would be highly appreciated Best Regards, Soleil Couchant
Soleil couchant
Posts
-
How to resize CEdit dynamically? -
BinaryFormatter -> Invalid binaryHeaderAre you serializing and deserializing using the same .NET Frameowrk / Operating System? If you are serializing in, for instance, .NET Framework and the deserializing in .NET Compact Framework, this will be an issue. Otherwise, you can use the XML Serializer, if platform/framework is your problem
-
Pervasive SQL 8.0A btrieve error 85 is thrown, which means the file is locked. Right now, my solution to this problem conbsists of looping through a try-catch block and keep trying until the file is unlocked. I was just wondering whether there is a more elegant solution to that.. bool bSuccess = false; int nCount = 0; while (!bSuccess && nCount < 30) { try { da.Update(dsControl, "Control"); // this throws the exception if // there is a lock on Control bSuccess = true; } catch (Exception ex) { nCount++; } } I suspect something wrong with Pervasive SQL 8.0.. :$
-
Pervasive SQL 8.0Hi there, anyone using Pervasive SQL 8.0?? I have an issue with transactions using C# on Pervasive SQL 8.0. The transaction does not wait when there is a lock (another transaction operating) on the table. It just throws an exception. Thanks for helping
-
Button pressed issueHello, I am trying to implement a feature on the PDA Application (Windows CE/ C#). There is a button and a label. While this button is pressed and remains pressed, keep changing/incrementing the content of the label. This seems to fit a mouse down/up event very well, but unfortunately there is no mouse down/up for the button on .NET compact Framework 2.0. Thanks for helping,
-
Count related recordsHi there, I have a stock table and a barcode table. A stock can have many barcode records and a barcode belongs to only one stock. How can I query the database, so as it returns me those stock which have more than one barcode? Thanks for helping, David
-
Button down issueWell.. I can't find them in the property window of the button. I have KeyDown, KeyUp and a bunch of other events but not MouseDown and MouseUp.
-
Button down issueI thought of that too.. But it doesn't help.. because when you click the button, the mousedown event of the form doesn't get fired
-
Button down issueI am designing a PDA application using the .NET CF, but I guess this issue would be the same irrespective of it being .NET Framework or .NET Compact Framework.. I have a button and I want to make it have like a button-down event. For example, a form has a mousedown and when the mouse button is down, there is an eventhandler mousedown for it. I want my button to do the same. Note that the mousedown event doesn't exist for a button. Even setting a mousedown event on the form which contains the button doesn't do the trick (clicking the button does not fire the mousedown event of the form).. what I want to do is have a facility in my application like while the button is being pressed (for example it can remain pressed for 5 seconds), keep changing the value of another control.. Any help would be highly appreciated. Cheers, David
-
Form instancesTry using showDialog() to open up the form. This shows the form as a modal dialog box with the currently active window set as its owner. The form being opened will show only once then, I think..