bubberz's Q&A profile
Windows Live Developer Forums Does SetScaleBarDistanceUnit work?
I've been trying to get the new feature, SetScaleBarDistanceUnit to set the scale bar to kilometers, and haven't been able to get it to work. This may be due a misunderstanding by me so if you have an example where it works, I'd be grateful to see it! The trick is you have to make the call after your mapload. map = new VEMap('MapDiv'); map.LoadMap(new VELatLong(-27, 152), 5 ,'r' ,false); map.SetScaleBarDistanceUnit(VEDistanceUnit.Kilometers); John. ...Show All
Visual Studio 2008 (Pre-release) Secure communication between 2 machines using self-hosted WCF messages
I have looked at the various WCF security scenarios on http://msdn2.microsoft.com/en-us/library/ms730301.aspx We have a need to securely send messages between 2 Windows XP workstations using self-hosted WCF on both machines. Both machines will be offline (no access to AD and hence no access to Kerberos ticket) and connected to each other via a LAN. Is there a way to provide username password authentication with WCF message/transport confidentiality and integrity without the use of any certificates or SSL Does WSHttpBinding or NetTcpBinding support this out of the box Thanks Is there any way you could sent me or give me a link to a how to on this And do you know of any other methods o ...Show All
.NET Development CLR components cannot be added to a project using old Syntax c++
Hi, I am working on migrating a Visual C++ project into .NET environment. The project in its current state compiles and runs just fine with CLR support, and I can use clr components such as windows forms provided that I write the code myself, but Visual Studio does not let me add a Windows Form, using the Add New Item into the project, and it gives me the error "CLR components cannot be added to a project using old Syntax c++. Please convert the project to use the new syntax." Does anyone know what the problem might be Thank you. The VS2005 Windows Forms designer can only generate code in the C++/CLI syntax and no longer supports the Managed C++ syntax. You'll either need to convert y ...Show All
SQL Server Transaction question
I need to select items in Table1 whose column2 value is not 'Processed'. I use the following code to get this working. BEGIN TRAN INSERT INTO @Temp Select Column1 from Table1 WHERE Column2 <> 'Processed' UPDATE table1 SET Column2 = 'Processed' FROM table1 T1 JOIN @Temp Tmp on T1.Column1 = Tmp.Column1 SELECT Column1 FROM @Temp END TRAN Since the default transaction level is read commited, two queries to sproc returns identical results. If I change the transaction level to Repeatable read, this works fine, but the performance degrades. Is there any other alternative which is better than this approach Thanks Pravin As far as I know the TOP statement is supp ...Show All
SharePoint Products and Technologies setting the default page
Hello, I've read a post or two that says under site settings - look and feel - there should be a section for the welcome page. I do not see this. I logged onto two SS2007 sites, one of which i installed myself and made myself the admin so i should have access to everything and i dont see it on there either. I tried renaming default.aspx to default2.aspx and then renaming my page to default.aspx but that had no effect, it just bounces you to default2.aspx now. So how can i make another page the default welcome page thanks When you are logged in as an Administrator, click the "Site Actions" menu bar, select "Site Settings" and then click on "Modify All Site Settings". Under the ...Show All
Visual Studio Tools for Office How to program add-in for Outlook without VSTO?
I am an intern and currently I have access to VS 2003 and VS 2005 both standard edition, and i want to build an add-in for Microsoft Office 2003's Outlook. I don't think they will be buying VSTO 2005. I've browsed and searched on how to build an add-in but sadly most of it are hard to follow or are different because of the versions used. Can anyone point me to the right direction See the listings in the "Please Read First" message at the top of this forum. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=174275&SiteID=1 I recommend the office.developer.addins group, as well as a pure Outlook group. you'll find any number of developers conversant in the various types of COM Add-in ...Show All
Smart Device Development compact framework activex
hi i want to use windows activex on pocket pc or smartphones if it's not possible please help me and if it's possible ,please help me for helpful information thank you very much Here's how to host ActiveX control in NETCF application: http://msdn.microsoft.com/windowsmobile/reference/netcf/default.aspx pull=/library/en-us/dnnetcomp/html/host_activex_controls.asp Don't know if you can host Flash or not. Please contact Adobe and ask them if it’s technically and legally possible. ...Show All
SQL Server "Package Configurations" Problem
Hi all, I have just set up my first deployment utility for the Integration services package i've been building. I seem to be getting problems with the package Configurations. I added an XML config file so that i could change the values of my SQL connection manager at deployment time. This was so that i could deploy it on both a test environment and the live environment. Any other variables can be changed in code by the calling application. As soon as i added the options for the sql connection manager and enabled package configuration i got errors when running the application: [Execute SQL Task] Error: Failed to acquire connection "InternalProductionData Connection Manager". Connection may not be configured correctly or you may no ...Show All
Visual Studio VS 2005 Addins to right-click menu
Hello guys, I try to create VS2005 addin to Team Explorer right-click menu. The idea is: When you open Source Control Explorer, choose the project and right-click on it you'll get the menu. You can choose: <Get Latest Version> and etc from this menu. My purpose to add my own command (Ex: Custom Get) to this menu. Most of the topics I've found in Google are describe how to add command to main command bar - like Tools-><Your command>, but I haven't found anything about right click menu. Please help.... Thanks I have placed the addins in the right directory. I used filemon to confirm this. I click on Tools -> Addin Manager and I can see that devenv.exe opens/reads/closes the .addin files. But unfortunately, I still can ...Show All
Visual Studio 2008 (Pre-release) WPF "Bugs" or "Features"? + DirectX Interop Thoughts
Hi all, I'm hoping for a little advice from someone more knowledgeble than myself... I've bolded important bits for lazy readers, I'm not trying to be rude :) Basically, I'm building a logic simulator . I want it to feel modern, with a nice looking UI, but most importantly to provide a fun and intuitive editing experience through the main editing panel. I've been prototyping with WPF for obvious reasons. To help demonstrate, I decided to attach the current (very basic) prototype for anyone who wants to try it out. I'll also link to some screenshots I took which demonstrate the problems I'm having (for those busier readers!) The prototype currently only connects lines tog ...Show All
Visual Studio Team System ReviewVisibleEventHandlers conflicts with Framework Design Guidelines if there's a security demand
Hi, In Framework Design Guidelines, Section 5.4 Event Design (p. 135), it states: DO use a protected virtual method to raise each event. ... protected virtual void OnAlarmRaised(AlarmRaisedEventArgs e) { However, one of my implementations of the above has a linkdemand: [SecurityPermission (SecurityAction.LinkDemand, ControlAppDomain = true)] protected virtual void OnLoad (EventArgs e) { The linkdemand seems to trigger ReviewVisibleEventHandlers: "Warning 23 CA2109 : Microsoft.Security : Consider making OnUnload(EventArgs):Void not externally visible or ensure that it is benign code." If I remove the linkdemand, FxCop complains "OnLoad(Even ...Show All
Visual FoxPro Excel to cursor?
Hi guys, I am working with some data that is about 400 lines long, and I need to update it into MS SQL 2000 via Visual FoxPro. I need to know, is there a way I can take excel data and import it into a FoxPro cursor Thanks I don’t understand... What’s giving you trouble Dave M. ...Show All
Windows Forms What's the difference between Rich Text Boxes and Normal Text Boxes?
Hello, For those of you who don't know (like me), this is for you. What the hell is the difference between a rich text box and an ordinary text box This is for all of you who don't know the answer and SOMEBODY HELP!!! ok then, thanks, just a few more questions related to RTF boxes (mainly focusing on one language though), especially with formatting options. Apart from the font dialog in C#, how do you: Bold the words Italic the words Underline the words And also in C# how do you: Text Align Left Text Align Centre Text Align Right Colour the RTF Colour the font Bullet point the RTF Number the font Work URL font ...Show All
Windows Forms how to call value of one form to another form
Hi I am a new bie to c# i am designing a c# window application.i have a login form. so how can i access thin login name or login id in all other forms. as their is nothing called as session or cache in windows applicaton. please suggest a suitable solutions. Waiting for the reply Thanking you well to make life easier, if you are going to be reusing the value on various classes, I would suggest to use a static class and set/get values from here. public static class Session { private static int loginID = 0; public static int TheLoginID { get { loginID = value; } set { return loginID; } } } so now from your other classes, all you need to do is this: Sessio ...Show All
SQL Server Migration to Yukon
Hi, Anyone kindly let me know more and clear details about the below 2 statements 1.Remove reference to undocumented system tables/stored procs 2. Remove statements modifying system objects as are not supported in SQL Server 2005. while migrating from sql server 2000 to YUkon (sql server 2005) the above 2 points need to be taken care. but no much clarity on the above. kindly help me Regards Crish Hi, not sure above the first one, which procedure are deprecated but the latter one had some major chnages. The system objects are now in the sys schema,e.g. changing the sysobjects to sys.objects. if you used INFORMATION_SCHEMA views before you don’t need to change anything, because the view ...Show All
