B. Clubb's Q&A profile
Visual Studio Express Editions Getting files with specific extensions using FolderBrowserDialog
Hi everyone. I'm making a media player using the BASS API Library and Direct-X. My problem is, I'm using the FolderBrowserDialog component and I know it can't filter files but I need only files with specific extensions to be added to the Listbox I have on the form. So far the code looks like this: Public Sub foldertoplaylist() Dim plug As Integer = 2 Dim playlistid3 As String Dim chosen As String Dim filInfo As IO.FileInfo AddFolder.Description = "Choose the folder you would like to add to Tray-Play" If addfolder.ShowDialog = Windows.Forms.DialogResult.Cancel Then ...Show All
SQL Server @@servername returns NULL value
I have a SQL 2005 clustered server which is returning a Null value for @@servername. I find the server entry in sysservers. I have replication configured on this so i am not able to do a Sp_dropserver & sp_addserver as this acts as a publisher. The configured merge repication stopped working because of this issue and I am not able to delete replication as the the delete option uses @@servername which returns a null value. So I am struck in a loop. Any advice is appreciated. thanks Hi, Have you rename the virtual server name or the participating node name Peng ...Show All
.NET Development Help : "error: 40 - Could not open a connection to SQL Server"
I'm using VS2005 and SQL2000. I created a database name "myDatabase" in SQL Server 2000 and built a website that connet to this database. When I'm running this website in VS2005 IDE (press F5 or Ctrl-F5), everything is OK. I publiced this site. When I connect to database on my computer, everything is OK also, but when I connect to database on another computer, an error occurred like this : "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, ...Show All
Windows Forms What is the most efficient way of adding, modifying and deleting data in SQL Server.
I have a DataGrid that display records from SQL Server table. User click on Add button to open Data Entry form and press OK when finished. New record should be added to the database and DataGrid should display and highlight the added record. Similarly, when user modifies a particular record, the changes should be propagated to database and DataGrid. When&nb ...Show All
Windows Forms DataGridView Checkbox Column Event????
I have a windows form with a DataGridView on it. I then have a checkbox column and i just want to capture the event of the checkbox clicked event... Thanx in advance Paul ...Show All
Visual Studio 2008 (Pre-release) avoiding right arrow presses after entering a quoted property
As I'm going through the FebCTP examples, I'm entering the xaml in manually to explore and better remember the available properties. When entering a property like VerticalAlignment that has in-built options (Stretch, Top, Etc.), pressing tab results in the cursor moving to the right of the quote. This is helpful and allows entering further properties without moving to the arrow keys. When entering a property value that isn't appearing in intellisense (like a Heading or Click that is done manually), pressing tab or enter just insert whitespace inside the quotes. Pressing shift+enter results in a newline being created above and the cursor ...Show All
Visual Basic Underline Text in TextBox
Is there a method to underline a portion of the text in the TextBox control in VB6 Thank You You cann't underline only a portion of the text with TextBox, you must use RichTextBox... Please note this forums isn't for visual basic 6 questions. ...Show All
Visual Basic Why does CTRL+X, CTRL+V etc. not work?
When i open a child form, like this: frmEl.MdiParent = Me frmEl.Show() Then i can't use the standard shortcutkeys like CTRL+V etc. in a RTF box. If i open the form without the frmEl.MdiParent = Me, then all works perfect. Anybody knows what are going wrong I have made other aplications, where everything works ok, but not with this one. I have tryed to make a empty form, only with a RTF boks on, it's the same result. I am using Visual Studio 2005 Please help Check the Shortcuts enabled property of the richtextbox control is set to true ...Show All
Visual C++ Problem with /MTd compile option
Thanks in advance for any help. I encounter a problem with VS2005 where the EXE would crash with heap error. I create a simple EXE, DLL to illustrate the problem. Crash - if I use /MTd in the compile option for the EXE No Crash - if I use /MDd in the comppile option for the EXE I mark the place where the crash occurs. Error Message ------------- HEAP[EXE.exe]: Invalid Address specified to RtlValidateHeap( 003E0000, 00395BC8 ) Windows has triggered a breakpoint in EXE.exe. DLL Header ------------ class DLL_API CTestString { public: CTestString(void); void GetValue( wstring &value); BSTR bsClassStr; }; // T ...Show All
Visual Basic Context Menus
There must be an easy way to do this but I sure can't figure it out. I have three listboxes on a form and one context menu that has "Select All" and "Select None" in it as options. If I assign this one context menu to all three listboxes, how in the .Click event may I determine in which listbox to select all or no items I'd make a small listbox class. It will have declared a new listbox with Friend WithEvents You will create a click event, that is common to all events that uses the sender argument to determine who has called you. Your main class will want to get these objects. ...Show All
Visual Studio VSS6 with VS.NET 2005 RTM
We have been using the VS2005 Beta2 in conjunction with VSS 6.0d for about 6 weeks now, without problem. Everything was working very well, checking in/out, etc from the VS interface. I just installed the VS2005 RTM and when I start VS2005, it no longer recognizes that I have any Source Control. Furthermore, when I attempt to open the project we have been working on, it gives this message: "The project X:\NETPROJECTS\ProjectName appears to be under source control, but the associated source control plug-in is not installed on this computer. Source control will be disabled for this project." Before anyone suggests going to Tools --> ...Show All
Windows Forms joining two data DataTables In DataGrid
I have two data tables user DataTable: col1= USER_ID ; col2= USER_NAME order DataTable: col1= ORDER_ID ; col2 = USER_ID ; col3 = PRODUCT_NAME I would like to show the order Datatable in DataGrid with USER_NAME instead of the USER_ID, how can I do it how can I make the DataGrid show the following fields UserName ; OrderID ; ProductName ...Show All
Windows Forms Cancel listview selecting an item
Is there any way to stop the listview from selecting an item I want to perform a test on the currently selected item and if the user tries to click on another item, stop them from moving to the item they clicked on, if the test returns true. Yeah I suppose keeping track of the index and then just changing it back would ...Show All
SQL Server SSIS Requests...
May be it's too late, but I think this requests could be scheduled at least for a SP1 if it's not possible for the RTM. 1) Execute Task without debugger: it would be very nice to be able to execute a single task without going in debugging mode. Just as you would ask "Start Without Debugging CTRL+F5" but for a single task 2) Customize default properties for task and component: when you drag a task on the package you get a default value for the properties that you could want to change; often I need to change the same property in the same way each time (for example I'd like to set the Batch Size for a OLE DB destination to 1000 instead than 0 ...Show All
Windows Forms Databinding an XML file to a menu
Hi, I've been messing around with databinding for a few days, and im wondering how i can bind data from an XML file to a menu The menu objects dont have a Databindings property, like a button, so i dont know how to go about this. I'm trying to add multiple language support for my program, and using XML files seemed like a good way to go, so ...Show All
