JoelDev's Q&A profile
Visual C# Refactor -> Rename class
When I use the refactor tool to rename a class (aspx.cs), it changes the "CodeFile" attribute in the corresponding aspx page, but not the "Inherits" attribute. Jason - Where are you invoking the rename from Fom the editor in your aspx.cs file Unfortunately, the refactoring tool does not update references in markup -- you should see a warning dialog with this information when you applied your refactoring. Do you see the "CodeFile" attribute being renamed to the new name of the class This should should still point to the same aspx.cs file that it referenced earlier. Thanks, Karen ...Show All
Visual C++ New to Windows Programming
I have an old C program (written under UNIX) and I need to convert it into a Windows program with a GUI. The program only does some calculations and saves the output to a file. I have V. Studio 2005 and I'm confused!! I don't know which type of project I need and if I need to use C++ (which I don't know too much about). Can someone please give me some guidance Sphinx06 You can use winfroms for such application. Also, MFC or general Win32 API could do the job but Winform projects in my opinion is easier if you don't have background in C/C++. Thanks, Ayman Shoukry VC++ Team ...Show All
Windows Forms Controls on TabPage not initialized until TabPage is manually selected
Hi, I tried searching the forums and looked in my two windows forms programming books but had no luck, perhaps you can help. I have a form with a TabControl. The TabControl has three TabPages. On each TabPage there are databound controls. I have always had the problem that through code I cannot read the value of a tab control untill it has been selected. Previously I wrote some code to manually selected each tab page on the Form Load event. This worked fine for awhile. Now I need to display a message to the user which will fire on the TabControl_DeSelection event. Unfortuneately this conflicts with my code to cycle thro ...Show All
Visual FoxPro RSA Public/Private Key Encryption in VFP 9.0
Hi, I need to be able to decrypt data pulled from a MySQL table encrypted with RSA public/private key encryption within a FoxPro application. I am currently using the FoxPro Foundation Class known as _cryptapi as a wrapper to the CryptoAPI interface. The problem I'm having is that I can't seem to figure out how to decrypt a RSA encrypted string of data. I know that the _cryptapi class provided by Microsoft uses the Microsoft Base Cryptographic Service Provider which in itself uses RSA public key encryption algorithms, but for some reason I am having the hardest time finding the methods that support this in the _cryptapi fo ...Show All
Visual J# System.InvalidOperationException Every Time I try a particular Web Reference
Greetings Fellow J# Developers! I am currently working on a project which requires me to make references to the Autodesk Vault Web API. This API apparantly at some point passes in an array of INTS or LONGS. Although I cannot post the code from their end (on account it is closed source), I can post my code that is generating the error (though I don't feel it will be of any help). I posted this to the Autodesk Vault user group, and this is the reply that I got: Reply From: Doug Redmond \(Autodesk\) Date: Jul/25/05 - 12:27 (GMT) Re: GetLatestFileAssociationsByMasterIds can not be reflected ...Show All
Smart Device Development Adjust code warnings?
I'm getting 2 warnings by the linker when I compile: a.obj : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x0000225C b.obj : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x0003908C Are there any specific limitations regarding the size of object files I know both are large source files but nothing out of the ordinary. Maybe I'm missing a flag of some kind for compilation Thanks in advance. -- Henrik So, this is most likely a no-op for you, but the long and the short is that bugs happen to everyone, including hardware manufacturers. If you know that you won' ...Show All
Visual Studio Express Editions first c# errors
Here is my code and i cannot compile it. i cannot understand why public static void Main() { // single dimentional array int [] numbers = new int [5]; // multidimentional array string [,] names = new string [5,4]; //array of arrays byte [][] scores = new byte [5][]; //create jagged array for ( int i=0;i<scores.length; i++){ scores = new byte [i+3]; } // print each row for ( int i=0;i<scores.length; i++){ console.writeline( "length of row {0} is {1}" ,i,scores .Length); } Errors that i get on compiling Error 1 'System.Array' does not c ...Show All
Visual Basic MDI Forms versus Usercontrols
I am building a Windows Forms application. It will use several forms, all starting from a 'home' form that provides summary info on the data elsewhere in the app. Basically, I don't want to make the thing an MDI Form, but I want it to behave like Outlook, for instance - where it appears that the same main form is being re-filled with relevant data/controls depending on what you want to achieve. Is there a best practice way of going about that Are UserControls the recommended approach to achieve this objective Regards Dipendra No , dipendra i think usercontrol is again a control which is place ...Show All
Visual FoxPro Day Time Picker little trouble.
Back in Visual dBase days we used regular spinners for dates but here in Fox the spinners do not seem to like dealing with anything but numeric values. I placed three day/time picker controls on two different containers that are supposed to become visible or invisible depending on some buttons being pressed. I am certain the pickers' parents are the containers however when I make the containers invisible (setting .visible to .F.) the pickers stay on like they belong to underlying form or in this case a page on pageframe. Moreover, if I make another container visible and this container appears on the same page I end up seeing 3 pickers in ...Show All
Windows Forms Aligning the list row with corresponding tree node in a Tree/List combination
Hi, I am trying to combine a treeview and a listview in the same control. The treeview is on the left and the listview is on the right, separated by a splitter. The tree nodes are tagged to objects implementing the same interface, and therefore, each node can be related to all the column names. When the user expands and collapses the treeview, the ...Show All
Visual C++ WM_KEYDOWN
Hello, I am looking for some help on making a program that will give me the number for each key. I known that I need to hook the keyboard first, and I have that code. Now, from there I am oblivious as to what I need to do next. Any refrences or sample codes would be great. Thanks. Note: Win32 API is what was writing this in. If I can possibly stick to that, it would be great. Thank you. (This is NOT for a homework assignment, instead I was curious about the keyboard's numbering, for all combinations) ctimko ctimko wrote: Hello, I am looking for some help on making a program that will give me the number for each key. I known that ...Show All
Visual Studio Team System unenable code analysis
Hello, I do not know how this happened but it appears Code Analysis is enabled in my VS 2005. Unfortunately, there is no way to unenable it without the Team Edition. So this results in a build error - unable to spawn fxcopcmd.exe. Any ideas Registry settings A couple of questions: Have you installed the Visual Studio Team Foundation Client (TFS Client) Was the project created or edited on a system with Visual Studio Team System installed You can disable the Code Analysis by manually editing the csproj/vbproj and changing the RunCodeAnalysis element to false, for example: < Prope ...Show All
Visual Studio Team System TF30170 Error, When i create a new Team Project
Hi for every one, I need some help, when I try to create a new Team Project, I get one error, TF30170, any idea why Thanks Ray! Could you post more information please The logs during project creation would be the most helpful. Thanks, Jay ...Show All
Visual C++ Good Style?
I have only just recently starting using Visual Studio and Visual C++ and I've noticed that left to it's own devices the IDE has you put code it the header files of your projects rather then in a separate .cpp file. I know this works and compiles but was just wondering if this was considered good form Would it be better to make the effort to separate the code from the headers TTIA, Rene The following 2 links might indirectly answer your issue and explain more about the such use: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=4153&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostI ...Show All
Visual Studio Team System Where to download MSFWinBuild?
I'm in the process of customizing the MSF Agile Process Guidance. I have been using the Process Guidance Customization Guide from the Visual Studio October SDK. This guide mentions that the MSFWinBuild Tool is useful to pre-render the HTML files. The guide says that this tool can be downloaded from http://msdn2.microsoft.com/en-us/library/ms243893.aspx . However, I can't find the download. Where can I download this tool from Thanks _____________________________ Sarah Cameron - InCycle Software You don't need to apologize to me. I appreciate your willingness to jump in and ...Show All
