XNA Rockstar's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. C# + Direct3D -> DrawEllipse / FillEllipse ?
Hi! I have a simple application written in C# VS 2005 that uses Direct3D to draw simple lines. Now I need a function like GDI+ has, DrawEllipse or better for me: FillEllipse. I'm using it for a 2D application actually, so for the lines for example I simply used the Line object of Direct3D. A code or direction would be nice of you. Thank! I really gotta take some math lessons hehe I think I understood the idea thank you, and BTW you could show this to me in any language you want (C++/VB...) I know them all anyway. Thanks ! ...Show All
Visual Basic Iterating through a given component type in a VB form
Hello all, I am looking for a way to iterate through a given component type in a VB form. For example, if I want to go through all the buttons found in a given form and change their text to "XYZ", is there perhaps a "For Each" technique to do that The alternative is an ugly hardcoding of the button names, in the above example, and changing their text one by one ... not what I want. Cheers all. N. Farr The above works great if all the controls are on a form, but I have a bit of an issue, I have a number of controls in a number of different groups in containers. Is there a way to iterate through all controls wether inside another container or not withough having to have a butt l ...Show All
Visual Studio Express Editions Tabbled browsing
I am making my own internet browser but how can i add the option of tabs in my application. Such as in internet axplorer 7 and how can i delete my browsing history. Let me introduce myself first, my name is Simon North and I am the head of Simnor Computing. I have wrote many application one of which is a tabbed web browser based on Internet Explorer. I created the tab interface by simply adding a tab control on the main form and created a user control which included the menu bar, toolbar, web browser control etc. When the user clicked the 'new tab' button, a new tab would open and the user control would dock (fill) the tabpage. If you want any more information please ask. ...Show All
Visual Studio 2008 (Pre-release) What are the latest bits extensions?
I wanted to know which are the latest bits to make WPF; WF, and WCF applications with vs 2005. I download WF extensions, they seem to be rtm, I also downloaded WPF extensions, but they dont seem to be rtm it seems to be a november ctp. Thanks Yes, the SDK is needed in order to install the VS Extensions. The latest SDK is the Final RTM version: http://www.microsoft.com/downloads/info.aspx na=40&p=3&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=10cc340b-f857-4a14-83f5-25634c3bf043 Regarding interactive designer, this product has now been renamed to "Expression Blend" and there is a Beta 1 release with a 180 day trial available: http://www.microsoft.com/downloads/details.aspx FamilyID=EE6 ...Show All
Windows Forms tablelayoutpanel flicker / performance
We are finding that the tablelayoutpanel control is causing a lot of flicker, especially flicker when resizing. We have an windows forms architecture based on user controls and tablelayoutpanels (we use the CAB). Our major flicker issues happen on our detail UI elements, such as a single row data maintenance user control of the pattern: Page Title Label A: TextBoxA Label B: TextBoxB Save Button / Cancel Button These control are organised in a tablelayoutpanel with 2 columns (one for the labels and one for the textboxes) and the desired amount of rows (one for the Page Title, a spacer row, one for row A, one for row B, a spacer row, a row for Save and Cancel buttons). The 1st column is AutoSize and the 2nd column is set to a Size Ty ...Show All
Visual Studio Tools for Office Integrating Active Directory & Excel
Is there any way to integrate active directory with excel workbooks I want certain areas in my excel workbook restricted or totally unavailable based on a users' windows authenticated login. Would've been awesome if Excel had something analogous to website admisnitration in ASP.NET websites. Cool link . Thanks! @Cindy. I should have been more elaborate in my question. I meant that in VSTO the only proabable solution would be to enter a userid and password which would be database verified. I'll look up the excel programming group. Thanks. ...Show All
Visual Basic get the text under mouse pointer?
howto get the text under the mouse pointer from the other application into the .net winform. "from the other application" is the killer requirement here. You'll need to P/Invoke some Windows API functions: - Capture the mouse so you can click on a window outside the form - WindowFromPoint to find the window handle - SendMessage WM_GETTEXT to retrieve the text Copy and Paste through the clipboard sounds a lot easier... ...Show All
Visual Basic Does COMs dead in VS2005?
When i update my project from VS2003,All of the forms that contains COM does't work... Or ned to register You would still need to register COM components for them to work. You can do this using Regsvr32.exe ...Show All
Software Development for Windows Vista Using LUA/UAP in custom applicatons
Hi, The December CTP of Vista has a modified version of UAP/LUA. There's a shield icon (windows colors) next to any setting that requires aleveated status (brings up the verification dialog instead of an earlier dialog that asked for admin password). Also, for other tasks such as opening a file, modifying registry, modifying the drive, etc the dialog pops up asking the user to verify the action. The question being, if I have several settings in my application that I'd like to be either Admin specfic or just out of concern I don't want the user to click on that unknowingly (i.e. might pose a danger to the system/security, etc). What should I be doing are there APIs in the platform SDK/Windows SDK for Vista that allow me to b ...Show All
SharePoint Products and Technologies documents extraction
Can someone please tell me how to extract documents out of Sharepoint 2007 using the Object model I am really finding it hard to get any help on this topic! thanks for any help Hi, Try this SPList lst; //Put the code here in order to get access to the list that contains the attachment SPListItemCollection itemcol = lst.Items; foreach (SPListItem lstitem in itemcol) { SPAttachmentCollection atchcol = lstitem.Attachments; string attachmentURL = lstitem.Attachments.UrlPrefix; string documentURL = attachmentURL + atchcol[0]; //Now you have the URL of the attachment you can use this URL. } Thanks Arjuna. ...Show All
Visual C++ Stepping into crt code
Hello, I just realized that unlike the debug crts with VS2003, the crts for VS2005 (msvcr80d.dll and msvcp80d.dll) have had their source information stripped. So I can't step into these modules when I am stepping through code. With VS2003 this was possible, and on occasion I found it quite helpful to understand what was going on. Do I have to actually build these dlls myself in order to be able to step into them Why was this changed for VS2005 From my short look through the posts, it sounds like building these crt dlls oneself is more than a little difficult. Is there any way to get a version of these dlls that have not been stripped Or do others have a different technique to deal with this change from VS2003 to VS2005 Thanks, -Eric Tw ...Show All
.NET Development Getting the 32/64 bit dotnetfx into a vs2005 deployment project
Folks, I have a nice little 2.0 .net application I wrote in VS2005 that I need to install on both 32 bit and 64 bit machines. I need to be able to distribute this in a one-click type environment. By adding a deployment package, I was able to do all the installer mumbo-jumbo I needed to do, including sending the 32bit framework out in the project (by going into Prerequisits via the Installer project property page). When I transport the output to a 32bit box, I get a dialog asking if the user wants to install the 32bit .net, etc, etc. Cool. If I go to a 64bit box, I get a "this version of .net can not be installed on a 64bit machine" type message. Ooops. So, it would be ideal to just tell vs2005 to use the 64bit netfx file that is ...Show All
Visual Studio 2008 (Pre-release) One connection and several models
Hi, I would like to create several models in my application: - People (with all the people related classes/tables) - Orders (with all the orders related classes/tables) - Administration (with all the administrative related classes/tables) - ... Also, I would like to be able to link some objects of People with orders ... It is a question of organization, because in my previous jobs we have build up to 12.000 Business objects and have all in the same model is impossible to manage. Also I would like to have only one "connection" object related to everything. Is it possible Thanks for your help Following up on Cdemez question regarding linking objects from seperate models. How can I create a relationship between ...Show All
SQL Server Problems backing up SQL Express Database...
Hello, I found some code below that works fine when I run it in my vb.net code in Design mode. When I publish the application, run the app and then execute the sub MyDbBackup() I get the following error: Cannot open backup device 'C:\dbBackup'. Operating system error 5(Access is denied). BACKUP DATABASE is terminating abnormally. Here is the code that runs: Public Sub MyDbBackup() Dim sqlconn As New SqlClient.SqlConnection(MyConnectionStringdb) sqlconn.Open() Dim Backupcommand As SqlClient.SqlCommand = New SqlClient.SqlCommand("BACKUP DATABASE [" & sqlconn.Database.ToString ...Show All
Visual Basic in my solution i need to auto hide a pannel how to do this
in my solution i have a requirement to auto hide a pannel how to solve this proble Private Sub Form1_MouseMove ( ByVal sender As Object , ByVal e As System . Windows . Forms . MouseEventArgs ) Handles Me . MouseMove If Me . Panel . Bounds . Contains ( e . Location ) Then Me . Panel1 . Visible = True Else Me .Panel1 . Visible = False End If End Sub ...Show All
