Wiindows's Q&A profile
Windows Live Developer Forums Different pushpins for different services
Does virtual earh have a list of pushpins like google and all you have to do is reference the number for each pushpin or do you have to use your own icons and reference the image... eg 1 : Hospital 2 : Food etc.... Here are some funky rotating ones: http://www.feebleminds-gifs.com/animated-icons-2.html John. ...Show All
Visual Basic I can't run my program off visual basic
http://g-v.us/error.bmp Thats what I get. Maybe http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=194292&SiteID=1 can help you out Best regards, Johan Stenberg ...Show All
Visual Studio 2008 (Pre-release) Get the Selected item in w WrapPanel
How do I get the currently selected item or the index of the currently selected item in a wrappanel This seems like a logical thing to be trying to do. Shane you can use listbox and change the itemspanel this post has a sample http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=852701&SiteID=1 ...Show All
Visual Studio Team System How to specify Project generation from SDM model for a custom SDM type
Hi, I create new SDM component. Now I want to allow a VS project creation based on a custom template for my component. I can't find the way to define such behavior in the SDM model. The only way I have found is a creating Plug-In for a VS like it is done for a Generic Application and a WebApplication. Have I missed something Evgeny Popov You are right, that was my question. How does an inheritance work When I try to extend my custom SDM type from WebApplication, my type does not have the same behavior as WebApplication does. And an inherited settings do not appear on the diagram. I thought may be if my type is inherited from WebApplication type it supports a project generation and so on. ...Show All
.NET Development Updating Dataset
Hi, How do i update a dataset without filling it over with a dataAdaper I get the connection from a Module(So it works fine) :-) My Code : Forms Load Event : da.SelectCommand = cmd da.InsertCommand = cmd da.UpdateCommand = cmd da.DeleteCommand = cmd Button Click Event : cmd.CommandText = "SELECT * FROM tblClients" da.Fill(ds, "tblClients") cmd.CommandText = "INSERT INTO tblClients (ClientName,ClientPassword,ClientContact) VALUES ('Pete','PetePass','6313441')" da.Update(ds, "tblClients") MsgBox(ds.Tables("tblClients").Rows.Count) tblClients is emty from the beginning. The msgbox returns 0 (no update done to the ds) Aft ...Show All
Visual Basic Forms and Arrays
Hi, I was wondering if it's possible to do what I' am trying to do. Though I' m sure it is and I' am just not doing it correctly. Here's the code: Dim Whisper(strNick) As frmWhisper Whisper(strNick).Show() strNick is a string variable, which contains the nickname. I 'am trying to set this up as an array so you can control each whisper by the users nickname. Because the code that I tried did not work. ;\ Try something like this: Public Class frmWhisper Private mNickname As String Private Shared mLookup As New Dictionary(Of String, frmWhisper) Public Shared Function FindWhisper(ByVal nickname As String) As frmWhisper If mLookup.ContainsKey(nickname) Then Return mLookup.Item(nickname) Dim f As New frmWhisper(nickna ...Show All
Visual C# Printing problem
Hi there, I'm currently working on a small project for filling in some forms on the computer and then printing the data into the forms blank fields. Understood Good! ;-) Well, I had a hell of a time to align all fields to the right possition. I printed, adjusted, printed, adjusted... It works now - at least when I print from my computer. Copying the program to a friends machine, starting it, filling in the fields and then printing results in a total mess. Not one feeld as where it is, when I print from my computer. What the hell am I doing wrong Here my code: public void ChoosePrinterAndPrint( ) { PrintDocument doc = new PrintDocument (); PrintDialog pDialog = new PrintDialog (); doc.PrintPage += new PrintPageEve ...Show All
SQL Server Dropdown won't show values if only one item is available
I have a report that has 2 dropdowns, selecting from the first dropdown populates the second one. This works fine in the BI Studio. When I deploy this report to the 'Report Manager' and make a selection from the first dropdown, the second dropdown loads (as expected). I tried to select from the second dropdown (which has only 1 item - which is correct), the dropdown does not appear correctly - as in, I can't see that item. Since we can't attach anything here, below is the link to a screenshot of my issue: http://docs.google.com/View docid=ddd6j2xn_52c5qd5 If you look closely at the screenshot from the link above, you'll see that there is a value in the second dropdown - it just won't show completely - as if the dropdown is not re ...Show All
Visual Basic Has anyone gotten Menu Merging to work in VB 2005
I've read a number of posts on this forum and it seems to me that Microsoft has a lot of work to do with the Menu Merging in VB 2005. The documentation is quite vague almost as though it's unfinished. Has anyone been able to successfully merge MDI child and parent menus without showing two menus Do you have a step-by-step walkthough of your example including the MergeAction and MergeIndex properties Please post it so that we can have a better understand of this 'new and improved' feature in VB 2005 Agree about the worthlessness of the documentation. After a day of playing with this and looking at other forums, however, I think I have this figured out. This comes from another forum that I have now lost tra ...Show All
Windows Forms IsMdiContainer
Is it possible to define the size of the MdiContainer Sorry the bad english. Thank you. My guess is that MdiParent is actually Null which may mean that you haven't set it In your child form make sure that you set the form's MdiParent to be the actual MdiContainer Form. Otherwise, the child form won't really be an MdiChild at all and the MdiParent property will be Null. ...Show All
Visual Studio Team System Disable multiple checkout
We are experiencing some problems with multiple checkout. I want the exclusive lock behaviour, so I unchecked "Team->Team Project Settings->Source Control->Enable multiple checkout". Unfortunately we still have one class diagram file that seems to work in multiple checkout mode. I do some changes, my coworker can do them in the same time and when we check in we get conflicts. Any hints on why this happens Is it possible you or your coworker already had the file checked out prior to changing the Team Project setting When you check out the class diagram, does the pending changes window show the pending change as "edit,lock" or just "edit" Thanks, Ben Ryan ...Show All
Visual Studio Tools for Office Excel.Range and Array
I have this code and I get one record returned to where it is supposed to go and I know for a fact this dataset it to return 4 rows. Can some one help me out and show me how I can loop through the array and get all the results Thanks! Stokh int rowCount = dt.Rows.Count; int columnCount = dt.Columns.Count; Excel. Range range1 = this .Range[ "A37" , "M37" ]; object [,] array = new object [rowCount, columnCount]; for ( int i = 0; i < rowCount; i++) { for ( int j = 0; j < columnCount; j++) { array[i, j] = dt.Rows .ItemArray[j]; } range1.Value2 = array; } Oops Sorry Cindy! Thanks I pretty much got it with ds = new clientreportingDataSe ...Show All
Visual Studio Team System ...uses unapproved generic type System.Collections.Generic.Dictionary`2
Please forgive me if this has been answered elsewhere, I was not able to find it anywhere. I'm using a System.Collections.Generic.Dictionary<> object in my code and FxCop is complaining, saying it should be replaced "with an approved type to avoid unnecessary JIT compilation for NGEN'ed assemblies." The help link in the rule ( http://fxcop/docs/rules.aspx version=v1.35&url=/MSInternal/UseApprovedGenericsForPrecompiledAssemblies.html ) does not give any info. What is the problem with using this generic collection, and what is the resolution ...Show All
Visual Studio Team System VS Team Foundation Server on Small Business Server
Hi, I have VS Team System and Small Business Server 2003 but cannot get things installed. When I try to install the server I get an error saying I need a service pack on my OS, but when I go to Microsoft Update for Small Business Server I am 100% up to date. What gives Thanks in advance. Daryn You can do a two-server install, yes. Whether either the AT or DT install will work on SBS I can't say. I'm fairly certain it's not a supported configuration - but I don't have any SBS servers, so it's not something I've ever tried. ...Show All
Visual C# Raising events from one thread to other
Hello, I am new in C# and would appreciate any information on standard ways to raise events from worker thread (System.Threading.Thread) to the main UI thread, where the main form is created and lives. Here I interested in the events only (as they usually used within the thread scope), not Control.Invoke()/BeginInvoke(), not BackgroundWorker class, as they are more or less learnt and OK. By default, raised events go to the same thread, is it the only behavior If not, how I should redirect them into UI thread's message loop Thank you in advance. The answer is you can't do so. You have to live with checking the property in Event Handler in the main thread "this.InvokeRequired" if yes the ...Show All
