Software Development Network Logo
  • Visual Basic
  • SharePoint Products
  • .NET Development
  • Game Technologies
  • Windows Forms
  • Smart Devicet
  • SQL Server
  • Microsoft ISV
  • Visual C#
  • Visual C++
  • Windows Vista
  • IE Development
  • Visual Studio
  • Audio and Video
  • Visual FoxPro

Software Development Network >> KitGreen's Q&A profile

KitGreen

Member List

Adrigo Gallus
XNA Rockstar
Mega_x
dror_y
DevDiver
Vítor
Mirricle
foobarX
MShetty
leclerc9
Michael McBryde
AndyL
Walker Boh
mognog
Richard Wilson
markand
learning_new
averge joe
brohans
Mazzica
Only Title

KitGreen's Q&A profile

  • Visual Studio 2008 (Pre-release) TreeViewItem IsSelected trigger style

    I'm trying to change the blue background / white foreground that occurs when a tree view item is selected. ie, the {DynamicResource {x:Static SystemColors.HighlightBrushKey} and {DynamicResource {x:Static SystemColors.HighlightTextBrushKey}} I'd like to have it so that when a treeviewitem is selected , it looks the same as if nothing has been selected. From the treeview template, I figure I can overwrite the IsSelected Trigger and the also the IsSelected MultiTrigger in a treeview style element. But it seems only the foreground can change. The background seems to stay blue. <Style.Triggers> <Trigger Property="IsSelected" Value="True" /> <Setter Property="Background" Value="White& ...Show All

  • Visual C# Please Help!!

    Hi All, I am new to C# and have been assigned to build a small application in C#. What I have to do is make a database connection and gather the list of available server-databases and then populate a checkedlist box with this list. Then I have to take a user input for a data object(which can be a stored proc or a view) and search for this user input in the list of stored procedures for the selected checkedlist box items (eg: if there is a server-db like datadev - base and the user input is sp_orders then I have to check for sp_orders in all the stored procs listed under datadev-base). when I am able to find the stored procs tht call the user input data object then I have to display them in a list box. So far I have been able to make a D ...Show All

  • .NET Development xsd.exe fails to create common data types out of nested schemas

    Hi, with the contract first approach we have some xsd schemas as the core interface definitions. We outsourced common data types (enumerations and some length limited string types) in a shared common.xsd file which in turn is <import> ed into the top level xsd schemas. We tried to generate .cs code files with xsd.exe in this scenario. But all the generated code files repeatingly contain the common data type definitions. This leads into several compiler errors. Using different namespace delcarations for each generated class does not solve the problem: The shared character of our common data types is completely lost after code generation with xsd.exe ! It seems to be a popular problem, because shared data types is a commonly u ...Show All

  • Windows Live Developer Forums push pins and background

    Hi, with the help of this forum I have managed to get pins to display on the map > Change the background when clicked to indicate it has been selected - then when clicked again the backgound is removed to inicate is is not selected. Now I want to load the page with all the pins initially selected So i do :- AddClickablePin(1,-0.459610397815704,51.6549480199814,"./bcirclesm.png","Name 1","A3"); then I set the background using :- document.getElementById(1).style.backgroundColor="yellow"; When dipalyed they all have the right background. The thing is that when i now click on them the backgorund does not change even though the test for colour seems to work. Has anyone el ...Show All

  • SQL Server Problem with UPDATE TOP

    The documentation of the UPDATE statement says that TOP(exp) is allowed, but when I try update top (1) mytable set status=3 I get Msg 156, Level 15, State 1, Line 1 Incorrect syntax near the keyword 'top'. I don't see the cause of the problem. You are sure right, thanks for correcting me. Seems that its time for me to go to bed in the middle of the night :-) -Jens. ...Show All

  • SQL Server how to create a partitioned table?

    Hi, How to create a partitioned table(not view) in enterprise manager and T-SQL Thanks, It sounds like you're talking about SQL2000. In SQL2000, the only way you can do it is to have multiple tables and a view which makes it look like a single one. In SQL2005, sure... the standard example is: CREATE PARTITION FUNCTION myRangePF1 (int) AS RANGE LEFT FOR VALUES (1, 100, 1000) ; GO CREATE PARTITION SCHEME myRangePS1 AS PARTITION myRangePF1 TO (test1fg, test2fg, test3fg, test4fg) ; GO CREATE TABLE PartitionTable (col1 int, col2 char(10)) ON myRangePS1 (col1) ; GO Hope this helps... Rob ...Show All

  • Visual Studio 2008 (Pre-release) Setting keyboard focus to fullscreen window

    Hi! I have a window that is most time hidden (I call Hide()). When I show it, I want to be in fullscreen mode, so I set WindowState = Maximized and TopMost = True. The problem is that the window doesn't get sometimes focus (the previously active application gets the keyboard messages). I tried to call Activate(), but it didn't resolved anything. Is there a certain way to set TopMost, Maximized, and to show a window in order to gain focus Thank you try setting topmost=true, maximized, and Show() in a delegate dispatcher.Invoke(dispatcherpriority.applicatidle, delegate...) ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Tile based movement jerky with fixed time step.

    Before I moved from MDX2.0 to XNA, my tile based movement using a finite state machine was smooth. Now that I'm using a fixed time step, my old method is jerky. I would like to redo my old method to work smoothly with the default fixed time step and am looking for ideas on how to accomplish this. The tile based movement I'm talking about is the same used in many old console rpg's (FF4/FF5/FF6) where the player moves a complete tile before accepting movement input again, yet still smoothly moves to it's destination (as opposed to jumping directly to each tile). Here's my old method converted to XNA. //--------------------------------------------------------------- Vector2 position = new Vector2(32, 32); Vector2 destination = position; ...Show All

  • SQL Server Microsoft OLE DB Provider for Visual FoxPro 9.0

    Im quite interested to see if any one is using Microsoft OLE DB Provider for Visual FoxPro 9.0 in an SSIS package. Is it possible to use this for free table directory like you can with the ODBC driver. thanks kindly My basic proccess is as follows: The source foxpro database has hundreds of dbf files ---the SSIS procress is as follows 1: Copy only required dbf files and/or matching .fpt files over to local drive on SSIS box(we only need 10 files) use MS Visual Foxpro ODBC driver (free table option) and set up a system DSN--dataflow tab---datareader source--and away you go Hi! Yes, you can use the free table option with the VFP OLE DB data provider. A typical connection string for ...Show All

  • Visual Studio Express Editions moving bitmaps on form

    I created a small app which displays a bitmap in the forms MouseMove event. What I need to know is how to repaint the form before every new bitmap is displayed, avoiding the "smearing effect of a zillion bitmaps. private void Form1_MouseMove( object sender, System.Windows.Forms. MouseEventArgs e) { int XPos = e.X - 8; int YPos = e.Y - 5; if (e.Button == MouseButtons .Left) { Bitmap dmap = new Bitmap ( @"C:\buttonUp.bmp" ); Graphics dd = this .CreateGraphics(); Rectangle rect = new Rectangle (XPos, YPos, 16, 10); dd.DrawImage(dmap, rect); dd.Dispose(); } } Try this.. Code Snippet public Form1() { InitializeCompo ...Show All

  • Visual Studio 2008 (Pre-release) Getting Started sample not getting service.exe

    Hi, Well, I have been trying to get this first sample "Getting Started" going for a very very long time, and so far, I've been pulling my hair out just trying to figure out what is going on. My question is, when i compile the "Getting Started sample" which is from WIndows SDK, it compiles fine, and I find client.exe but I can not find service.exe anywhere. Neither under Getting Started/service/bin folder which produces service.dll file and service.pdb nor under wwwroot/servicemodelsamples/bin directory. I got the console based sample going but I really want this IIS based samples to work as well. Any help would be greatly appreciated. Thanks. My opinion is that the samples should just build and run ...Show All

  • Windows Forms How do i bring my application to foreground

    I am facing problem when my application icon is clicked in the taskbar then it does not come into foreground as any other windows application does.Even though i have written code for window activate method.This is on c#. I'm having the same problem as above. My app listens out globally for a particular key press (Win+P) and is supposed to get focus / activate when the keys are pressed. This is my current code: if (this.WindowState == FormWindowState.Minimized) { this.WindowState = FormWindowState.Normal; } Activate(); When I press my keys I can see the app activating: it's taskbar item flashes and a text box inside of it gets a blinking cursor, but the the app will remain behind other windows and will not be focused. To make thi ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Games within a IE brower

    Not real sure if this is a new thread or not, but is it possible to create a game (actually more of a simulation) using the XNA game studio that would run in a browser window Does not necessarily have to actually run from a online web server, just be browser based. Thanks I recommend you avoid putting managed controls or add-ins into native apps that don't have some kind of explicit support built-in to manage versioning. Hosting managed code in a native app works great as long as yours is the only managed code in there -- but if many people do this, then things fall apart quickly. The main issue is that managed components from different providers will be updated independently of one another. A host application can only ha ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. FrameTransformMatrix in .x-file meshes is ignored

    Hello. I use XNA (beta2) and try to load a .x-file into the content pipeline . First everything seems to work fine, but I wondered about the aspect ratio of the shown objects. If I load the .x-file with the "DirectX Viewer" from the DirectX SDK the 3d objects are shown right. But when I load them with XNA the entries in " FrameTransformMatrix " seems to not being calculated. I use blender and its exporter to generate .x-files. Does anybody else noticed this problem Bestregards, MircoS Hi. @leclerc9: Thanks for that link. I guess I will take a look at your custom importer later. (btw.: nice and clean site) I took a closer look at the loaded model and its meshes. The correct TransformMat ...Show All

  • Visual Studio 2008 (Pre-release) Force Button Inside ContextMenu To Close ContextMenu

    Hello, I have a ContextMenu that contains a Button. When I click on the Button, the ContextMenu does not close. Is there a way to force this <Rectangle Fill="Blue" Height="50" Width="50"> <Rectangle.ContextMenu> <ContextMenu StaysOpen="False"> <ContextMenu.Items> <Button Content="Hi" /> </ContextMenu.Items> </ContextMenu> </Rectangle.ContextMenu> </Rectangle> Thanks, David You can subclass your button and override OnMouseLeftButtonUp class MyButton : Button { protected override void OnMouseLeftButtonUp( MouseButtonEventArgs e) { e.Handled = false ; } ...Show All

©2008 Software Development Network