David Mc Dermid's Q&A profile
Windows Forms where can I find out about the combo autocomplete
not much detail on how to use. I want my custom datasource to be the same as what filled the combo box I have a data reader to fill a combobox, my user wants to just start typing a name and have it auto fill as they type. So the info i read about the combobox autocomplete says to use the custom but no details on how to use ...Show All
Visual Studio 2008 (Pre-release) ListBox item multiline text
Hello people !! I've a ListBox and I need their items in a multiline text way. Any of you have an idea of how can I do that Thanks a lot !!! Thanks a lot Lester !!!! I use now this to avoid the use of LineBreak: TextBlock txtBlock = new TextBlock(); txtBlock.Width = 50; txtBlock.TextWrapping = TextWrapping.Wrap; txtBlock.Content = "Hello this is a lonnnnnnnnnnnnnnnnnnggggg textttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt"; Thnaks a lot !!!! ...Show All
SQL Server Unable delete remote files using FTP Task
I can create remote folder and delete it I also can create remote files but i can not delete remote files error warning is like subject any ides thanks Yes. By default, the normal FTP commands cannot handle multiple files. MGET, MPUT, MDELETE are used for that purpose. (Speaking in terms of non-SSIS FTP Tasks) I don't know about a windows FTP server, but in Unix, just because you can upload files doesn't mean you get to delete them. In fact the owner of the files you just uploaded may not be you. If on a unix FTP server, have you verified that your FTP login ID is the owner of the files (ls -l) I don't know how the SSIS FTP Task's delete files command works though. It does accept wildcards. ...Show All
Windows Forms How can I make update version for application which was signed with certificate now expired?
If I change expired code signing certificate to new one and publish updated application, client will fail to launch. And code signing fails if I try to use expired certificate. How can I make update version for application signed with old certificate I can verify that this is a problem with Verisign certificates too. I just renewed mine, updated my software, and found out it will no longer work unless I uninstall the old version first and then install my new version. This is a unbelievable oversight on Microsoft's part if there is no fix for this. How can they promote the Clickonce technology, encourage people to sign their code, and tell them about all the benefits of using this technology when ...Show All
Visual Basic How do I create "code modules" in Visual Studio 2005 Pro?
Hello all. In Visual Studio .NET 2003 I am able to create code modules via the Project menu | Add New Item command and then choosing the "Module" template. This would create a "module1.vb" file associated with the open project. How do I perform this functionality in Visual Studio 2005 This is making me really feel like a novice, not to mention what seems like one of the first files you'd want to create inside a project seemingly has no counterpart in Visual Studio 2005 Pro. I'm specifically looking for this code module so I can keep my created procedures separate from the rest of the code. Help! You don't have to get the pro version of VS...Just soemthing besides the Web Developer vers ...Show All
.NET Development Download data to excel
Hi all: We're developing an ASP .NET application which get some data from SQL server and draw some graphs. We already have the queries to get the data and everything works fine with the graphs. The question is that we want the enduser to have the possibility of downloading these data used to build the graphs to an excel file. We have a code to do this in xml format but not in xls. Anyone could help thank you. Emerson There are several ways to export data into Excel 1. Use Jet OLEDB Provider. You need to create INSERT SQL statements and call them to insert one row of data at a time. Jet works pretty fast, but has some limitations when data in a same column contains different ty ...Show All
Windows Forms For designer copy/cut/paste, what Type or data format does MS set the clipboard DataObject to?
Reflector shows this code for the copy command: protected void OnMenuCopy ( object sender, EventArgs e) { if ( this . SelectionService != null ) { Cursor cursor1 = Cursor . Current ; try { Cursor . Current = Cursors . WaitCursor ; ICollection collection1 = this . GetCopySelection (); collection1 = this . PrependComponentNames ( collection1 ); IDesignerSerializationService service1 = ( IDesignerSerializationService ) this . GetService ( typeof ( IDesignerSerializationService )); if ( service1 != null ) { object obj1 = service1 . Serialize ( collection1 ); MemoryStream stream1 = new MemoryStream (); new BinaryFormatter (). Serialize ( ...Show All
Visual Basic Vertical dark Line below cursor
My application is developed in .Net 2003. My application has 2 treeview. When I install and run my application in fresh machine which has .net framework 2.0 and no .net framework 1.1. I found tat the cursor is different in one of the treeviews. A small vertical dark line appears below the cursor. Other than this application works fine. Is there anyway to fix this, please let me know. Thanks in advance Pradeep ...Show All
SQL Server could not deploy the cube
hi, i have created the cube , i am trying to deploy the cube which was not possible it is giving an error as follows: Error 1 The project could not be deployed to the '192.168.1.2' server because of the following connectivity problems : A connection cannot be made. Ensure that the server is running. To verify or update the name of the target server, right-click on the project in Solution Explorer, select Project Properties, click on the Deployment tab, and then enter the name of the server. 0 0 can any one help me with this hmayer wrote: could you ping Is the service running is it a named instance you have to specify servername\instancename if named instance is SQ ...Show All
Visual Studio 2008 (Pre-release) How do i split the checkbox text from the actual box
How do i split the checkbox text from the actual box i want to separate the text and the actual box in the checkbox, so when i click on the text nothing happens but if i click the actual box then it checks the checkbox. This is because i got a listbox with checkboxes and i want to be able to click on the text without checking the checkbox. Paste c# code please Hi Olelar, in regards to "how" it may depend a bit on the layout used within your application. But here is an example of the potential XAML code: < StackPanel Orientation = " Horizontal " > < CheckBox Content = "" /> < TextBlock Text = " [CheckBox Text] " /> </ StackPanel > ...Show All
Visual Studio 2008 (Pre-release) wcf building blocks
As per my understanding, wcf consists of four laayers: 1. Contracts- data contract,message contract,service contract 2.Service runtime-Transactional behaviour,error behaviour etc 3.Messaging- ws security channel,http channel,tcp channel 4.Activation and hosting-exe,windows service,com+ If we break these up in implemntation strategy, these should fall under follwoing endpoint body parts as folows: a).Address- I don't know b) Binding-consists of point 2 and 3 c)Contract- consists of point 1 Can somebody please validate this and let me know where address fits in. Your understanding is good, and mirrors http://msdn2.microsoft.com/en-us/library/ms733128.aspx The 'ABC' (addr ...Show All
Smart Device Development Serial Port DataReceived Event in .Net 2.0
Hi there, This is driving me crazy, I cannot seem to get the DataRecieved event to work on the Pocket PC using the new serial port class in Visual Studio 2005 with C#. The DataRecieved event just never seems to be called. I can write data to the port just fine. Here is some very simple sample code that reproduces the error:. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO.Ports; namespace SerialTest { public partial class Form1 : Form { // Setup the port private SerialPort port = new Se ...Show All
Windows Forms Links in a FormsApp and controlling the browser
Opening links is easy, like this private void button1_Click( object sender, EventArgs e) { System.Diagnostics. Process .Start( http://www.google.com ); } private void button2_Click( object sender, EventArgs e) { System.Diagnostics. Process .Start( http://www.yahoo.com ); } But is there a way to control if the link is opened in a new browser window or an existing one Well, I'm not sure. but at least you can have a try HKEY_CLASSES_ROOT\HTTP\shell\open\command\ddeexec\Application indicates the default browser and, HKEY_CLASSES_ROOT\HTTP\shell\open\command indicates the command line passed to the browser ...Show All
Windows Forms FocusRectangle Problem
Hi everybody, I need to change the button FocusRectangle colors in my Forms, because I have Flat type Appearance with a background image. Which is the best way to do it I tried with an override of the OnPaint method and DrawFocusRectangle, but I just get an strange behaviour... Thanks in advance, Demian Hi Chris, When I override OnPaint method with the next code for example: protected override void OnPaint( PaintEventArgs pe) { base .OnPaint(pe); ControlPaint .DrawFocusRectangle(pe.Graphics, pe.ClipRectangle, Color .Blue, Color .Blue); } It doesn't change the Focus Rectangle color, and also insert's me a dotted ButtonBorderStyle. Thanks for your repl ...Show All
Windows Forms String Publishing Error
I'm attempting to deploy my first project using ClickOnce. This project is being deployed with a setup project, but that is not nearly as convenient as ClickOnce appears. When I try to publish the project I get an error that I am unable to locate any solution for, and I don't even have any idea where to look to begin fixing it. The error sounds very cryptic to me so I'm hoping someone can point me in the proper direction. The project I'm trying to deploy is written in C#, although I don't think that matters much. I did create an empty project and it deploys fine. I've pasted there error below and I would appreciate anyone who can even give me a place to begin looking for an answer. Error 36 "Properties\app.manifest; ...Show All
