Tej62007's Q&A profile
.NET Development Specifiying a folder for library files?
I have a need to have an directory structure where the dll's reside in a seperate folder from the execuatable. I know I can do this by registering the assemblies via the GAC. However, I would like some way of programmatically specifying the path. Perhaps there is some way to do this via environment variables of the AssemblyInfo I would prefer not dynamically loading the assemblies via the Assembly object so that I can retain intellesense within the executable projects. To programmatically set the assembly folder for the loader, you can use AppDomain.ApplicationBase: http://msdn2.microsoft.com/en-us/library/system.appdomainsetup.applicationbase.aspx This ensures the assemblies are loaded in the Load context rather than the ...Show All
Microsoft ISV Community Center Forums Hyperlink in text (or anywhere). Use a LinkLabel >>
I have created a program that I plan on disbursing to other people, on this program, I have added a simple form with support info. I would like the text to be a hyperlink for a website and email. Any suggestions thanks Hi guys, VBA is not the same and VB.NET. The System.Diagnostic.Process object isn't in VBA and unfortunately neither is the link label control. If you want to have a link in a form in one of the Office applications then you need to fool the user by having a normal label control with blue underlined text that when clicked opens the site. You can use the shell command to open your web site. You but this in the label OnClick event. Shell "explorer http://www.yahoo.com ", vbNormalFocus Unfort ...Show All
Windows Forms Inherited form question
I would like to create a base form with a menuStrip control that contains 2 menu items to appear on each inherited form. This is no problem! However, I need to add different menu items to the menuStrip on the various forms which inherit from the base. I have set the status attribute to protected on the base form's definition of mnuStrip. I still cannot add items to the mnuStrip on the inheriting form. Any suggestions will be appreciated. Hi mrferg, Thanks for your posts on MSDN forums. Your discovery here is a bug of VS runtime designer already reported by our customers at: http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx feedbackid=2a3a6865-b3e8-44c6-80d4-4f764609c032 ...Show All
Visual Studio Express Editions problem installing psdk in vc++ express
I installed vsc++ express edition, then registered it. That was my first problem but its solved now. then I opened help and found I needed to install the psdk so I went to the psdk page and it told me that this was an old version and there was a newer version. and it linked me to the new version Microsoft windows 2003 server R2 platform sdk webinstall. This page was for a web install Since I have an AMD64 X2 cpu, I chose the psdk-amd64.exe for amd64 and ran it. it ran then up popped a second dialog box asking if I wanted to run psdk-amd64.exe I said yes and it says. its not a valid win32.exe ok, now I am stuck any help I guess I should have specified that. No, I am running windows xp media edition, 3 ...Show All
Visual C# naming convention: _property vs. this.property
private string _property; public string Property { get { return _property; } set { _property = value; } } private string property; public string Property { get { return this.property; } set { this.property = value; } } Is there a design guideline on how to name fields that are encapsulated by a property Wich of those two versions should be preferred and why In the 2nd version FXCop complains that Member names should never differ only by case. But most code I see seems to prefer the 2nd version ... If you look at the guidelines for field usage, you see the usage of camelCasing for private fields and PascalCasing for public fields and properties. However, going through the .NET Framework documentation you will see num ...Show All
Smart Device Development want to capture Outlook Message before MS Outlook gets it.
Hi, I am writing an addin for MS Outlook 2003 using .Net 2003 I want to capture message which come form Exchange Server when we click Send/Receive button before it goes to MS Outlook, and want to perform some task related to attachment, subject,etc..How can I capture this message. And one more thing is it can be achieved by using EDK(Exchange Development Kit) which provide all sort of Interfaces but it would be a dependency if some body is using Linux or some thing else at server for exchange. Im using .Net 2003 and MS Outlook 2003 and also using CDO Library to achieve my goal. First of all this is a wrong forum for you. Second of all you should be able to achieve what you need by creating an Add-in for Outlook. And you'd better off ...Show All
.NET Development XML Serialization changes in 3.0 ?
I have a type and an XML doc that deserialize fine using the .Net 2.0 and .net 3.0 RC1 However, using the RTM of 3.0, it will not deserialize. Now, it's possible this is our coding error. However, I thought 3.0 was entirely backwards compatible Here's the lowdown: 1) Using "sgen /k /t:... " with the .cs files on multiple machines match as long as they have the same version of the .net framework. However, they differ significantly on different versions of the framework. (that is, between 2.0 and 3.0) 2) Our problem is that we had a root element serializing to a type that had the [XmlType(Namespace=)] attribute, rather than the [XmlRoot ... ] attribute. While it may be an error to deserialize our type correctly, i ...Show All
.NET Development Reference ADO DataSet objects in VBA
I’m writing a C# assembly and some of the methods return a ADO DataSet. This I can do without any problem. However when I want to use my assembly in Excel VBA I see my methods and they indicate that a DataSet is returned, but I can’t define a DataSet in my VBA, ie Dim ds As DataSet This causes a compile error in VBA. Clearly I’m missing a reference. Exactly which reference do I need in my VBA project. “Microsoft ADO Ext 2.7 for DDL and Security” and “Microsoft ActiveX Data Object 2.7 Librart” do not work. in order to take advantage of the dataset in VBA you will have to use a VB/C# project and use VSTO to communicate with excel. VBA can NOT natively use .NET com ...Show All
SQL Server Full Text Catalog MSSearch.exe owning CPU cycles (60-80%)
I've got a server that even when it's not being used for any queries is running at 60-80%cpu capacity. I've got full text catalog going on on the sql server and noticed that MSSearch.exe (related to full text search) is taking up almost all my CPU Time. why is this and what can I do to stop it We are also having some issues here. First, Commerce 2007 out of the box is setup for 10 Full Text Catalogs. This is not enough for us, but just bumping up the number allowed after the 10 are already created seems to have no effect. I do not get any more full text catalogs even though I am adding lots of new virtual catalogs to the server. I would like to know how to increase this and actually have it take effect. Second, we bul ...Show All
.NET Development How do I control Windows service application from external program?
Hello, I hav a task of creating Windows service which has some GUI for configuration data used by service. So I plan to have 2 projects in solution - Windows service itself and frontend manipulation program. How do I attach from within a program to Windows service and how do I call events inside Windows service to reread configuration file once changes are made Thanks, G I need to pass information to service like location of configuration file, CustomCommand will not be able to accomplish that becouse I can pass only integers, and I don't want to go through IPC or remoting stuff since it's so much complicates the project. Is there any other easy alternative, I really need just to tell service wher ...Show All
SQL Server Definition of DataSource in .INI File.
Hello : I created a report with as variable source of data (for several customers), that is every customer in waiter's (server) name different from the other one. The name of the base is defines in a .INI file in the server (AppliST.INI). How I can create a report with DataSource not defines in the report, but defines in a file text ( INI). Has ideas there . Thank you very much. ...Show All
Visual Studio Express Editions Mulitple columns in a combobox
Hi, I have a combobox to select IDs, but in the drop down I want it to show full names as well, eg: - JB John Blogs JS John Smith I can do this by apending the strings for ID and name with some spaces in between, but the alignment is rubbish using a true type font. I thought a tab might work, but that just shows as a control character, whether I use vbtab or controlchars.tab eg: - ComboBox1.Items.Add(uID, 2, 3) & ControlChars.Tab & uNAME) Help. If you want a simpler solution just use OwnerDraw to draw you combobox items with DrawString which does appear to process the tab correctly. Just set DrawMode to OwnerDrawFixed and add something like the following: Dim F As New ...Show All
Visual C++ Using C++/CLI to develop web apps
Is it possible to develop web applications using VC++ (C++/CLI) in Visual Studio 2005 Standard/Professional Editions I would guess that the answer is 'yes', but I would like to confirm. I checked out the Web Developer Express Edition, but it only includes VC#/VB. I am looking for a way to develop web apps using VC++ (C++/CLI). Thanks, Kumar Initially, it is going to be a fairly simple application: Sort of a calculator, where users would enter certain parameters and then click a button to get an answer. There may be a need for accessing a database. The second application will be a more complicated modeling/analysis engine where users would input quite a lot of information and run some complicated ...Show All
Visual Basic "like statement" to compare file directories
(broke hand, excuse the typing) i have a text file being read by our data management software that is written in vbscript. i have a set of "if thens" that determines what type of id each of our records recieves in the database. these work properly, but i need to add to it and narrow thing down based on a file path. if the file i am entering exists in a certain folder, or any subfolders, i need it to assigne an id based on that, and if not, then it would go on to the next elseif. below is what i have, and i know that the first two lines are written wrong (written in sql), but it might help to clarify what i am trying to accomplish. the rest of it i know works and is what i currently have running, i just need to add this one other option to ...Show All
SQL Server My XP Client doesn't access SQL Server 2000
Hi, I have a server (WIN 2000 server), is connected with many clients mostly having Win 2000 Professional OS. My application is developed in VB 6.0 and we have MS SQL Server 2000 DB in our server. All the clients with win 2000 professional have no problem with connecting and accessing my SQL Database. But few of my WIN XP clients don’t connect to database thru my application. It gives error as follows. Runtime error Login Failed for user ‘(null)’ . Reason: Not associated with a trusted SQL Connection. Can anyone help me Regards Ahmed Sahib Are your clients in the same domain as the server Are you sure that they are attempting to connect using SQL Authentication and not using Windows authenticat ...Show All
