Bond 007's Q&A profile
Visual C# Problem in adding controls dynamically to ToolBox
Hi Everybody, I need a little help in migrating my VS2003 ConsoleApplication to VS2005. My console application adds a few server controls (built by me) to the toolbox in runtime. However on migrating the code to VS2005 the code is not adding the controls to the new tab, though a new tab is created. The following lines of code add the controls to the tab. ToolBoxTab tab tab.Activate(); tab.ToolBoxItems.Item(1).Select(); tab.ToolBoxItems.Add( "MyControls" , System. AppDomain .CurrentDomain.BaseDirectory.ToString()+MyControls.dll , vsToolBoxItemFormat .vsToolBoxItemFormatDotNETComponent); I have placed the ServerControls dll in the ...Show All
SQL Server Anchoring textbox to a page.
Hi, In our project I have a matrix report. In that I need to anchor a textbox to the right end of the page, so that the textbox will always be at the right end of the report/page. I also need to place the textbox at the page header. (but I am also open to solution / workarounds which does not include page header!!) Thanks in advance Arun. within the properties page of the matrix control you have an option to grow content right to left or left to right, the default is left to right so change this and it may give you what you are looking for, Otherwise you would have to code the position based on screen width less size of control but this is another task all together, ...Show All
Visual Studio Team System CTP4 and RTM - Problems Expected?
Most everyone remembers the problems we had when the VSTS went from beta to ctp to rtm, uninstalling in perfect order, searching for special removal tools, etc. Has the Database team anticipated these types of problems and can we expect they will not plague us I'd love to install the CTP4 on my team's workstations, everyone of us build our own databases. But, I'm reluctant to subject them to the same trials & tribulations I had with the early betas & ctps. I do install, repair, and uninstall on my workstations. We are using the setup technology that VSTS used at RTM and making few changes (mostly just new data files). As such, the setup should be good for using on a workstation. If you run in ...Show All
Windows Live Developer Forums Virtual Earth in a commercial context
Hello, I am looking at using Virtual Earth in our new website (which will be offering a commercial service), but I was just wondering if there are any licensing issues involved. Any information on this would be great. Thank you Ben You can find many posts on this if you can search around but here is one: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1098896&SiteID=1 Or you can just read the terms: http://www.microsoft.com/virtualearth/control/terms.mspx On a separate note, I've been noticing a lot of these same questions pop-up, it would be nice to have an announcement on this forum for licensing policies for VE although there seems to be no MSFT's (aka Caleb) around to do this..... ...Show All
Visual C++ Why is casting needed in this example
I am a little stuck understanding why casting is needed in the following example (Example taken from MSDN website):- // A simple program that uses LoadLibrary and // GetProcAddress to access myPuts from Myputs.dll. #include <stdio.h> #include <windows.h> typedef int (*MYPROC)(LPTSTR); VOID main(VOID) { HINSTANCE hinstLib; MYPROC ProcAdd; BOOL fFreeResult, fRunTimeLinkSuccess = FALSE; // Get a handle to the DLL module. hinstLib = LoadLibrary(TEXT("myputs")); // If the handle is valid, try to get the function address. if (hinstLib != NULL) { ProcAdd = (MYPROC) GetProcAddress(hinstLib, TEXT("myPuts")); // If the function address is valid, call the function. if (NULL != Pr ...Show All
Visual Basic item in Listbox
I'm trying to figure out what I'm missing here in this piece of code: dim s as string ="" for each item In me.listbox1.items s=s & item.tostring & vbcrlf ... i get this error msg: "Name 'item' is not declared" Any help would be appreciated. aLEX According to your error message, the list items are of DataRowView type, not string - you're probably binding to a datatable. Try this: For Each item As DataRowView In ListBox1.Items Dim itemText As String = item(ListBox1.DisplayMember).ToString() ... The reason for "'Item' undeclared" message is that you didn't declare your item variable (in the for each statement) as the same type you're using to ...Show All
Visual C# xml node creating
here is my xml; < xml version = " 1.0 " encoding = " iso-8859-9 " > < annPanel xmlns:xsi = " http://www.w3.org/2001/XMLSchema-instance " xsi:noNamespaceSchemaLocation = " AnnSchema.xsd " > < ann > < annID ></ annID > < annTitle ></ annTitle > < annBody ></ annBody > < annDate ></ annDate > < annPriority ></ annPriority > < annSender ></ annSender > </ ann > </ annPanel > ; !!!!!!!!!!!!ann means in above announcement; i want to write class or a method for adding new annouccement with all its child nodes for user when user call it with button o ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DrawIndexedPrimitives Problem
Hi.. I try to use vertexbuffer und indexbuffer to create a terrain. I use just the same Code in this link (please look at the bottom of the page): http://www.riemers.net/Tutorials/DirectX/Csharp/tut7.php Then I try to change the width and the height of the terrain (instead 4x3 I make for example 40x30). When I start my application, then my computer freeze. Can you please check the code and samy me what do I make false Thanks.. That’s exactly what I have done but my card is somewhat newer than yours. Have you try the reference device If it work this way it seams to be a driver problem. Maybe you should update to a newer if it is possible. ...Show All
Visual C++ about COM dll ---Thnx
Hello sir I was just reading about COM wat I found is COM dlls are platform independent and can be used in any Operating System So I wanted to know what does this mean bcoz in linux we need to change dll to .so file and all that........ Could u plz help me to get some hand in this interesting and compliated technology... wud be thank ful lawazia wrote: wat I found is COM dlls are platform independent and can be used in any Operating System Wherever you read that, you probably should ignore everything else it says. A DLL is a Windows thing and I doubt that they work in any other operating system. Windows uses RPC for COM. When the server and client are in different systems, DCOM is used, where the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. General Audio Disfunction
After about 10-15 minutes of gameplay, the audio slowly begins to become more and more distorted and fractured sounding. Both the sound FX and BGM gradually become more choppy and grainy sounding while dragging down the overall performance of the game. Any ideas my code for audio is pretty straight forward. My general routine for calling sound FX is; 1) call 'cue stop' in case the effect is still playing 2) call 'get cue' to retrieve the sound again 3) call play I do this in most cases where I only want one instance of the effect occuring at a time and there is a chance the sound will not have finished playing before it needs to be played again like in the case of a rapid fire weapon. ...Show All
SQL Server Getting Column Name on Error Redirect
In SSIS packages, records which do not get processed successfully can be re-directed to different destination for logging or correcting purposes. With 2 additional fields ERROR_CODE and ERROR_COLUMN appended to the dirty row values. To indicate the specific error that has occurred and on which column the error has occurred, I have certain doubts on this error reporting mechanism in SSIS packages. The ERROR_COLUMN that is reported is not the column name but a number identifying that column uniquely. how can we at run time remap this column number to the exact column name Any help on this will be greatly appreciated. Thanks, S Suresh Try using this: http://sqlblogcas ...Show All
Visual FoxPro query and fecth in parallel
I'm working with Visual FoxPro 6.0 trying to work on two statements in parallel. The connection string is : "DSN=Visual FoxPro DataBase; SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes; Deleted=Yes;" In the code below I'm processing one query, after it is done I'm opening a new Thread that process some other query on the same table, my problem is that despite the fact I'm working in two Threads it doesn’t work in parallel the function SQLFetch() ends only after the " SelectThread" if over. The output of this program is: [6556] Select Enter [6556] Select Leave [6556] SelectThread Enter [6556] Before SQLFetch [6556] SelectThread Leave [6556] After SQLFetch I'm want to fix this problem so that t ...Show All
Windows Forms Setup & Deployment template not in Visual C# Express 2005
I'm trying to create a setup & deployment project for my solution. First I tried the ClickOnce Publisher, but couldn't get that working, had the one manifest file exception after the other, then I read that the ClickOnce Publisher doesn't have the functionallity to write entries to the registry at installation, and that's one of the requirements for my app to run succesfully. Now I started looking at the windows installer setup & deployment, which I used in VS2003, and I had that working exactly the way I wanted to. I recently upgraded to the Visual C# Express 2005 and .Net 2.0, that project failed during the convertion of my solution so I excluded it from the solution. I wanted to create the setup & deployment pr ...Show All
Visual C# wanting to right click within FileListBox and change Form title text to selected file.
how do I access the title bar of the frmTest below thx. -greg namespace TestExplorer { public class frmTest : System.Windows.Forms. Form private void fileListBox1_MouseClick( object sender, MouseEventArgs e) { frmTest . = this .fileListBox1.SelectedItem.ToString; } Thank you Brendan. When do the following, I get the following error on the fine that contains frmTest.Text private void fileListBox1_MouseClick( object sender, MouseEventArgs e){ frmTest .Text = "hello" ; } Error 1 An object reference is required for the nonstatic field, method, or property 'System.Windows.Forms.Control.Text.get' C:\protos\windows ...Show All
Visual Studio 2008 (Pre-release) About commands navigation
I defined an unser control, which has two controls: a button and a slider. I bind some commands inside this user control. I use it in a window. When the window starts up, i cann't use the commands by keyboard shortcut. After i click the control the shortcut key works. Why?! Please help me fix this issue, thanks a lot! Hi. It perhaps because input focus is not in the slider. You cat fix by seting focus to slider programmicaly (bad decision) or process key pressing event in the main page element (good decision). Good luck! ...Show All
