Viesta's Q&A profile
Visual Studio 2008 (Pre-release) How to get the screen resolution in wpf
Hello everyone, I am developing an client/sever application using wpf and wcf, in which when i run the client application on different screen resolution, then the controls(i.e. the size) added in the xbap page changes. So i want to get the current screen resolution and make the size of controls unchangable.Can anyone help me out. hi shah, I have same problem. When i change screen resolution of system , my application controls size get increased . how can i solve this problem Hope for any reply. ...Show All
Visual Studio 2008 (Pre-release) CommandBinding Issue I cannot seem to resolve.
I have a custom command that I call from a menuitem in a context menu. I have the commandtarget set to and expander control but when I run the app the commandtarget is always null and the target defaults to the application window. Here is the pertinent code. If anyone has any idea what I am doing wrong I would appreciate some guidance before I pull out all of my hair. Thanks. The Header < Window x:Class = " Client.ClientWindow " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:commands = " clr-namespace:Client " > The binding < Window.CommandBindings > < Comm ...Show All
SQL Server Parsing one field into many
I am trying to parse a single field into many. A sample of the data in one of my fields is: 0;127.20;3;23.90;13.56;0;0;0;0 I would like to parse it into 9 fields. I am sure that this is easy, but, since I am new to SQL2005, I am having a few probs with this simple task. Any assistance will be greatly appreciated. Layne Layne: I considered the approach that you seem to be taking. What it looks to me like your are trying to do is to keep nesting until you get down to the 9th segment of your input string. What you experienced going from the first segment to the third segment was a good deal of increased complexity by the time you got nested three layers deep. The advantage that this nested approach has is that it does not ...Show All
Audio and Video Development Unkown Video Resource - .WMV supported?
I've got one more resource loading issue. The Validator complains on all my <PrimaryAudioVideoClip> elements. It also means that when I run the simulator I get a resource load error when I select to play any videos. My playlist worked in the first release, so I'm trying to figure out what I am doing incorrectly. Is it breaking because I'm using a wmv For example: | | | | | + <Title> | | | | | - <Title> | | | | | | | Using xml:base: file:///dvddisc/ADV_OBJ/ | | | | | | | Attribute: titleNumber="1" | | | | | | | Attribute: titleDuration="00:01:00:00" | | | | | | | Attribute: id="start" | | | | | | | Attribute: displayName="start" | | | | | | | Attribute: onEnd="start" ...Show All
Smart Device Development how to capture tv stream with closed captioning CC to an ASF?
Hello, For educational purposes I need to capture tv streams with closed captioning enabled! For the moment I am able to captre streams with captioning to any format (the easiest is ASF). However I can not capture with cc enabled. Can you provide the graphedit guidance in how to connect the overlay mixer to asf writer! appriciated your help. ferar This forum is smart device development related. Since your question is not related to smart device development, it's off topic here. If you’re having a hardware issue, please contact hardware manufacturer or reseller. If you having an issue with 3rd party software, please contact respective software manufacturer or reseller. Otherwise pleas ...Show All
Windows Live Developer Forums search list of addresses
is there any function that takes a list of addresses then returns a map contants all the addresses on it with push pins I do not believe the API currently allows you to submit an array of addresses as a search parameter. You'd need to write some manner of a proxying method that would Find() each individual address and then translate each of the VEFindResult objects into individual pins by lat/lon. ...Show All
Visual Studio How to dynamically change backcolor of control at design time?
I try to change the backcolor of a web control (ex:textbox) within the addin(programmatically)the changes exist in the property tool window of that control but it hasn't any reflect on the designer and the source code.moreover when I select source of page and then back to the design mode property toolwindow back to the previous state. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' If TypeOf objComponentContainer Is IDesignerHost Then objIDesignerHost = DirectCast (objComponentContainer, IDesignerHost) End If MessageBox.Show( "The site name is " & objIDesignerHost.RootComponent.Site.Name) Dim pg As Page = ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D VERY slow on the XBOX
Im having a hard problem getting good FPS rates on the XBOX, everything turns around and gets alot slower. Does anyone have a solution, or reason for this see this thread, maybe you made the same mistake. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1081909&SiteID=1 if not, post some code, so we can help you ...Show All
Visual Studio 2008 (Pre-release) How do I go about adding this kind behavior?
I need to provide some custom context around method calls on my service. By "custom context" I mean that I need to set something up before a method executes and destroy it when the method is done. This context is purely for the server has no ties to the message data at all. What type of WCF extensibility approach should I use for this I'm aware of behavior extensions, IExtensibleObject, IServiceBehavior, etc., but I'm having a problem figuring out exactly which approach to use to achieve these exact "before method/after method" notifications that I need. Thanks, Drew In case anyone's interested, I've also documented a way to add context beyond the lifetime of operation call and i ...Show All
Windows Forms DataGridView
Hi There, I created an application in which a Form has simple datagridview. DataGridView displays account information. --------------------------------------------------------------------------------------- AccountNo Name Address Amount ------------------------------------------------------------------------------------- 111111 ABC ABCD 5000.00 222222 DEF PPPP -200.00 Amount is refreshed every 5 seconds. What I want to do is......... if amount becomes less than zero then I want to set the background color of amount cell for that particular row to red and if it becomes greater than zero then make it green. Since amount chages every 5 seconds.......... background color ...Show All
Visual Studio 2008 (Pre-release) Reg: Querystrings in wpf
hi How can i pass the querystrings between xbap pages. thakx in advance Mahi duplicate thread of http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=755419&SiteID=1 ...Show All
Visual Studio Team System Compiler Warnings - Can I indicate I want the build to fail?
Is there a way to indicate that I wish the team build to fail if any compiler warnings are encountered I don't know of a way of doing it in Team Build, but you could set higher warning levels on your projects and have warnings treated as errors. Swaha ...Show All
Windows Forms 0x80070570 error code when copying files :(
Hi, i'm having some trouble with my hard drives. the short version of the story is that I foolishly tried to compress my two USB hard drives while they were filled with files. One hard drive succesfulyl completed, but the other 120Gig drive was interrupted by a power outage. So when i returned to windows, the hard drive kept causing explorer to stop responding and restart. Now i have managed to recover this drive by firstly using acronis disk director boot disk, where i copied all the files back over to the other hard drive, and then wiping the partition. i then used chkdsk, to correct the files record errors. but now, when i attempt to copy the files back across i get the 0x80070570 error code, saying the files or directory is corrupt ...Show All
Visual C# Returning Focus of a "lost" window
Hello, I am working on a project in which the application will only allow one instance of itself to be running at a time. I have figured this part out but the part that has be stumped is if the instance already running is "lost" (hidden behind another window or minimized or somehow off the screen) to bring it back to the front of the screen. I have tried focus and bringtofront options but those do not seam to work. Thanks for any advice on this. Hello, Have you tried this way: http://msdn2.microsoft.com/en-us/library/ms996475.aspx to force only one instance of the application Hope it helps. Thank you ...Show All
SQL Server Select All = no Result
hey there I have parameters in my report set up CallStatus = string Available Values are non-queried and values are listed in the value list closed, open, pending, select all If I choose each one separately I get a result - if I choose select all I get no result. This worked fine attaching to another datasource - I have now attached it to a new source. Tried altering the relationship to properties to a left outer join but this made no difference. Can someone tell me what else I should check thanks sorry guys as mentioned I am transferring all these reports to a new normalised database and missed a line as I said it worked fine and why it didn't transfer over properly I'm not ...Show All
