SuperNova298's Q&A profile
.NET Development get all form names.. and their tags please
I itterate through all the forms of my solution like so: Assembly asm = Assembly .GetExecutingAssembly(); ArrayList allForms = new ArrayList (); foreach ( Type t in asm.GetTypes()) { if (t.BaseType == typeof ( Form )) { allForms.Add(t.Name); } } Anyone have any idea how I would then get the Tag property for each of these Forms that are places in the allForms ArrayList Thanks. Yeshia wrote: Well maybe I should just tell you what Im trying to do, and maybe you can give me a better way of doing this. I am trying to implement a Group based security for our Forms in the Application. Right now I have a table that contains all the names of the Forms, matched ...Show All
.NET Development Web Services, Serialization and Interfaces
Hi, I'm writing a Web Service layer. I would like to use interfaces to pass data in and out, this will allow the server and client to have different implementations and allow for example the DBA to change the database structure and server implementation without the client apps needing to change their implementation, but.... XmlSerializer can't serialize interfaces... I don't want to have the same implementation on server and client, and using interfaces seems to be the "correct" way of doing this. Has anyone encountered a solution to this problem I understand the reasoning behind XmlSerializer not being able to do this, but I can't understand why it shouldn't! Any help would be greatly appreciated... Kev ...Show All
Visual Studio 2008 (Pre-release) is it possible to specify relative URI in xaml
hi guys. is it possible to specify relative URI in xaml. It's possible. To be sure that you're clear about what the URI is relative to, you might want to investigate Pack URIs. See: http://msdn2.microsoft.com/en-gb/library/aa970069.aspx Presumably you are asking this question because you want to link from XAML to a XAML page. If so, you can't really avoid the question of how it is that you are deploying your application and/or pages. That influences what's advisable or possible as far as relative paths between XAML pages. See http://msdn2.microsoft.com/en-gb/library/aa969776.aspx ...Show All
Visual Basic := Operator Help
This might seem kind of stupid, but what does the := operator do I would find it strange if there was a performance issue with named arguments. One could easily test this, but I think a good rule of thumb to use is to ask yourself "is this something the compiler can sort out ". If so, then there's unlikely to be a performance issue. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: C# to C++ converter, VB to C++ converter Instant Python: VB to Python converter ...Show All
Windows Forms Dialog Result problem
Dear All, I got a very simple problem where I pop-up a dialog. Then in the dialog I got 2 button so if I pressed submit and close and then I respectively set the DialogResult as DialogResult .OK and DialogResult .Ignore. So in my calling form I set 2 if statements. The problem here my form1 pop up twice which I suspect because of my in both my if and else has a form1.ShowDialog statement. So how can I avoid double pop-up. Thanks. frm1 form1 = new frm1 ( ); if (form1.ShowDialog() == DialogResult .OK) { form1.Dispose(); } else if (form1.ShowDialog() == DialogResult .Ignore) { form1.Dispose(); } Hi, just to merge both of the above replies into one, ...Show All
Visual C# Applying PrintDocument.DefaultPageSettings
I am using the following code to update the page settings of a PrintDocument: if (pageSetupDialog.ShowDialog() == DialogResult .OK) { printDocument.DefaultPageSettings = pageSetupDialog.PageSettings; printDocument.PrinterSettings = pageSetupDialog.PrinterSettings; } And am then using the following to print the PrintDocument: private void printDocument_PrintPage( object sender, System.Drawing.Printing. PrintPageEventArgs e) { e.Graphics.DrawString( "Sudoku Game Level = " + gameLevel.ToString(), new Font ( "Time New Roman" , 16), Brushes .Blue, new Point (50, 5)); e.Graphics.DrawImage(memoryImage, 50, 50); } I noticed that when I do this, it does not ta ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Translating The BasicEffect.World Property
I'm trying to create a simple pong game using XNA to work out all the parts, but it's not working properly. I've created an inner class called Ball to represent my ball and it has some static properties in it for the vertex buffer, the vertices that make up a ball, and the vertex declaration. I chose static so that multiple balls can share the common values. Anyway, my screen loads and my program doesn't hit any errors or exceptions, but I'm not seeing my ball appear anywhere on screen. Any ideas I've omitted the default code that I didn't change for space's sake. Edit: Sorry for the multiple posts. The forums told me it couldn't find the other one's so I didn't think it posted them. I deleted them (even though last I checked they ...Show All
Visual Studio Team System Editing WITs in an existing project
Hello, I've been reading posts in this forum and also reading MSDN articles about editing Work Item Types on existing projects. I understand how to download/upload existing types, but I'm confused about the actual editing. Here's what I want to do. I want to edit the existing Task Work Item Type and change the behavior of the State and Reason fields. What we want to do is allow for additional information via the Reason dropdown when a Task is in the "Active" State. Examles additions to the dropdown list would be "In Development", "Not Started" etc. Is this something that is normally done with typical WIT customiztaion or do I need to edit the process template to do this Thank you as always, Graham ...Show All
.NET Development Can you push files onto a server in c#?
I am trying to upload a file using the HttpWebRequest class and the put command but I must admit I am a little new at it so I am not even sure if I am going about this the right way or not here is some code that I have written to try and get the file up to the server try { HttpWebRequest uploadRequest = ( HttpWebRequest ) WebRequest .Create(uploadUri + @"/" + fileName); uploadRequest.Method = WebRequestMethods . Http .Put; requestStream = uploadRequest.GetRequestStream(); fileStream = File .Open(fileName, FileMode .Open); byte [] buffer = new byte [1024]; int bytesRead; while ( true ) { bytesRead = fileStream.Read(buffer, 0, buffer.Length); if (bytesRead == 0) { break ; } ...Show All
Windows Forms last ditch effort.... DatagridView Array to contain a group?
I've got rows moving about in a DataGridView from a dragdrop. These rows are grouped and need to be moved together when releasing the mouse keeping the group together. Each group needs to stay togerher without allowing rows to be moved outside of the grouping or outside of their individual groups. Not sure if this makes sense... put simply... I think I n eed an array to store each group that cannot be moved outside of it's group. SAMPLE ROW MOVING: <----------- THIS WORKS GREAT BUT MOVES ALL SELECTED ITEMS #Region " DRAG AND RE_ORDER dbGrid " Private dragBoxFromMouseDown As Rectangle Private rowIndexFromMouseDown As Integer &nbs ...Show All
Visual Studio 2008 (Pre-release) Color Picker
I'm looking to make a color picker like the one in Microsoft Design and Microsoft Blend. Any methods on how to do that Thanks! Check out Shawn's recent post about a WPF Color Picker . Also, a live.com search may have more interesting things... Thanks, Rob Relyea Program Manager, WPF Team http://rrelyea.spaces.live.com ...Show All
Windows Forms Send a mouse button click when the form doesnt have focus
I'm trying to click a button on a different program. I have successfully given the other program focus, and changed the cursor position, but I am trying to figure out how to send a mouse button click to actually click the button. I just wanna say it's a big SHAME microsoft developpers didn't think about fire an event to a specific Control. I can also use the Microsoft.WindowsCE.Forms.MessageWindow.SendMessage func to try to generate a click at the location of the button, but I'm repeating it ...Show All
Visual Studio Team System Is it possible to have data driven validation rule
I would like to run my datadriven webtest and validate on expected value in one of the fields and I want to add a validation rule that is also data driven. You can use the build-in validation rule "Form Field" if it applies. On the Add Validation Rule dialog, set the value of the "Expected Value" parameter to {{DataSourceName.DBTableName.TableColumnName}}, where the DataSourceName is the name of the data source to be used for validation, the DBTableName is the table name, and the TableColumnName is the column name. To write a custom validation rule for your test, please read http://msdn2.microsoft.com/en-us/library/ms182556(VS.80).aspx . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DreamBuildPlay - Any advantage to submitting early?
For the DreamBuildPlay contest, is it better for me to take every last minute until the submission deadline to tweak my game or is there some advantage to submitting earlier If you're done already, you could just let your finished one sit there and start on another entry. You still have a week and you can submit more than one entry. Better chances to win, especially if you don't think there's much to add to your current one. @Lima Beans - it's probably because nobody wants to give anyone else ideas. a couple of ideas here and there could make or break your game. Although I'm sure that afterwards, you'll probably be seeing a torrent of blogs/tutorials/walkthroughs in how people created their games. ...Show All
Windows Live Developer Forums scopingBar_separator undefined?
I'm getting a JS error: 'scopingBar_separator' is undefined ...when loading a map that adds a collection from local.live.com. Works in FireFox, but not in Internet Explorer. Was working and then stopped spontaneously, no code changes. Page can be viewed here: http://www.downtownwilmington.com/Nightlife I've tried it on a couple machines, emptied browser cache, etc... Any ideas Error appears in IE6 at line: var taskAreaHeight=document.body.clientHeight-(scopingBar_separator.offsetTop+scopingBar_separator.offsetHeight)-footer.offsetHeight; I've never seen this before, a quick look at your code doesn't reveal anything abnormal. I would start removing functionality to identify what line of your js code is causeing ...Show All
