opkguy's Q&A profile
Visual Studio How to add custom control to Visual Studio 2005 Toolbox?
Hi all, I am working on a Windows Forms custom control now and I would like to place my control right on the Toolbox window after installation, however, this seems to be a problem now. I notice that EnvDTE and EnvDTE80 namespace and the DTE2 interface seem to provide customization of VS IDE environment, and I tried as follows: 1> Get a DTE2 instance by Activator; 2> Use DTE2.ToolWindows.ToolBox.ToolBoxTabs.Add to add a new tab; 3> Use ToolBoxTab.Add(name, object, vsToolBoxItemFormat) to add my control. here name="Control1", ie, and object=@"C:\Control1.dll" as mentioned in MSDN. Here is the problem. this method should retu ...Show All
Visual C++ lnk2034 error metadata inconsistent with COFF symbol table:
This is my first try to convert programs to VC 2005. I am trying to convert from Visual C++ 6 to Visual C++ 2005. I am including .h files that reference VC++6 libraries. These calls may send a few values and generate a report nothing extraordinary. The application is a basic console application. I made no changes to the libraries. I can't find much on this error. This is a copy of my build log. Any clues < html > < head > < META HTTP-EQUIV ="Content-Type" content ="text/html; charset=utf-16"> </ head > < body > < pre > < t ...Show All
.NET Development Using reflection to load GAC assemblies
I just want to use reflection to load an assembly in the GAC. Is the only way to do this to use Assembly.LoadFrom("path to GAC\Assembly name") That seems a bit naff. Well, as far as I understand it, using Assembly.Load() with full display name doesn't work for assemblies in the GAC.. see: http://groups.google.co.uk/group/microsoft.public.dotnet.framework/browse_thread/thread/758ab297665fecb1/2aca5f83221cdb3e lnk=st&q=assembly.load+system.data+gac&rnum=5&hl=en You have to specifiy the FULL name of the assembly i.e. name, version, culture, public key. S ...Show All
Visual C# VB.net verses C#. Which is used more. Which more popular
Does someone have any data on which language is used more and what the percentages might be of developers developing in Visual Studio Is C# used more or VB.net Is there a future trend Is one gaining in popularity over the other Any information on this would be appreciated. Does MS prefer one over the other I am a VB.net developer, contemplating a move to C#. My opinion is That c# is better because is bassed on c++ java and VB there are all in one, isn`t that great maybe i find c# easier because i learn it first, but i think i have a chance too in VB.NET coz i thin ...Show All
.NET Development find my external ip address not internal
hi, anybody know how to find the external (real) ip address using vb.net/c# thanks t Hi, I'm not sure what you ment as external ip. However, You can use Request.UserHostAddress or Request.HostName for this of the HTTPRequest class. Regards, ...Show All
Visual Studio Tools for Office VSTO_Main thread where did it go?
Using VST0 2005 with C#. I have an action pane that initiates a user request by creating a thread to query a web service. After the thread is created to do the work, the current (main) thread makes a progress bar visible and disables all action buttons and returns control to the excel application. The worker thread communicates with the main workbook via events. I have an event which signals the workbook that processing is done. At that time the workbook calls a method off of the action pane control to enable the buttons and make the progress bar invisible. While debugging, I get a message saying that I cannot perform the hiding of the progr ...Show All
Visual C# C# - Maximum Project Name Length
I just installed C# Express Version 8.0.50727.42 and I have difficulty debuging applications with a project name length of 11 characters - if they are less than that I don't experience this problem: Example: I created a new windows application project named: abcdefghijk and then immediately pressed F5. The following error is in the output window: The program '[688] abcdefghijk.vshost.exe: Managed' has exited with code -1073741819 (0xc0000005). Manually, I can go into the output directory (E:\Documents and Settings\Parents\Local Settings\Application Data\Temporary Projects\abcdefghijk\bin\Debug) and execute the abcdefghijk.exe and the applic ...Show All
Visual Studio Package 'Visual Studio Source Control Integration Package' failed to load
When I build our source code using DevEnv I get an error message saying "Package 'Visual Studio Source Control Integration Package' failed to load" in the log file. I am just test-building a copy of our source code with VS2005 so no source control should be involved. How can I get rid of this message When I build the very same solutions interactively I do not get any messages concerning source control. Dan, Thanks for the response, however, this is a new install of VS 2005. This hasn't been a real problem for me since the project actually builds in spite of the error messages. I'm just not real sure wh ...Show All
Visual C# simple calculations on decimal data from text boxes
Hi, I am making a calculator using text boxes. I need to perform a multiplication on two numbers fetched from two text boxes, and then display the result in a third text box. I tried parsing the arguments into 'float' or 'decimal' but this does not seem to work. Simpler example: MyTextBox.Text = ( Convert .ToDecimal(AnotherTextBox.Text)).ToString(); Even this does not display the information correctly, when i type in numbers like 9.72. Can someone please reveal the right trick to me Thanks! Thanks! Ido The Parse methods take your current culture into account, and you need to use the proper decimal point (most likely "," o ...Show All
Visual Basic VB first time install
I am a network administrator interested in program development. I installed VB 2005 Express Edition for the first time on a Win XP Pro SP2 Dell GX 260 Optiplex (1GB of RAM, 1.8 GHz processor). I log in and therefore install with admin rights. Upon writing a small program to view web pages, the IDE hangs when I start debugging to test the program. The vbexpress.exe CPU usage hits 99% and stays there. I have to use Task Manager to force the process to end. Has anyone else run across this on a first time installation of VB 2005 Express Edition I'll know more tonight. This is on my home PC, so I'll try that ...Show All
Visual Studio setting login when using xml file as database?
I have existing xml files that I'm loading into my report. I am NOT using any datasets. I still get login prompt on client installed program. How do I set this or get around it for anyone wondering the solution is to set the authentication mode in the project properties>application tab to "Application-defined" rather than "Windows". Not sure if this will impact anything negatively or not though. I do use a web service to get new data so there shouldn't be problems. Also, for some reason it seems to require the use of a dataset regardless of whether you need one or not and you'll have to set the table ...Show All
Visual Studio Tools for Office How to create new workseet from VSTO Excel template?
Hi All, I created an VSTO Excel template with a single worksheet. I wanted this to be a worksheet template, so I've published it in OFFICE11\XLSTART folder. Now, I can create multiple workseets from this template but only the first one appears to execute code in worksheet class's events handlers like Sheet1_Startup... My code looks like this: public partial class Sheet1 { private void Sheet1_Startup( object sender, System. EventArgs e) { Console .WriteLine( "Sheet Name:'{0}'" ,((Excel. Worksheet )sender).Name); MessageBox .Show( string .Format( "Sheet Name:'{0}'" , ((Excel. Worksheet )sender).Name)) ...Show All
SQL Server Error: Cannot fetch the rowset from OLE DB provider "SQLNCLI" for linked server "MOTHER\DATABASE"
Hi, I’m trying to make several distributed queries to a linked server, and for some of them I get this error message. I can’t find anytihing about it anywhere. Can anyone tell me what could be the reason of this error The way I'm executing the query in my stored procedure is: exec sp_executesql @sqlinsert @sqlinsert being a nvarchar sentence that contains the distibuted query. Thank you! Mehdi Guess the provider needs a return value. I don’t know if it needs a return status like return 1 or return 0, or he needs something to handle (just a dummy select or something else. Try setting th ...Show All
Visual C# Sockets programming
Hi all, Im new to socket programming, my question is can the winsock control be used to receive data or messages from two different clients at two different ports simultanously. Thank you There is no format when you use sockets. It can handle all kind of streams. The best way to start as reading the msdn entry on the Socket class. ...Show All
Visual Studio Misaligned fields
I am using Crystal Reports for Visual Studio 2005 along with the CrystalReportViewer, but am having issues when anyone views the reports in an Internet Explorer or Netscape browser. If a label and a text box are aligned next to each other, the text box appears to be lower by about half the height of the label. This does not occur if the user views the report in Firefox. If the IE user printes the report, it looks fine. I found a knowledgebase article describing this problem for CR for Visual Studio 10 (Track ID ADAPT00387731). It recommended Opening the CR Designer, Clicking on F ile, P rinter Setup and Clearing the ' ...Show All
