Nycapo33's Q&A profile
.NET Development Unable to run pre-compiled code-behind
I pre-compiled a vb code-behind as ceapremiumrenter.dll. I copied the dll file to the BIN folder of my project. Then I modified the directive on the aspx page as follows: <%@ Page Language="vb" Inherits="ceapremiumrenter" %> However, when I ran the aspx page on VS, I got the following error: Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'ceapremiumrenter'. Source Error: Line 1:&nb ...Show All
Visual C# label.text repetition
Is there any shortcut instead of typing the code like this. I have 300 lines like these. Any suggestion guys, thanks label1.Text = myArray[0, 0].ToString(labelFormat); label2.Text = myArray[1, 0].ToString(labelFormat); label3.Text = myArray[2, 0].ToString(labelFormat); label4.Text = myArray[3, 0].ToString(labelFormat); label5.Text = myArray[4, 0].ToString(labelFormat); --- label6.Text = myArray[0, 1].ToString(labelFormat); label7.Text = myArray[1, 1].ToString(labelFormat); label8.Text = myArray[2, 1].ToString(labelFormat); label9.Text = myArray[3, 1].ToString(labelFormat); label10.Te ...Show All
SQL Server SQL CE Push ConnectTimeout
My application synchronises data with a SQL Server using RDA, the synchronisation process take place in a background worker thread. Due to the single connection limit with SQL CE 2.0 the form thread has to wait until the synchronisation process completes before connecting to the database to perform any updates or inserts. Normally the RDA push method executes quickly and the delay on the form thread is not noticeable. However CPU usage on the SQL Server can seriously affect the duration of the Push and consequently the form thread can appear to hang, not good from a user point of view. Is there anyway to set a maximum Push duration or ...Show All
Windows Forms How to make the mouse click...
How can i make the mouse click automatic, example: if(num5 == num 6) { //Mouse click } Thx in advance Note: This is C# and windows form. Hi everyone...in the future, I'd ask that you all please use the <<b>code</b>><<b>/code</b>> tags in the future when posting code so it is formatted nicer. Thanks! :) ...Show All
Visual C++ Problems with constructors
Hi I have a constructor for a class that takes an argument: chessBoard( bool StandardBoard ) { // reserve memory for the array variables boardContents = gcnew array < unsigned char >(64); KSCastle = gcnew array < bool >(2); QSCastle = gcnew array < bool >(2); whitePositions = gcnew array < unsigned char >(16); blackPositions = gcnew array < unsigned char >(16); //we want the board to appear empty to the program, so //we fill all the squares with the empty value for ( int scrL = 0; scrL<64;scrL++) boardContents[scrL] = 255; if (St ...Show All
Visual Studio mshelp:link in CHM
I'm generating technical documentation and need to automatically generate a link to member reference in MSDN2. For example I want to point to System.String.TrimEnd method documentation. It is easy when generating Help2, because I use mshelp:link and specify the keyword which can easily be determined (in this case the A keyword is frlrfSystemStringClassTrimEndTopic). But when creating CHM documentation, I cannot use mshelp:link but <a href="ms-help:// ... This is fine if I can "compute" the URL for the topic. It was easy in old MSDN but in the new MSDN2 many topics have random number appended in the URL. In this case it is m ...Show All
Visual C# ?porting to VC++?
I have heard about ppl doing it but how can it be done, im guess porting vc++ to C# would be a nice trick to know how to do. can someone explain or point me into a direction of where I can read about it. thanks We've looked at C++ to C# conversion (in depth) and unfortunately at this time we feel that there are too many subtleties and loose ends for a C++ to C# converter to be useful. The amount of work you would have to do in post-conversion cleanup would be so large that you may be better off doing it by hand. This is why you may never find a good C++ to C# converter (or even a bad one). The key ...Show All
Visual Basic Trying to edit and continue locks up the IDE
Whenever I try to edit a program when it is running, it gives me the option to stop and unwind so I can do edits. There are a couple other options also. But it locks up and I have to kill it. I know I am probably going about editing the wrong way but the fact remains that it should not lock up the IDE and force me to kill the process and it should not allow me to try to edit either. Btw- even though this was a bug in the Beta2 version, you might be able to workaround this when the hang happengs by Alt Tabbing away from Visual Studio to another application, and then back again. Hopefully this workaround helps ...Show All
Visual Studio Team System Visual Studio 2005 Team Suite 180-Day Trial upgrade to RTM licensed version
We are in tre process of purchasing the final version of the TFS server, but that might take a few weeks, I was wondering if I install the 180 day trial version and start doing some of the homework of configuring it, migrating the source files, etc. Once the we have the licenses, how easy it is to upgrade It is a matter of entering a license or do we have to uninstall/reinstall Any help would be appretiated. Thanks Are you saying the 180-day clients need to uninstalled, and the full RTM versions installed ...Show All
Visual C++ Memory Leak in C++ STL library - Visual Studio 2005
There's something wrong with the ios_base class in Visual Studio 2005. I was debugging my program and I noticed a memory leak. Since I could not understand what was causing that leak, I've tried using a memory leak detection tool (Rational Purify) and I found that the ios_base class causes a memory leak. I just tried to write this piece of code #include <sstream> int main(void) { std::stringstream myStream; //nothing else return 0; } The memory leak detection program tells me that: --Memory leak of 4 bytes from 1 block allocated in --std::basic_iostream<char,char_traits<char>::std>::basic_iostream<char,char_traits&l ...Show All
.NET Development using c# classes as com object
im using c# classes as com object and use that classes from vb6. but what will happen when i will remove my vb6 project to another computer i guess it wont work...so what i need to copy or do in order that my project will run in any computer thanks in advanced. Probably you will need to use RegAsm.exe to register the C# dll that contains your objects on other computers. ...Show All
Visual C++ CallByName in C++.
Hello ! I need answer to a problem. We all might be familiar with CallByName in Vb.NET and by reflection we can achieve that functionality in C# and Java also [to call a method when its name is given in string] . Do any one know some way of doing that in C++. If some one can possibly help, that would be great. Regards, Haroon Its possible if you use C++/CLI or managed Extension, also by reflection. Pure C++ doesn't support this. On a per DLL or module base it might be possible to simulate something like this, in using LoadLibrary/GetProcAddress. ...Show All
Windows Forms XP visual style compatible Tab Control
I've seen a dozen, often complicated, solutions to this problem, but I really hope the Tab Control will be able to display using XP Visual Styles in the next VS.NET release It's pretty annoying to have a great-looking interface everywhere but in the Preferences dialog.. :-) Have you ever tried enabling the XP Visual Style suport in your app That should render the Tab Control in XP style. ...Show All
Windows Forms How do you navigate a webbrowser control in another form (c#)?
I am a complete newbie at this specific stuff. At the same time I know php and javascript/dhtml better than the back of my hand - so I get lost on some terms, but understand the structure, concepts. What I am doing is cheating to what I know :) - and I am almost there - I can build anything webside, and instead of trying to&nb ...Show All
Visual Basic Address Bar Problem (Possible Solution)
Hello everyone, I'm still working on this browser of mine and What I'm trying to do I thought would have been a very simple thing but as usual, it's just turning out to be a big frustration. Especially when you're a newbbie. I'm using the AxWebBrowser on a form in VS 2003 to create this browser. The things that I've done so far are working fine. What I need to do now is make the TextBox I'm using as the Address bar change its text according to the http address the browser is at at the time. When I type an URL in there now and click the go button it works fine but if I click on a link in a page, the address bar text doesn't change to re ...Show All
