Luis Simões's Q&A profile
Visual C# Hiding standalone Windows application on start up?
Hi, I have an application that runs locally on client machines which I want to start up automatically and then hide (ie add an icon to the task bar and allow to run in the background). However it does not do as I would like. I can: 1. Automatically start the application. 2. Add the icon to the task bar 3. Allow the user to click a button in the application which hides the application (ie removes it from the screen) 4. Allow the user to double click the icon and make the application become visible again, or be made invisible when visible. 5. Enable actions to be done by the application whilst it is invisible. 6. Allow the application to made visible and invisible automatically as a result of actions i ...Show All
Visual Studio Tools for Office Windows does not shutdown when outlook add in is installed. (NASTY)
I have developed a small outlook add in - which has gained a nasty reputation. When the add in is installed - and somebody tries to shut down the computer - the computer does not shut down, outlook remains open. If outlook is closed - then the system shuts down normally. I put in logs at the shutdown event handler - and noted - that it was called when i close outlook. The shutdown event handler is not called when i try to shut down the computer without closing outlook first. So the bottom line is when my outlook add in is installed - outlook does not want to shut down - and because outlook does not shut down - windows does not shut down. Any pointers Does this mean i am holding some resources Any event i can register with when the comp ...Show All
SQL Server getting data out of mysql using linked server
Good Morning the available oledb providers for mysql don't seem to work with sqlserver 2005. So whats the best way these days of exposing data from within sql server from a mysql data base. What I wanted to do was create a linked server connection to the mysql server using either oledb or odbc, but neither seem to work. There is a .net provider for mysql, but that won't work to create a linked server connection. any ideas appreciated. What I want to do is write some scheduled proceedual sql from within sql server to query some tables in mysql and update some sqlserver tables. thanks David Hills I used the ODBC driver for MySQL and then created a linked serve ...Show All
SQL Server question about like
Hello, i'm just wondering if i have for example a table with 2 colummns the first one is some primary key (int) and the other is of the image data type . For example one row would be: key data 232 0x7A5B6789D4E2...(thats just how sql server 2005 express shows me the data when i make a query insede Management Studio Express) now i'm wondering if it is possible to do query for lets say %89D4% with LIKE,(i kinda want to search for a certain pattern of bits or in this case hexadecimal values ) i've tryed but i get an error. I just want to know if it is possible to do this with like and how and if it isn't, what other options do i have (full-text search - ) i tryed the following sql statement: ...Show All
Visual Studio Team System Will it be possible to open a DB project created in CTP5 Refresh in CTP6?
All in the subject. Thanks Jamie Just a follow-up question: if I have a CTP5 project linked to Sourcesafe, is there anyway to reattach a CTP6 project I've tried the method of creating a new CTP6 project with the same name and then linking it to Sourcesafe but it creates a new project. Anyone had any luck ...Show All
Visual Studio Express Editions Interface Usage. Am I doing this right?
My project is to use an interface. So, I tried to follow the examples and get one to work. The book says that interfaces specify behavior without implementing it. That doesn't really explain much to me. If you could please look at what I've done and tell me if I am using the interface properly, I would really appreciate it. What I've done seems to work. But I don't understand why I would want to use an interface. It seems to me that it's some way to pass objects around and use methods easier But I am not sure since it seems I am repeating methods anyways. If you think it could be done in a better way, I would love to know how. But my main hope is that I am doing this correctly and could use some help with understanding how to use an ...Show All
Connected Services Framework How to Query RDF using SPARQL for required input value?
Hi, It would be great if anybody can provide us with some information about the SPARQL (Query language for RDF). I could able to get some information about this in http://www.w3.org/TR/rdf-sparql-query/ but when I tried to use same SELECT Query with the CSF Profile store we are getting the exception that "SELECT" keyword is not defined with CSF schema. I even tried to use the CONSTRUCT statement provided in the CHM file but when we tried to query with this we got lot number of records, In this regard how can we filter the queried records with a particular values that were passed as an input value. Regards, Ashish, Thanks for your answer, we need to query the multiple times for achieving all the conditions. ...Show All
Visual Studio Team System Permissions at the work item level
I am wondering if there is a way to restrict users to creating a particular type of work item. For example, I have a project group called Testers and I only want to allow them to create work items of the type "Bug". I can restrict their access to an Area called Bugs, but they can still create any work item in there they want, including Requirements, Change Requests, etc. Is it possible to allow them write access to only a certain type of work item Will Naren's suggestion be sufficient for your purposes If not, we could consider (in a future version) the ability to create an additional rule that could hide the work item type for particular users, and prevent them from creating work items of th ...Show All
Visual Studio Express Editions Newbie needing help
Okay lets put it this way Im a high schooler, and I makin a browser , but in my drop down menu's I dont know how to make one of the buttons access the aboutbox.vb so when they click on it they get the about box. Can anyone please assist me Add an about box to your solution - theres a standard form template for this. In you menu's on the appropriate option click event put in code to call the about from Dim About as new frmAbout About.Showdialog() This assumes that you about form you create is called frmAbout. An about form is just like any other form - nothing special about it - and there is a standard template to create one in VB Express. ...Show All
Windows Forms Application Settings of User Scope shared amongst assemblies?
VS 2005 final release. I have written a Class Library (dll) that is to be referenced by several other Windows Applications (exe's). This seems to be working well (I know - not a big wow) except that in my Class Library, I have several Settings of User Scope defined. The problem is that when I reference this Class Library in another Windows App and run the Windows App, the User scoped Application Settings from the Class Library end up getting persisted in a file that has the name of the Windows Application in it - in effect this will allow each windows application to store its own version of the dll's user settings. I could see how this may be good sometimes, but for this particular dll, I would like the user scope settings to be stor ...Show All
.NET Development Returninig a string from the Main method in a Console Application
Can I return a string value from the Main() method of a Console Application The scenario I am looking for is: 1. Program1 returns a string (say "hello") 2. Program2 must take this as input and process the job as required (say print "hello" twice). Is it possible for me to return a string instead of an integer or nothing using Main() method No it's not. What you can do is write the standard output stream from Program1 (e.g. using Console.WriteLine) and read from the standard input stream into Program2 (e.g. using Console.ReadLine). Then you can pipe text from Program1 to Program2 on the command line. e.g.: C:\> Program1.exe | Program2.exe ...Show All
Architecture Architecting aggregation of data
We have a group of very similar sql server databases running on our server. We are plannning to create an application which will need to get information from all these similar databases. What do you all think is the best way to go about doing it I am thinking about creating a realtime or periodically updated central database aggregating the info from all the others. How can I do this DTS Or create a data cache in memory A web application, web service and windows forms will be running off this database. Should be able to do a fast search. Is caching the database the only way to achieve this How about XML databases thanks a lot in advance. The best aggregation approach will depend on the data you are agg ...Show All
Visual Basic vb5 to vb2005 express
How can i convert my vb5 sources to vb2005 without vb6 Okay, I didn't know whether it'd open a VB5 project: that's the way to convert VB6 projects. Good top know it opened. However, you have probably a long, up-hill struggle with the converted project. Generally, the recommendation would be to keep an existing project in it's native development environment, unless it's fairly trivial. The upgrade process is a simple 'unintelligent' process, and it won't convert to the eqivalent new features in VB 2005 (e.g. file handling or graphics). You will need to go through the whole program to check almost every line for functionality - it may be easier to rewrite, while supporting the existing version, and trans ...Show All
Visual Studio Protected method of sealed classes appear in the Index
Try generating documentation for the following code: using System; u sing System.Collections.Generic; using System.Text; namespace SandCastleTest { public class BaseTest { protected virtual void Help() { } } public sealed class Test : BaseTest { protected override void Help() { } } } Generate documentation for it using the Sandcastle Aug CTP (HtmlHelp1x). If you'll look at the Contents-tab of the compiled help-file you'll notice that the Help-method is only shown as a method of the BaseTest-class. It correctly doesn't appear as a child of the Test-class as this class is sealed. If you then click on Test Class in the Contents-tab, you'll get a list of all the members of this class. ...Show All
SQL Server How create named set across dimensions...
If I want to create a named set for a set of "accounts" that limits the accounts to a subset based on two other dimensions, how do I do it I tried... CREATE SET [Accounts Created in Last 30 Days from NorthEast] AS { ([Accounts].[Account].Members, [Sales Region].&[NorthEast], [Date Account Created].[Is Last 30 Days].&[True] ) And it returned the right set of subset of accounts, but I ran into two problems: 1) in addition to the account column showing up in query results, it returned the [Sales Region] and [Date Account Created] columns, which in retrospect makes sense because the "dimensionality" of the set includes all three dimensions. and because of this, 2) when I try to use the set in Excel ...Show All
