udooz's Q&A profile
Visual Basic Adding Fonts to Combo Box (VB 2005)
Hey guys, I'm pretty new at this so be gentle. I'm trying to find out how to add system fonts into a combo box. I'm using VB 2005. Thanks! The SelectedItem property returns an Object reference because the CDomboBox can contain pretty much anything. I'd guess that your issue is that you haven't cast it as a FontFamily object. The following code works for me. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Using fonts As New Drawing.Text.InstalledFontCollection Me.ComboBox1.DataSource = fonts.Families Me.ComboBox1.DisplayMember = "Name" End ...Show All
Visual Studio Express Editions How to toggle gripstyles, and make finding in a web browser.
ok, first off i've been having a heap of trouble with couple things in my web browser i'm building (for fun) Q1 ...DAMNIT!!!! don't worry bout first...it decided to work. Q2 how would i go about making a serch for the browser, in my text editor, it was as simple as textbox1.find, but the .find action is not nativley available to a browser. Q2: Const a As Char = Chr(6) wb.focus Application.DoEvents() System.Windows.Forms.SendKeys.Send(a) where wb is an instantiation of the webbrowser ...Show All
Visual C++ WH_KeyBoard in VC 8 .net 2
Hello, I've been wondering if it is possible to use the WH_KeyBoard hook in VC 8 .net 2 (examples would be highly appriciated). With Thanks, Gal Beniamini. There is an example on the MSDN: http://msdn.microsoft.com/library/default.asp url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/usinghooks.asp Thanks, Steve Teixeira Visual C++ ...Show All
Visual Studio 2008 (Pre-release) How to separate a complex Application?
I'd like to create a WPF-Application. In a more complex application the .xaml-files tends grew very fast, so I like to separate components of the application in different files. Is it possible to include or to refer another component (e.g. Win1.xaml + Win1.xaml.cs) It's not the problem to include a 'StackPanel' or a 'Grid' via the ResourceDictonary. But when the gird contains buttons with click-action it doesn't work. Thanks for your comments! Well - as i said previously you need to break each one out into a "UserControl" object - which is in a separate file. You can then fire even ...Show All
Visual Studio Express Editions prob using afxdisp.h /MFC use/ CLR support
I'm making a project on vc++ 2005, I want to plot graphs, so using MSChart evrything goes fine, till i come to point where I've to include afxdisp.h by defualt i'm using Project properties as.. use of MFC: standard windows library clr support: /clr:pure but i got this error Visual Studio 8\VC\atlmfc\include\afx.h(24) : fatal error C1189: #error : Building MFC application with /MD (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD so I changed project properties to : use of MFC = MFC shared but then i got series of errors WINVER not defined. Defaulting to 0x0502 (Windows Server 2003) E:\Visual Stu ...Show All
Windows Forms Save and restore Form position and DataGridView's configuration
My Application need to save and restore components when restart next time. Such as: - Change size and position of the form itself. - Change width, order of columns of DataGridView's columns. I want to save information configure into configuration file. Everybody have ideas, please show me way to do it or give some solution examples. I'm using VS.NET 2005, C# Thanks BeckKhiem. I think that all these replies are right. The right one to me is the dataset option and store the settin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating your own file formats?
I'm wondering how to create a file format, for say, meshes. I've looked around on the net but I have not found anything telling how. Anyone know of articles/tutorials The .x file should be enough in the beginning. Generally graphics formats are defined by the editor they come from and there is example code to read the big ones (maya and 3dsmax). Otherwise export as .x and then read into your program http://www.wotsit.org/search.asp s=game has a list of lots of them ...Show All
SQL Server SQL Server Management Studio Express - Import Data...?
Hi, I have Microsoft SQL Server Management Studio Express and do not see how I can enable the Import Data... feature which I have seen on the regular Microsoft SQL Server Management Studio version. Basically, if I right-click on a database, I'd like to use the Import Data... function which should be found in this menu under the Tasks... item. The Import Data... menu choice is visible just below the Generate Scripts... choice in Microsoft SQL Server Management Studio but not in Microsoft SQL Server Management Studio Express . Can anybody tell me if this feature is available in the express version. If not what are my options in order of ...Show All
Windows Forms Visual GDI+
I think I wrote something about a graphics wish before, but it was way more advance than this one. It will be nice if there was software or a part of Visual Studio.Net that acts like a graphics program were you can draw drawings and those drawing to be converted to code, and resource files. So instead of spending long time drawing some parts ...Show All
Windows Forms Bind an array to a datagrid
Hi, I have a fixed lenght record file that i need to read, split and load into a multidimensional array. I have different views of the data so I want to display them a) in a normal form and b) in a datagrid. Ist there a way to bind an array to a datagrid Are there any examples around Thanks a lot Alex SyncFusion has a  ...Show All
Visual Studio Team System Deleting TeamBuilds in the RTM
In the RTM of TFS will we be able to delete past team builds from within the IDE or are will still limited to using tfsbuild delete from the command line Thanks Thank YOU SO MUCH Ling! Works like a charm! One question though. I'm assuming that the build list must contain at least on listitem I tried importing a new global list for the build list and the schema doesn't allow an <GLOBALLIST> item with no <LISTITEM> defined. Also <LISTITEM value = ""> is not allowed either. Is this possible or by design Thanks again! ...Show All
Visual Studio Express Editions system hangs?
A search for related questions, etc. turns up nothing useful. Some time after installing MS VB 2005 Express Edition, my system started freezing up, requiring a cold boot every few minutes. So I uninstalled using the recommended tool. My system recovered 100%: no more freezing. Then I reinstalled. For now, things seem to go all right. My question, before it is too late to ask: how can I as a user _document_ these system hang-ups I checked the Event Logs, found nothing suspicious. Are there any monitoring tools Thanks in advance for your answer. stefaan dot meeuws at gmail dot com I am havin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Few beginner questions about shaders
Hi! I've just started learning MDX and have few questions: 1. I've done simple N dot L lighting shader, but i'm not sure how should i pass light parameters to the shader. Now i just create ColorValue and Vector4 (direction) objects and pass them to the shader (using effect.setValue). Should i create Light object instead, set its parameters and then pass them to the shader Are there any advantages of creating Light object instead of creating each parameter separately If yes, then how to pass i.e. light.Direction if it's Vector3 and it can't be passed to effect.setValue method. 2. Is the performance impact really high if i'm passing p ...Show All
SQL Server RSClientPrint problem
I'm trying to get client side printing to work in asp.net with reporting services 2005. I've got an aspx page to do printing as described here but when I try to render a report I get the following: 1. Print dialog box appears as expected 2. Press print 3. Dialog box appears saying "Print in progress" 4. After a few seconds another dialog box appears saying there was an error printing the report. Error code is 80004005. I get the same error if I try to preview instad of print. The (relevent) code is: < object id ="RSClientPrint" classid ="CLSID:FA91DF8D-53AB-455D-AB20-F2F023E498D3" c ...Show All
Visual C++ Microsoft howto does not work: How to call a managed DLL from native Visual C++ code in Visual Studio.NET or in Visual Studi
Hi! I have followed the step- by step instructions of this guide: http://support.microsoft.com/kb/828736/en-us This seems to be easy enugh, but i can not compile the c++ client. I only get the errormessage that "ICalculatorPtr" is unknown... Is the example broken or do i miss something Thank you! Harry Are you sure you have put this line on top using namespace ManagedDLL; Else you'd need to do ManagedDLL::ICalculatorPtr mharjes wrote: Hi! I have followed the step- by step instructions of this guide: http://support.microsoft.com/kb/828736/en-us This seems to be easy enugh, but i ca ...Show All
