Technobabble80's Q&A profile
Windows Forms hosted DesignSurface - editing Controls (e.g. ComboBox) => Crash
I am playing with hosting a designer and I am already quite satisfied with my current test of a hosted designer - except that some controls crash it. I am just hosting a DesignSurface, add a ComboBox from my Toolbox, then click on the glyph for the smart tags, then click the check box "usw data bound items" once to activate. After doing that and leaving the smart editing again, so that this popup box is closing, I cannot enter it ag ...Show All
.NET Development Startup windows service on first communication
Hello, All. I am trying to find a Windows solution to the following question: How to startup the windows service that should listen to some port on the first attempt of the communication to that port In *NIX there is a system service that provide a preconfigured binding between port number and the service. Once it receives a communication request to the port it starts up the service bound to the port. P.S. I did not find a discussion ...Show All
Visual C# Question About Threads
i want to creat form using thread but the form disappear i write this private void button1_Click(object sender, EventArgs e) { Thread T = new Thread(CreateForm); T.Start(); } void CreateForm() { Form2 f = new Form2(); f.Show(); } The Show method shows a modeless form, which means that the code that created it keeps on running. In this case, that means the thread ends. Yo ...Show All
Visual C# login to sql
Hi friends am new to C# and VS2005. am writing a small app that talks to sql server.my question is i want to write login screen which accepts login/password if authenticated call main form. i know how to connect to sql using ODBC connection string but want to know there is any better way or different in vs 2005 doing that any code samples much appreciated. Thanks for ur help :) Hi, Your conneciton string would be just like a normal c ...Show All
Visual Studio 2008 (Pre-release) data binding with viewport3d
Is it possible to bind data in a viewport3d so that 3d visuals can be generated from data Something along the lines of ItemsControls and DataTemplates for enumerating a list of data points and assigning coordinates etc to a visual representation. This is simple to do in XAML for 2D controls, but I'd like to do it for 3D elements. Any help would be greatly appreciated! Cheers, -robin Check http://msdn.microso ...Show All
SQL Server Get Minimum day in a continuous series
Hi, l've a series of day which record the date of an event. l would like to count the # of continuous days for the event. In this case, it would be 14/5, 15/5, 16/5, 17/5, 18/5, 19/5 and 20/5. Any idea to do this in SQL Date ----- 20/5 19/5 18/5 17/5 16/5 15/5 14/5 09/5 07/5 06/5 05/5 The only thing that comes to mind is to use a cursor to loop through your rows. You can then che ...Show All
Windows Forms Adding Image to the DataGridView editing column
Hello all. I'm trying to add an image to the first column of a DataGridView. I mean - the column in which we click to allow selection of the row (I don't know its exact name), not the the grid.Columns[0] column. How can I had create custom ...Show All
Visual Basic Unable to install starter kits
Downloaded kits, then try to install but get error of duplicate, etc. If I use the rename .vis to .zip then inside the .zip, there is another .zip but it doesn't say clubstarterkit.zip, just clubsitebv.zip in my case. I dont really have any idea of how to make the starter kit to show up when file, new project, etc. I dont' think they 'install' anywhere. You have to extract it, then go File->Open and browse the the project's .sln o ...Show All
Visual Studio Express Editions GIFs as a pseudo-font
I have a specialized group of GIF images (Similar to some of those used on the 'print a banner' pages on the web). I am cooking up a project to do some printing with these guys. Soooo... Before I have to re-invent every wheel again, I thought I would ask here for some suggestions. I have already tested graphics positioning of images in the printpage event and have some confidence I can handle that, but pointers to examples or code samples ...Show All
Visual Studio Express Editions Need help with for and pictureboxes
I'm making a map editor to make maps Every tile is a picurebox. In the menu there is a command "New" wich will load all the default pics into the picturebozes, so you can make a new map i created this for statement dim i as integer For i = 0 To 391 PictureBox(i).image = My.Resources.Image_default Next i But this doesn't work. There is something wrong with the PictureBox(i).image Please help me. I'm using vb2005 Thanks in advance, Radexxio ...Show All
Visual Studio Team System MSN Messenger integration?
Hi, I have seen several demos from Microsoft events where when a work item is changed, a build produced or an item checked in a MSN message is sent to a team member as well as an email. Can anyone point me to some sample code for this please. Also code for sending messages via Office communicator would be most welcome. Many thanks, David You can use the MSN Alerts service, to publish notifications to users that have opted into receiving via ...Show All
Visual Studio Team System TFS Beta 3 client issue
I'm able to successfully install TFS BETA 3 client and create a new team project on the TFS beta 3 server residing in a different machine. But, I'm not able to expand the Team Project tree view from the Team Explorer. What could be wrong I don't know why that would be the case, but you could try clearing the client cache. http://lab.msdn.microsoft.com/teamsystem/tfsknownissues.aspx#TeamExplorer Buck ...Show All
Visual Studio Tools for Office Release object
How can I release all the object in mailItem when Outlook 2003 is closing WinWord remain in process for long time, and if I open again Outlook I will have two commandbar. Thank you. Hi This is a huge topic discussed in several blogs below and is subject to various critics statements of using ReleaseCOMObject methods but in certain circumstances this is correct and others is bad :( - Firstly have you looked at using VSTO V2 as this is rele ...Show All
Smart Device Development Problem drwing a form
Hi, I would like to make some actions in the form directly when I launch this form but the form is drawing after doing all the actions and in Make_Actions(), I'm launching a lots of thread... public RegistryForm(string BackupName) { InitializeComponent(); this.BackupName = BackupName; Make_Actions(); } So I was trying to put some code like : this.refresh(); this.ResumeLayout(); this.update()... ...Show All
Visual C# ? Where are the Code Analysis Settings ?
(VS2005 RTM Question) I'm following these instructions about how to modify managed code analysis settings from the online help: To modify managed code analysis settings (1) Select the project in Solution Explorer. (2) On the Project menu, click Properties. (3) Click the Code Analysis tab. (4) Select Enable Code Analysis. (5) Click Settings. The Code Analysis Settings dialog box is displayed. (6) Under Ge ...Show All
