thehellspawn's Q&A profile
.NET Development Manipulating SortedArray class that allows entry of same key multiple times.
Hi, I need to manipulate the 'SortedArray' class in .net so that it allows the entry of the same key more than once. At the same time, it should have all the other properties and methods as it had before. This is crucial to my project. I am totally unfamiliar with overriding the base classes to produce this kind of desired functionality. Could you spare some of your precious time to help me out with the problem Please illustrate your answer. -Sreerag SortedList (I assume that is what you mean by a sorted array) is a v1.1 structure and should probably not be used in v2.0 because it is not type-safe. Fortunately it is pretty easy to implement a sorted set (a dictionary that allows multipl ...Show All
Gadgets Gadget permissions?
I've been trying to find any information on the <permissions> element for gadget development and I can't seem to find anything. What are the other options aside from "full". What I'm looking for is a way to: lock down a gadget to the desktop and force it to the background (much like the old ActiveDesktop) change permissions or settings so that a standard lab user cannot modify, close, move, etc. the gadget make the gadget center screen regardless of resolution standard lab resolution is 1024x768 but there are a few machines out there with 1280x1024. so if I make a standard gadget at 1024x768 I want it to be centered so that it appears full screen on the same resolution but centered on a larger resolution. Anyone have any ...Show All
Visual Studio 2008 (Pre-release) Links in WSDL from WCF service contains local machinename
I am hosting a WCF Service in IIS (on Windows Server 2003). I have no problem making a WCF client and connecting to it. However, I want also to make a client that calls the service via a web service reference. But this does not work because in the WSDL which I access at http://191.139.96.94/MyVirtualDir/MyService.svc wsdl (ip made up) all links like this one <wsdl:import namespace="mynamespace" location="http://machinename/MyVirtualDir/MyService.svc wsdl=wsdl0"/> does not contain the IP but the the local machinename and since I am not on the same domain as the service the links cannot be resolved. How do I prevent this from happening This question has been asked before; appare ...Show All
Visual Studio Express Editions text box to end of URL and open in new window
I have a text box that I would like to have the user enter a stock symbol, click a botton and get the stock quote. I think the best way to do this to have what they typed pasted at the end of http://moneycentral.msn.com/detail/stock_quote Symbol = then open in a new window. It would be better if I could getthe quote displayed on in the program, but I'm sure that's far to complicated for me. I'm just starting here, (obviously), so any help would be appreciated greatly. Put a WebBrowser control on the form. In the button's Click event handler, call WebBrowser1.Navigate("http://..." + TextBox1.Text). ...Show All
Smart Device Development Any parameters does quickapp.exe have?
Hey, I tried to get the quicklist in my program by quickapp.exe,and then select a certain option. When I execute quickapp.exe with the API of ShellExceuteEx, it only can got the quicklist. So is there any parameters exits to make it go further I mean I can select a certain option in quicklist If not, how can I do that Thanks! Alex Feinman wrote: You can try finding its window and then finding a listview control among its children and sending LVM_SETITEMSTATE message to select it That seems a good idea.I have tried to select that options by simulating keypressing with keybd_event(),though it seems work well,I think your is better! Thank you! ...Show All
Visual C# Create CSV file with styles
Hi, How can I create CSV file with styles Thank's Alexei Hi Alexei, A CSV file is a "comma separated values" file. According to me, CSV files don't contain formatting. So it is not possible to have a CSV file with formatting in it. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
Visual Studio Express Editions Regular Expression output to textbox
Hi - I am extremely new to programming so I apologize in advance for my lack of knowlege, vocabulary and if my code is sloppy. I will take any suggestions to clean up my code and to follow any best pratices that I missed. I am taking a stab at writing a program through Visual Basic 2005 Express Edition that will (don't laugh...) keep track, search through and find new friends with specific interests on myspace. The functionality of myspace is quite a let down so I thought I would try to create a program to fill my need. I am stuck at the moment on trying to do a httpWebRequest and regex to give me an output into a textbox of friend IDs. The HttpWebRequest part seems to be fine and the regular expression should be fine accorind to Expresso ...Show All
Visual Studio Tools for Office Opening OutLook problem
Dear All, I'm trying to open outlook 2003 via my application in C# in VS2005. I just copied the sample from this link http://support.microsoft.com/default.aspx id=819398 and tried to run the application but I got following exception in this line: //Automate the Outlook mail item. Outlook. MailItemClass mItem = (Outlook. MailItemClass )doc.MailEnvelope.Item; Additional information: Unable to cast COM object of type 'System.__ComObject' to class type 'Microsoft.Office.Interop.Outlook.MailItemClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ComObject type. Instances of this type cannot be cast to any other class; however ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where does Console.WriteLine() go to on 360?
Probably a setup problem, but I can't seem to get any text sent to Console.WriteLine() to appear in the output window in GSE, when running the app on my 360. Anyone else managed to get this working Andy. Use Trace instead of Debug. System.Diagnostics. Trace .WriteLine("This works the same on both Xbox 360 and Windows."); Output goes to the Output Window when you're debugging, and it is not configuration-dependent. You may want to remove these after debugging, as they may have some perf impact on the Xbox 360 (especially if you're generating a bunch of output per frame). --Stephen [edit: This is what happens when you are distracted in the middle of writing -- leaf already a ...Show All
Visual Studio Lost functionality: run quick-watch without a debug session
I miss so much the ability that VS 6.0 had to run the Quick Watch window without having to start a debug session. I used it when I wanted to test an expression or simply as a programming calculator. Now I can't do that in VS 2005 (VC++) and I'm wondering why that functionality was lost. (Or is it Maybe it works differently now ) Kamen Hello Edward, Thank you for responding. I did try the immediate window and got the following message: "The expression cannot be evaluated while in design mode." I guess it's more of the same Kamen P.S. Let me stress again that I am using VC++ (Pro), not C# or VB. K. ...Show All
Windows Forms Determine if List is displayed for ComboBox
I have a situtation where I need to not let the mouse roller change a value in a drop down list. I was able to accomplish this by trapping the 'MouseRoller' event and canceling it for a ComboBox. However, now my users want the mouse roller to be enabled if the list is displayed for a ComboBox so they can scroll through the items. So I was wondering if there is a way to know if the list is being displayed for a ComboBox editor I am hoping to use it in the 'MouseRoller' event and not cancel the event if the list is in fact being displayed. Thanks in advance. Thanks for the reply...Yes, logically that is what I am looking for, but there is no such property 'droppedown' for combo that can give me what I am loo ...Show All
Windows Forms Load data after show the form
Hello all I am working in a big windows forms project and we are getting troubles with the load times of some objects. In some situations, the view going to background to appear again when the data is already loaded. My question is: Is there any way to give priority to the paint method of the view and then begin the load process Is it a design problem of our system Thanks in advance to all. Cheers Hi. I have a windows application with a similar problem. The application contains many tabs with many controls that are bind to a DataSource. what I've done to minimaize the long loading is to load controls and data only when needed. When the user opens a selected entity, it loads only the first tab ...Show All
SQL Server Unattended (Silent) install SQL Server Express how do I specify a the built in system account???
When doing a unattended install of Microsoft SQL Server Express, I have a problem specifing the service to installed to be run under the as local system account. I'm using: SQLACCOUNT & SQLPASSWORD parameters but it just won't work. As default SQL Server is installed using the NETWORK SERVICE account, this causes the database to be read-only. What I want is to specifiy in the script that the service should run under the LOCAL SYSTEM account instead. This must also be OS-language independent. I've tried: SQLACCOUNT=NT AUTHORITY\SYSTEM SQLACCOUNT=NT AUTHORITY\LOCAL SYSTEM SQLACCOUNT=NT AUTHORITY\LOCAL SERVICE SQLACCOUNT=SYSTEM SQLACCOUNT=BUILT-IN\SYSTEM etc. and even some different SID as: S-1-5-18 S-1-5-19 All with no password with ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Utter newbie wanting to run code
I've written the basic "first app" as per the instructions given. I'm trying to get it to run but for the life of me I can't find the way to build and run it. The only option available is to build it, which doesn't actually run it. I've tried to publish it but it presents me with an error when I set it up. How do I actually run the app Also: Can you import a ".x" mesh with textures Is there the facility to use a "virtual camera" as a point of view Any help appreciated thx! [moved to GSE forum] The way to run it is either Debug/Start debugging, press f5 or press the 'play' button on the tool bar (little green triangle). Now I think about it not having the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using XNA Game Studio Express to develop solitaire game
I am an experienced developer but a newcomer when it comes to developing games. I recently downloaded XNA Game Studio Express and have been studying the space war game. I am developing a solitaire-type card game where the player can drag and drop cards from one pile to another. I have much of the domain logic written, and now I am tackling the user interface. Most of the XNA tutorials I have seen use arcade-type games for their examples, and I have not seen any that use a solitaire-type card game. This brings up several questions: 1) Is the XNA framework suitable for developing a solitaire-type card game 2) Does any know of any XNA tutorials that use a solitaire-type card game (preferably with draggin ...Show All
