Harry_Leboeuf's Q&A profile
SQL Server How to fit a textbox to content?
I know: "it cannot be done" seems to be the standard answer on this forum. Still, how can one adjust the witdh of a textbox to the length of the text within You could use the graphics object to measure the string with the correct font and then adjust the textbox with the size of the string. ...Show All
Visual Studio Adding files generated with text template to project and dynamically create a web application
Hi, I am generating several files from one TextTemplate just the way is posted in this forum, I would like to know if there is a way to include the generated files automatically inside the project, how Can I create a Web Application dynamically inside the text template ans add it to my solution file Luiz, In answer to your first question, you can add new items to a project programmatically using the ENVDTE.DTE.ItemOperations.AddExistingItem(...) method, and you can get a reference to the DTE object using the GetService(...) method of an object that implements IServiceProvider (depend ...Show All
Visual Basic 2 Projects in solution not compiling to the same directory.
If create two projects in the same solution and add a Ref from one to the second and compile the second, and compile sol I get both compiled to the second's directory. Exactly as I'd like. And if I create Solution3 with Project3 and add the first project and add ref in Project3 to First project they also both compile to the same directory (Project3's compiled directory). But it's not working for an existing project. I know I can set each project's output directory (via property>Compile>Build Output Path) but in a working example that compiles all projects to the same directory the individual project ...Show All
Smart Device Development WebReference Change Static to Dynamic Setting not working
I have a Web Reference in my code in which I want to change the URL Behavior from static to dynmaic. When I do so nothing happens. I look in the app.config file hoping to see the url reference and nothing has changed. I also have checked the reference.vb file and it still is hard coded and not referencing the app.config file. Anyone know what is going on Hasn't anyone else run into this problem I am sure others have used this option before. ...Show All
Visual Studio VSS 2005 RTM setup failes on Win2k
Attempting to install on Win 2k Pro and recieving error "Setup.exe - Entry Point Not Found" This is a fresh OS install and only Office XP and SQL Client tools have been installed. All windows updates have been installed including .net 2.0 and 1.1 with all subsequent updates. I cannot find anything on this error at all. It installs on another Win2k computer here in the office, but not mine. Any thoughts on a solution Did you try installing using the same media as the other machine Also, try copying over the layout and installing from your hard drive. ...Show All
SQL Server How can I get a table creating script,except for the right_click method in Ojbect Explorer?
I now often change some tables' structure. The "right_click method in object explorer" is terribly slow, Is there an alternative method to get the table creating script, something like the sp_helptext system stored procedure You could write your own program using SMO. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Forms scrollbars in windowsforms
I have a form with a maximum height, the width always the same. When the maximum height is exceeded, scrollbars automatically appear. I want to keep the vertical scrollbars, but a horizontal also appears, because the vertical one is placed inside the form. (the width of the vertical scrollbar is the width which the horizontal appears for) How can i solve this problem Adjusting the width of the form doesn't help. I really want the horizontal scrollbar to go away, because it's very ugly. I think it's a combination of changing some values but I can't find it. Thanks! I don't know if this ...Show All
Visual Studio Team System Vault at sourcegear.com
I've been through hell and back with a single server install of Team Foundation Server. I call it hell, bill gates calls it "Microsoft Innovation". I believe this is the last osbstacle. Can anyone give me some guidance on how to get around this problem stsadm.exe non-zero return value -2130246810 but I've yet to get an answer to this. I opted to install a third party product. Guess what Microsoft I had no problems installing their toolset. No ridiculous dependencies on sharepoint services. No stupid dependencies on using the default site in IIS. Any permission issues (and or other issues) wer ...Show All
Windows Forms Calculate Width of a String in Pixels
hallo, Given a Font and a string, is there any ready-to-use function in .NET which can compute the resulting width of the string in pixels So that I can adapt say a Label, MenuItem or Textbox to the new size of a string. thx, Steve I guess we can agree to disagree on this one. =) I didn't have a lot of time to plink with&n ...Show All
Visual C++ Refreshing an rich edit box
Hi all, I created a Rich Edit box using MFC and am trying to do a refresh on the edit box. I did an UpdateData() function but it keeps overwriting the current data with new data. I don't want to do that. Basically, I want to keep the current data as well as add the new data on to it. I tried the append (+=) function, but when I call the UpdateData() function, it takes a while to update. I am appending large quantites of data which slows the update function. How do I make it appear quickly Is there way to go about this You need to us ethe function ReplaceSel. This function allows you to add data into th ...Show All
Visual FoxPro n-tier design
I am designing an application and I want to start using n-tier design. I have no problem with the user interface but have some questions about the business and data tiers. My application will probably be all in one vfp exe so I don't particularly have to get into ADO or XML. Am I correct in assuming the actual data reading and writing statements (eg Replace, Insert etc) go into the data tier I am thinking that I would need some sort of data handling class at this tier and a class for each table/entity (customer, transaction etc). Each entity would have a property with the name of the table's fields and the data handling class would then use ...Show All
Smart Device Development Editor in vs 2005
Hi all, When using visual studio 2005 beta 2 for pocket pc,sometime i met the error with text editor. I included the file header but in the file,some function i couldn't use "gotodefinition" to see the code. But i still compile and it runs well. Someone can solve me how to turn it out. Thank in advance. JulienT Hi Julien, It would help us track down the problem if you could post up some subset of your code that reproduces this problem. As we continue to fix bugs for this release, it is possible that your specific problem no longer occurs. Using the code snippet you give us, we can determine whether this is the case. Thanks, ...Show All
Visual C++ I need a good short and simple example for use of CCW(com calleble wrapper)
can anyone help http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconcomcallablewrapper.asp Searching MSDN will give you other articles. There's also the web. e.g. http://www.csharpfriends.com/Articles/getArticle.aspx articleID=41 ...Show All
Windows Forms Using Win32 API to get mouse click
Hi, I'm developing a small "colour picker" app in VB.Net to get the colour at a particular pixel anywhere on the screen (ie: not in the form). I understand I have to call the Win32 API to do this, perhaps trapping the WM_LBUTTONDOWN event but I'm really confused as to how I am meant to do this from a VB.Net program. I ...Show All
Smart Device Development CameraCaptureDialog
Has anyone used the CameraCaptureDialog successfully on a PDA with camera to capture an image to a file I tried the following code on my O2 Atom (running Windows Mobile 5.0) but all I get is a static image in the dialog. After clicking OK in the dialog, nothing happens. The image is not saved (which should not be the case). Doing a trace in debug mode shows that the FileName property is an empty string immediately after the ShowDialog() call. CameraCaptureDialog c = new CameraCaptureDialog(); c.DefaultFileName = "test.jpg"; c.InitialDirectory = @"\My Documents"; c.ShowDialog(); (I've posted the same message to another thread. Hope it's ...Show All
