Llewellyn's Q&A profile
Windows Forms FontDialog and TrueType fonts
Hi, I have a question regarding the FontDialog .NET component. Basically I want to only list TrueType fonts that are available on the system, and to exclude other types of font from the list. I read somewhere that .NET only supports TrueType and OpenType fonts. Is this true If so, is there a way to determine whether a font is TrueType or OpenType Thanks, Richard Hardy. Yes I did realise that the extension was used for both, but I assumed that there might be some flag in the font information to tell one from the other. I thought that I had seen some code, previously in VB6 that could differentiate between ...Show All
Visual Studio 2008 (Pre-release) Image handling and painting framework
Hi! I know that Avalon renders its windows with DirectX, thus I assume that DirectX will be the preferred way paiting as well. Is that correct and what will be used for image handling (bitmap operations) in Avalon (as a replacement for GDI+) I'm not sure what type of bitmap operations you are wondering about, so I'll offer a more general answer. We use DirectX extensively under the covers. We draw bitmaps using DirectX, as everything else, which gives us hardware acceleration for transforms, rotations, stretches, clipping, and so on. None of that is explicitly exposed in the WinFX API, for two reasons. First, it's implementation ...Show All
Visual Basic Maximum number of warnings has been exceeded.
I'm using VS 2005, after VB6 to VB.NET conversion we have fixed all the errors but still have unidentified number of warnings. Is there any way to increase this limit of 101 warning you can see after compiling I want to actually see the total number of warnings to get an idea how much work is there. 100 items is fine, but sort them ALL by header click BEFORE adding to list. I work with warnings in the same context b.s. "Warning 106 Unused local variable: 'pr'." When I resolve them I can get the same "Warning 106 bla-bla-bla" lines from other sources. I need switch context (in b ...Show All
Visual Studio 2008 (Pre-release) Binding still dosen't see changes
In september ctp I was talking that binding dosen't see changes if elements it binds to dosen't exist yet.Bind ListView. ItemsSource = " {Binding XPath=something/*}" not working(ListView is still empty),if "something" does not contains a single element and you add it thereafter-XmlDataProvider.DeferRefresh()/ListView.Items.Refresh() dosen't help here too.The only solution now is explicit rebinding(not user friendly IMHO): lw.SetBinding( ListView .ItemsSourceProperty, lw.GetBindingExpression( ListView .ItemsSourceProperty).ParentBinding); where lw is the ListView. Do you have any plans to solve this issue Thanks a lot. ...Show All
SQL Server Copy Database with Microsoft.SqlServer.Management.Smo.Transfer breaks identity columns
I have a task to copy at runtime "etalon" database inside one same SQL 2005 server. Everythings ok except identity fields: identity breaks in new database. I use such code: Transfer xfr = new Transfer(db); xfr.CopyAllObjects = true; xfr.Options.WithDependencies = true; xfr.Options.ContinueScriptingOnError = true; xfr.Options.NoIdentities = false; xfr.Options.NoCollation = true; xfr.DestinationDatabase = "Clarina_N"; xfr.DestinationServer = srv.Name; xfr.DestinationLoginSecure = true; xfr.CopySchema = true; xfr.CopyAllUsers = true; xfr.TransferData(); when I try to create just script by xfr.ScriptTransfer() I see correct sql with IDENTITY. T ...Show All
.NET Development Request for the permission of type FileIOPermission failed
I have a ASMX Web Service that references a custom DLL we have created. The DLL has a function to read some settings from a XML file that we deploy along with the web service on the web server. When I run the solution on my local machine using the web server built into VS.Net 2005, everything works great. When I deploy it to our Web Server running IIS, I'm getting an error saying it doesn't have proper permissions to read the file. The entire exception message is below, but it looks like it's saying the assembly that caused the failure (my custom DLL - BusinessModel.DLL) is in the MyComputer zone. Shouldn't this mean that the assembly has ...Show All
Visual C# Process & WaitForExit & OutputDataReceived
. Rob, This is from a larger project so I've tried to cut and paste the relevant bits. This took ages of trial and error to get working. Hope you can make sense of it. Cheers Steve The process is started from a class that also has a Windows form (to show progress). The sendclip method starts the commandline process which returns as soon as the process is started - as then events take over. The show dialog displays the form and kind of forces a 'wait'. I use events to close the form when the process finishes and things carry on this.sendclip(clip, clip.Partialcommandline, Qsyst ...Show All
Software Development for Windows Vista Usings Custom Activities
Hi I created a WWF project that includes a custom activity and a test project that uses this activity. I added the custom activity to the ToolBox using "Tools-->Choose ToolBox Items-->Activities". I then dropped the activity from the ToolBox on my workflow. VS then added a refernce from my test project to the dll which contains the custom activity. Apparently, this forces VS to load the dll, and prevents my solution from compiling, because the dll cannot be built. Any ideas I tried the scenario and was able to successfully build the solution. Did you have any compi ...Show All
Windows Search Technologies Ho do I pass a query to a running instance of WDS ?
Could some1 please help. Thanks a lot in advance. I wanted to pass a query to a running instance of WDS (i dont want to launch a new UI window. my code snippet below starts a new UI which i dont want). And how do i pass parameters to a running instance private void button1_Click( object sender, EventArgs e) { // string fileName = @"C:\Program Files\MSN Toolbar Suite\DS\02.05.0001.1119\en-us\bin\WindowsSearch.exe"; // Get all processes running on the local computer. // Instead of we hardcoding the path that might change we let the user start the wds // then find the process by name and extract the path ...Show All
Windows Forms How to create a DropDownList/ContextMenu style window?
I need a popup window(no border) to input some text. But it should be something like the drop down list of a combobox which doesn't make the owner form inactive. Making it a child window does that but it will be clipped by the owner form, while drop down list won't be clipped. I've tried changing the CreateParams to use different set of flags, but not successful. And I've been googling the whole afternoon... I saw someone says not to make that popup window active by SW_SHOWNA, but if the window is not active, then it cannot receive keyboard input. Does anybody know how DropDownList/ContextMenu achieve that ...Show All
Visual Studio Team System Build scripts
Hi, all. After building and deploying a simple database with TSData, I made a few changes and built the update script. I wanted to take a look at the update script before deploying it but it I did not find any option to let me review it. Using Windows Explorer, I found the script at <Project Folder>\Sql\updateDB. Did I miss such a menu item If I didn't , wouldn't it be nice to have (even if just read-only) access to the create and update scripts in Solution Explorer Thanks, Brian Hi Brian, You didn't miss any menu item. I've forwarded your suggestion to the team responsible ...Show All
Windows Forms Visual Studio 2005 and .NET 2.0
This may be a stupid question BUT... If I create an windows forms application using Visual Studio 2005, does the environment that my application is deployed to have to have the .NET framework 2.0 installed on it I'm just trying to put this question to rest. Thanks, Paul Yes. This is why you have the option to deploy it with click-once and allow it to download the .NET 2.0 runtime. If you wont use runtime and deploy it as a single installer project then again you might have to instruct the installer to include the .NET 2.0 runtime. For more information check the deployment section in the documentation. ...Show All
Windows Forms best practice advice for secure socket comms ..
hi guys ... Im developing a Client-Server system which will be used through regular internet. My development environment would be VB.NET 2003 & 2005. I would be communicating using regular Sockets & TCP. The client would be running on Windows Pocket PC 2003/Mobile Edition PDA's & connecting to the server through GPRS. The server would be a running on regular Windows 2k or 2k3. I want to secure my communication from prying eyes & at the same time protect my server. All this should be cost effective including time spent on development. At the moment Im not sending Credit Card information on this - so that level of secure com ...Show All
Windows Forms TextBox
Hy every one i don't want to extend the text box control i need to know how to create it from scratch i mean like M.S Word it has the white background you write on and another thing the textbox control is only limited to 32kb of text . let's say that you are going to create a notepad application without the textbox  ...Show All
SQL Server problem with SQL-Server 2005 CTP
I have received visual studio 2005 beta experience kit. My kit included a version of MS SQL-Server 2005 Developer Edition CTP ( Developer Edition printed on the surface of my DVD but I don't know it's true or not because I saw this page: http://www.microsoft.com/sql/2005/productinfo/sql2005features.mspx and there was not Developer Edition). I had a new and fresh Windows 2003 (without SP1) installed on one of my office PCs. So I decided to install visual studio 2005 beta 2 first and then SQL-Server 2005 CTP. But after I installed SQL-Server 2005 CTP I saw nothing in my start menu even Express Manager. My question is : how can I ...Show All
