Frank Uray's Q&A profile
Visual Studio 2008 (Pre-release) WCF Proxies different depending on binding
I'm not sure if this is the right forum for WCF questions/comments, but here goes one anyways... I created a "Hello [Name]!" WCF service and hosted it in IIS by defining creating a web.config as explained in the WCF Hands On! book by Craig McMurtry. The web.config file was originally using "basicHttpBinding" and I genereted a proxy for it which was quite simple to follow. Then I changed my client and the service (by changing web.config) to use "wsHttpBinding" (which encrypts the message) and it worked just fine (and it did encrypt the message). Once thing to notice here was that I was still using the proxy that was generated when the binding was basicHttpBinding. Next I added a new method to my service and regener ...Show All
Visual Basic Dynamic drawings in VB.Net
Hi, Is there any VB.Net equivalent to the vbXorPen and vbNotXorPen options of the DrawMode property in VB6 These options were very usefull to create dynamic drawings. Thanks by advance, Pierre Your drawing routine makes sense, you're just doing it in the wrong place. If you draw the contents of the array first in the PictureBox.Paint event handler, then do the blue elipse code, you'll get the elipse floating above your other drawing. To get a Graphics object for a bitmap, use: System.Drawing.Graphics.FromImage( myBitmap ) where myBitmap is an initialized bitmap variable (e.g. Dim myBitMap As New BitMap(48, 48)). ...Show All
Visual Basic Can anyone recreate this small bug?
New windows form Add a Menustrip and a couple of items Add a Toolstrip and a dropdown button with a couple of items Set the shortcut property of a menu item to CTRL + SHIFT + F9 Set the shortcut property of a different menu item to, e.g., CTRL + F9 Set the shortcut property of a toolstrip dropdownmenu item to CTRL + SHIFT + F9 Set the shortcut property of a different toolstrip dropdownmenu item to, e.g., CTRL + F9 Create two simple subs and have one handle both the C+S+F9 click events and the other handle the C+F9 click events Run the form. On my install, CTRL + F9 works, but C+S+F9 does not. However, if you remove the shortcut key from one of the menu items (so there is only one C+S+F9 shortcut on the form) t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Beta 2 sneak peak
The XNA guys did a demo of the beta 2 bits at Code Camp Seattle today. See my notes here http://www.thezbuffer.com/articles/424.aspx Please honour my request not to ask follow up questions here until the beta releases - I wrote everything that was public so its unlikely that anyone will be able to answer any of your questions until then. See also pictures of the demo code: http://www.thezbuffer.com/articles/426.aspx http://www.thezbuffer.com/articles/427.aspx Thanks for the sneak peak! There are some very interesting changes. I'm very excited to get my hands on the new stuff. Also shows how much the dev team was listening. Hats of to them!! -Jeff ...Show All
SQL Server Cannot open backup device 'F:\foldername'. Operating system error 5(Access is denied.).
SQL 2005 Enterprise Even if I logon as Administrator and try to backup any of my databases to local partitions, I get this error below. I have been operating fine up until this point and doing backups all the time. As far as I know, and after checking, no permissions have changed and of course Administrator has ntfs permissions to my local C and other partitions on this server: TITLE: Microsoft SQL Server Management Studio ------------------------------ Backup failed for Server 'servername'. (Microsoft.SqlServer.Smo) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&E ...Show All
SQL Server What is msmerge_contents90_forall.bcp?
Hi, I have merge replication running (sql2005) with 13 subscriptions. I use dynamic filters to reduce subscriber traffic. I have noticed that when I create a dynamic snapshot for a new subscription it is including a file called msmerge_contents90_forall.bcp. This file is approx 110Mb in size. What is this file How can I reduce the size of it I tried running the snapshot agent at the publishers but it still generates the same size file. Many thanks for your help. Graham This contains metadata rows for table MSmerge_contents. If you want to reduce the size of it, you'll have to run cleanup job/proc to clean up merge metadata. ...Show All
Visual FoxPro Can Foxpro list "Directory Names" or "Folder Names" to a table?
I am trying to produce a list of the sub directories contained within a folder in Windows. Can I Is there a foxpro command that allows this functionality to a table or array or something I am using Visual FoxPro 7.0 Thanks in advance. Richard Peterson here is my coding to list all folders... SET DEFAULT TO &PcHistpath LnCnt = Adir(Gcdir,"*.*","D",1) FOR lnCnt = 1 TO LnCnt IF "D" $ Gcdir[LnCnt,5] mHist = gcDir[LnCnt,1] next Hope can help .... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Capabilities Viewer
If you come from DirectX to XNA you may know the CapsViewer that is part of the SDK. As the XNA framework is based on DirectX the caps are valid for XNA too. Naturally the DirectX version uses the DirectX names for everything. As many things like the surface formats are renamed for the XNA framework it could be hard to use the DirectX Caps Viewer for XNA. Therefore I have written a small viewer which shows the capabilities of your graphics adapter(s) using XNA identifiers. Download I will provide the source later (needs a little cleanup first). ...Show All
.NET Development Which class I should use in communication?
Hello, I am a new user of this forum. I need some advice. In System.Net.Sockets namespace there are two class, NetworkStream and Socket Classes and in System.IO there is Stream class for using TCP/IP connection between server and clients. I have read their members, properties and events in MSDN, they are nearly the same but I wonder there are any advantages or disadvantages between them. For my program which class should I use I use TCP/IP and DNP (Distributed Network Protocol) for my application, some devices connected to LAN sends data to my application also my application can send commands to these devices. But I can not decide which class do I use. Thanks a lot! i'll be waiting for your email or post. So please do not forget to w ...Show All
Visual C# Problem with trendline in c# .net for exporting to a chart in excel
Hey everybody, I'm new to this forum and I have a question for a problem that took several hours of my nerves and I can't get trough the problem. I have a xlXYScatter Chart which I create in c# to export to excel table. All the data is importet correcrly and all charts are drawn correctly but when I try to create a Trendline in the chart it gives me allways the same error: " Trendlines method of series class failed ". I don't know what's wrong so if anybody could help me i would be very gradful. Tnx. the code is below: public void GenerateGraphArea2(Excel._Worksheet oWS, Int32 i) { Excel._Workbook oWB; Excel.Series oSeries; Excel.Range oResizeRangeBar; Excel._Chart oChart; Excel.Axis oAxis; ...Show All
Windows Forms Stop Cut/Copy in Text Box
In my application I have a text box to store & display password data. Now i want to stop cut or copy that data from that textbox. How can I stop cut/copy of data from that textbox You can use Label instead of TextBox and make it look like same as TextBox. To do this set AutoSize = false, BackColor = Window and TextAlign = MiddleCenter! You can neither copy nor cut! I hope this will solve your issue! Best Regards, ...Show All
Audio and Video Development Windows Media Player 11 Destroys ID3 Tag of Mp3 files (Caught Red-handed)
I have suspected this problem for a long time. But, have no proof until today. The bug in Windows Media Player 11 is that if you open a group of mp3 files and play it in "Now Playing", stop, don't close and don't touch WMP11 for 2 hours, you will find that all information in ID3 Tag of these mp3 files are destroyed. They becomes blank. At first, I have no proof. But, the problem have been replicated today. I caught it red-handed. WMP11 is a great improvement and a breakthrough right now. But, this kind of flaw is unacceptable. Someone on the development team should investigate this to solve this bug. Thanks. was the id3 tag bug ever fixed, i'm using the latest version as of today and it just happened to me...grrrr. All tag ...Show All
Visual Studio Expand/Collapse button is a (+) when it should be a (-)
I am working with a local report (RDLC) that displays some data in groups. I setup for the details of the group to have their visibility toggled. This works just fine if I set the initial visibility of the group to be invisible. But, if I sent the initial visibility to be VISIBLE, the toggle button still shows a (+), even though by default it is already expanded. So you click the (+) and the details disappear, the button turns to a (-), which is again the wrong icon, because now if the user wants to EXPAND the list, they have click a (-) icon, instead of a (+). As much i remember, visibility and Expand/Collapse button (+) has contrary values for the same meaning. If visibility ...Show All
Visual C# Fade background like WinXP
I would like to simulate WinXP shutdown's background fade to grayscale. How can I achieve this on my app's quit when I ask user "are you sure you would like to quit" else return to full color. Thanks for any ideas how 'bout trying and capturing entire screen to bitmap, drawing to fullscreen and then showing your form / message box above it ...Show All
Visual Studio 2008 (Pre-release) Cancel a long process Async call
Hello all, I have a method taggued in the contract as "IsOneWay=true". This method have a long process. I m currently develop an windows application. I want to may user can cancel his request. So i do this : ChannelFactory<IWSSignIn> iSignInFactory = null; IWSSignIn signInProxy = null; iSignInFactory = new ChannelFactory<IWSSignIn>("WSSignIn"); isignInProxy = iSignInFactory.CreateChannel(); iSignInFactory.GetData(); // IsOneWay method with a long process I think that i must use abort method as this : iSignInFactory.Abort(); This work but the channel goes to close state. There is another possiblity Thanks for your help Nicolas Ok for ab ...Show All
