arunr2002's Q&A profile
Smart Device Development Program Termination
I'm developing an application for an IPAQ 3115 in Visual Basic. I'm using application.exit to stop the program. I can't restart it again unless I do a warm boot first. The exe file on the IPAQ stays busy until I do the warm boot too. Is there a way to stop the program completely Most likely that's because you have background thread(s) running. Please make sure to shut them down or make them to exit using flag. Here's more info: http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_frm/thread/b61f02951a3aafa8/a85f4a95f7bfe857 q=background+thread+terminate&rnum=1#a8 ...Show All
Visual C++ How to get a dynamicly created control's dc
I need to create a control dynamicly and then get its DC to draw text and so on,just do as the following code: BOOL bCreate = m_hEdit.Create(WS_CHILD | WS_TABSTOP | WS_VISIBLE |ES_LEFT , rectEdit,this, IDC_COMBOTREE_EDIT); if (bCreate) { CWnd* pParent = GetParent (); CFont* pFont = pParent->GetFont (); m_hEdit.SetFont (pFont); } CDC *dc=m_hEdit.GetDC(); dc->DrawTextW(_T("ok"),-1,CRect(0,0,30,20),DT_LEFT); dc->SetBkColor(RGB(0,0,0)); m_hEdit.ReleaseDC(dc); but it doesn't work,I can never see the "ok" in the edit. Any help is appricited. Thanks! para This will not work, because each window gets mess ...Show All
SQL Server auto uncheck the table permit
I have database called "backoff" at both server A and server B. server A and server B is same, but I copy the server A database to server B the server B before paste the server A database, I set the userA in security > logins > "userA" > checked the database access permit for some table but after paste the database, it auto uncheck. Information --> The userA are owner for some table in the database help ........... I *think* this question relates to the database engine so I've moved it to that forum. If it's really about tools, it may get moved again. Dollysheep, ...Show All
Visual C# controls from another form
how can i change the text property of a textbox in form1 from form2 i have two forms: form1 and form2 in form2 i have a textbox and a button and in form2 i have a textbox. what i want to do is when i click the button from form2 the textbox.text from form1 will get the textbox.text from the current active form form2. Shakalama's example works if you don't mind closing Form2. But since you said that you didn't want to close Form2, let me present an alternative. In Form1 // in Form1 private void button1_Click( object sender, EventArgs e) { Form2 form = new Form2 (); form.ParentForm = t ...Show All
Windows Forms CancelButton problem
Button2 is the CancelButton, the Click code is simply Me.Close Even if I set DialogResult to None for Button2, this setting is changed to Cancel when I display the Form in Design mode and hit Button2. Running the application: When hitting Esc, a RaceOnRCWCleanup error is being activated. Clicking Button2 makes the Form close without problems. Any clues Thanks, I believe you are right about COM objects making trouble. The funny thing is that the problem (using Form.Show) seems to disappear if an AcceptButton is set for the Form as well (no guarantee though). But this is not always possible. Anyway, now I'm in ...Show All
Windows Forms create excel using templates
I am trying to create an excel file from a template file ( using the template to create excel headers and footers to appear on each page). the SAVEAS runs and creates the new file without the header and footer info. How can I take the template with this info and carry it into the new excel file. I am using Microsoft PIA excel library: - the&n ...Show All
Smart Device Development EVC4 Migration to VS2005
Hello Experts, I'm trying to migrate existing native C++ EVC 4.0 (Targeting Pocket PC 2003) projects to VS 2005. After installing all required software and SDKs I opened the project in VS 2005 and compiled then errors started to evolve. All the errors I saw were related to classes that were dropped from MFC! Fortunately I was able to resolve most of the errors by using classes that are supported or by getting rid of the class completely whenever possible. My problem started when I tried to resolve the errors related internet and http classes, which are: CInternetFile CHttpFile CLongBinary CInternetSession CInternetConnection CHttpConn ...Show All
SQL Server SELECT in a table takes FOREVER
SQL Server 2000, QA Database: A table called Telephone_Directory with just 4.000 records. SELECT * FROM Telephone_Directory is taking forever. If I stop the select after 1 second I see 162 rows. If I stop the select after 1 minute I see again 162 rows. Why this could be happening The same querie on Production Database is taking 6 seconds to retrieve the 4.000 records. That's a bit odd. First thing I might try is reindexing the table... perhaps there's an error of some sort in the index structures. Since it's a very small table, reindexing should be very quick. The ...Show All
Software Development for Windows Vista Workflow Designer Flexibility
I've been testing WWF for very mainstream workflow purposes, but I think a flexible embedded WWF designer in a winform itself could be potentially very useful for, well, many other things as well. In any case, the example I have in mind is using the WWF designer to create or modify a logical expression (I will need this sort of functionality in the application I'm designing). So here is what I was thinking... Let me preface all this by saying I realize the WWF designer wasn't probably intended to work this way, but I'm curious as to know exactly what the limits will be fo ...Show All
Visual Studio Team System Error messages from data driven unit tests - where are they?
I'm working through the testing walkthrough at http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/VSTSSysDesigner.asp . For the data driven test, when the test fails, I'm not seeing any error messages - just a global indication that the test failed. Double-clicking on the failed test in the test results window shows a grid with a line for each row of the data table, including a pass/failed indicator - but no sign of the error message that as passed to the failed Assert()'s. What am I missing I thought I'd already done that, but I hadn't - thanks for the reminder! http://lab.msdn.microsoft.com/Prod ...Show All
Software Development for Windows Vista Could I use WWF in such scenario?
In many business application, some database records should be viewed and modified by many person by sequence. In general, at anytime there should be only one person to modify the record, after this person "commit" his modification, another person could go on to modify the record (on another machine in the network) and when the record is being modified, other person could only view the record. Sometimes the record may be withdrawn or rollbacked to previous node in the workflow and such rollback should be logged. A typical scenario is bug tracking application, or order form process system. I am wondering if I could use WWF in s ...Show All
Windows Forms VS.NET Toolbar
I've created a VS.NET Add-in, pretty easy, but is there an easy way to create a VS.NET Toolbar Is it even possible Thanx awesome! thanx so much! I'm actually on my way out of town, but when I get back, I will definitely be giving that a try...thanx again :) ...Show All
.NET Development How can i accesses my static variable from one class to another ?
hi all I am using vs2003 how can i access my static variable from other calss... actully i am working on dersktop appl and i want to keep the track of user from one page to another i tryed many logic to access the username so i am trying to use the static variable any body know how to store username for globel use I guess you need only the value in TextBox that is to be used in the next form. In that case, you have a Property (Public) and store the value of TextBox in that property. Expose the value through Property in the other forms. ...Show All
Software Development for Windows Vista About custom container activity's shown behavior
I made a custom activity which inherits StateActivity,and there are many activities in it.And then I made a custom designer for this activity.Override the OnPaint method without calling base.OnPaint(). Everything seems ok,and the sub activities in my custom activity isn't visible as my expect.But my question is that when I hover mouse to show the custom activity's tooltip or drag the custom activity to other place,sometimes,the sub activities in it will show their names on the designer.How to avoid this behavior A custom state activity cannot have child activities. The designer prevents you from adding any activities to custo ...Show All
Visual C++ Migrate from VC++ .NET to VC++ Express 2005
Hi Saraav! How difficult it is to convert from VC++ .NET project to VC++ Express 2005. I have developed the skeleton project which needs to be moved to VC++ Express 2005. If it is normal (native) C++, then it should be no big problem. Just open the solution with the express version (or is the conversion not available in the express edition ) You only need to install the lates PSDK and put it in the right directory. If your app uses MFC/ATL then there is no support in VC Express! If your app uses managed extensions for C++ you can try to compile with the /clr:oldstyle (or so...) See also: h ...Show All
