maliger's Q&A profile
Visual Studio 2008 (Pre-release) How to measure control using particular template without applying it?
Hi all. I have control instance with some template applied. Then I need to measure this control with other template _without_ applying it. I need something like "predict" control's size with other template without changing current visual appearance of the control. Is it possible SerialSeb, Sorry for my messy explanations :) Now I dont have problems with contol copying anymore because I found the solution. All you need to measure control with alternate template is to save current template, then set a new one, and then measure control; after all you should set old template back. During this process the control doesnt change its visual appearance. So it's happened to be very simple. The code look ...Show All
Visual Studio 2008 (Pre-release) WCF - Sending orginal prepared message
Hi, I signed and encrypted message and saved it to database using wse. Later I want to send it to service. I load Message and want to send it with wxf client. SoapEnvelope envelope = new SoapEnvelope (); envelope.LoadXml("<en...."); System.ServiceModel.Channels. Message message = System.ServiceModel.Channels. Message .CreateMessage(envelope.GetDocumentReader(), 1000000, MessageVersion .Soap11WSAddressingAugust2004); Wcf client has one method Message ProcessAny(System.ServiceModel.Channels. Message request); The problem is that message has signature on fields action, to and others, but proxy removes old to field and adds new to field that is not signed. Because of this message fails on security ...Show All
SQL Server Need help to create this named set
I have a "Date" dimension with several attributes in it such as "Accound Period", "Calendar Year", "Completed Year"etc. I want to create a "named set" for some dataset to filter out the "Calendar Year" which has the value "Less than or equal to" the value of the attribute "Completed Year". The structure for the "Date" dimension is as follows: Calendar Year (attribute) Members Calendar Year------member Properties Completed Year (attribure) Members Completed Year------member Properties It has only a single value for the "Completed Year" and it was calculated in the data source view using "getdate() -2" ie. 2005 for the entire attribute. How to create a named set to filter out the Calendar Year with this Thanks ...Show All
Visual Studio Express Editions help, help me rhonda or anybody
axmediaplayer1.url = my.settings.song1 song 1 is bound to textbox1 textbox1.text = c:\windows\media\somefile.mp3 this works fine............question is how can I make it so the user only has to type in the name of the song to the textbox.....instead of the full path bearing in mind there are100 textboxes thanks cheyenne but it is not visible at all. Also I would recommend the you use the MS contol for WMP and not the axform of the control. if you go to TOOLs | Choose toolbox items and add the WMP control to your project, I think you will find this much better in the long run as ran as interfacing goes. Please remember that I am on Vista and not XP.... a well designed program ...Show All
SQL Server SQL: deleting duplicate entries (needed for primary key)
Hello, I need help on the follwing problem. I want to set a primary key (columns name, surname) for an existing table. The problem is that there are some (ca 300 of 40000) "wrong" entries: some name, surname combinations are used more than once. Therefore setting a primary key fails. I can remove all wrong entries by going through all of them and checking for each if there is another entrie using the same name and surname, but this is much to slow, because we're working very often with such corrupt datatables. So I tried the follwing SQL statement: DELETE * FROM tPerson AS tA WHERE ( SELECT COUNT(*) FROM tPerson AS tB WHERE tA.Name=tB.Name AND tA.Surname=tB.Surname ) <= 2 This is much faster. Sorrily, it not only deletes ...Show All
SQL Server Problem in accessing reporting services web service, unable to set credentials I guess....
I am trying to access the Reporting Services Web Service, but i m not able to make it work. i tried with default credentials and network credentials ReportingService service = new ReportingService (); service.Credentials = new System.Net. NetworkCredential ( "username" , "password" , "domain" ); service.CreateSubscription(report, extSettings, description, eventType, matchData, parameters); This is the exception i get The current action cannot be completed because the user data source credentials that are required to execute this report are not stored in the report server database. ---> The current action cannot be completed because the user data source credentials that are required to execute this report are not ...Show All
Visual Studio Threads names
Hello, i am developping a multi threaded app using Thread class. When ever i do Thread th = new Thread(); i do th.name = "blabla"; My qestion is why don't we see the thread name in the output window when the thread is exited instead of the ID. The thread 0x12e0 has exited with code 0 (0x0). Thats something we can see. Though, if i add a breakpoint on the line: th.name = "blabla"; and then do F10 once and then F5. When ever the thread is exited, i will see: The thread 'MyThreadName' (0xdb4) has exited with code 0 (0x0). Why is this Would there be a way to always see the threads names when they are exited, even if i am not currently debugging or breaking into the code. Thanks in advance! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What is base.Draw(gameTime); Used for?
Just as the question says, what exactly is gameTime It can be used for whatever your heart desires. You can use it to determine the FPS, limit how often a portion of your code updates or draws, display a countdown timer or running timer in general. You don't really do any setting for it. It's information being passed in to the function. So it's for accessing information about how much time has elapsed since the last Update/Draw and how much time has elapsed in the game. ...Show All
SQL Server To sum a field which already contains an aggregate function
Hi, I am using a "Previous" an aggregate function in Table Detail Section, i want to total that field at the end i.e in Table Footer. when i use "SUM" function, its says aggregate functions cannot be nested inside an aggregate function thanks in advance ...Show All
Windows Forms Floating Toolbars
I know it has been asked before, but it's been a while, so I figured I'd check again. Has anyone come up with a good way to get floating toolbars working I've got the 4 panels on the top, bottom, left, and right, but I'm having a real *** of a time trying to get the toolbars to actually float. Obviously, you have to add the ToolStrip to its own ToolStripPanel. But that is where it becomes really, really awful to code. The ToolStripPanel must be contained in the same form as the 4 base panels, or else you can't drag it from one to the other. So you can put the new panel in Controls of the main form. But if you do that, it runs the risk of running into other controls, so that doesn't work. If you put it in its own form, you can't drag it i ...Show All
Visual Basic what s the keyboard shortcut access key to close the search window
I open the search window using: Ctrl F How do I close it using keyboard pls as long as the find window is not docked you can dismiss the window by hitting escape in 03 or 05...if it is docked then you must use the menu short cuts to hide the find window.... alt...W....H ...Show All
.NET Development Adding shortcut key to TabControl
Hi guys, Greetings! How can I add shortcut key to TabControl Pages. Let say I have two tabs. Tab1 has the label Supplier then Tab2 has the label Product . I want to assigned shortcut key to Supplier Tab and Product Tab. Let say F2 and F3 or which is advisable... Please do aware that I uses Alt-key to other buttons inside each respective tab. Like &Save, &Cancel, &New etc... Thanks, Beast Forever I haven't done it before... but you could probebly implement the Form_KeyPress event Within the event check what key was pressed and then change the selectedindex based on the key. ...Show All
Connected Services Framework Identity Manager - Tools and Utilities
Hi, IDM Spy and SSOManage utilities was there in CSF 2.5 for Identity Mapping. I want to know about CSF 3.0, either same utilities are available or any any new utilities are included Rgs Vasu Hello, I'm trying tu configure mmc for idm but i cannot use it. When the console ask for authentication to service catalog service i can't go on. I tried with all users members of Requestors@sc group but it don't work. No error message is provided, just the consol ask again for logging on service catalog service. I even tried with domain administrator, but no success. Which account must i use Thanks, Fabio ...Show All
Windows Forms Change MenuStrip Color
Hi Guys, How can i change MenuStrip Colors I am using RenderMode property, but i need a diferente color... how can i do that Thx Hi, to change colors only, you can make a new class, deriving from ProfessionalColorTable class and overriding some or all of its properties: public class MyProfessionalColorTable : ProfessionalColorTable { public override Color MenuItemSelectedHighlight { get { return Color.FromArgb(-5475813); } } ... } ... then assign this color table through ProfessionalRenderer to ToolBarManager's Renderer property: ToolStripManager .Renderer = new ToolStripProfessionalRenderer ( new MyProfessionalColorTable ()); If you also want to change the way toolstrips or menustrips are ...Show All
Visual Studio Express Editions forum comparisation..
Hello, I'm sure I'm in the wrong forum with this thread, but that's only because I want some attention of you 'VB' people at the moment. I've been 'studying' the VC++ forum here, and I noticed that the average 'top poster' in that forum posts about 50 posts a month.. In this forum, I see 'top posters' with about 120 posts a month Now I'm not sure about this one, but aren't here some coders who also know some VC++ that could sometimes have a look at the VC++ forum to see if they can't help I'm asking this because I posted a question a couple of days before, and whereas I would have had about 10 reply's in this forum, I don't even have 1 in the VC++ forum.. This could be because it might be a difficult question, but it might ...Show All
