Spidermans_DarkSide - MSP, VSIP's Q&A profile
Visual Studio Object reference not set to an instance of an object
I installed vs2005 team system suite beta 2 over a previous ctp (I follow all the uninstall guidelines) on a w2k3 SP1 server. When I try to create a new item in a web project (either Dataset, xsd, web form, master page...) I get the error on the subject. I tried to reinstall vs2005 but I always get the same problem. I also tried vs2005_beta_cleanup_tool.exe with same behavior. I want to print the out put on a single label as, " 1 2 ". But after executing the programing it print the value as "12". The reason is that i cant store the location to print "1" ...Show All
Windows Forms How to build a group-filter, based on multiple ListBox ?
Hello, I would like to filter a DataView, based on multiple listboxes, just like "Itunes" does. It does work when i have consecutive selections, but when nothing is selected between two listboxes, the filter goes crazy. I have made arrays that contains fields & control names, for easier upgrade. it resumes like this : - if string not empty then add - ColumnName + " Like '" + SelectedValue + "' AND " ............................. that does work sometimes but when i change the parent listbox, it just doesn't do right. also, i have placed that function to be called on each ListBox_Click sub, is this the good place i ha ...Show All
Visual Studio Converting Add-In (7.1->8.0)
I am attempting to convert an Add-In from a previous version of Visual Studios, 7.1, to be used with VS8.0. I am also trying to keep it compatable with 7.1. I have been trying to work through just the IDispatch interface to find functions such as "get_Item" from a collection like: pCommandBars->get_Item(index, &pMenubar); Where in my version both pCommandbars and pMenubar are IDispatch interfaces and "get_Item" would be called through the pCommandBars->Invoke(...) function. Is it possible to perform all the Command/CommandBar/CommandBars methods through the IDispatch in this way Or is there a completely si ...Show All
SQL Server Sub report ocassionally forcing page break when printing
Looking for help. I have a report based on a list with 3 embedded sub reports in the list, each a table. Here is the issue, if a sub report is going to spill into the next page and can fit into a single page, when the report print previews/prints the sub report is forced to a new page. If the sub report is long enough to cover 1+ pages, a new page is not forced and the report prints as it is supposed to. The issue is not the fit table on one page setting for table in the sub report as this is not selected. If this is confusing I can provided images via email. Bottom line is I want to make sure the sub-report will start printing where it belo ...Show All
Visual Basic entering default data into a database table record
I am using vs 2005 and sql 2005. I am using a webform to insert records but I want to automatically add the current time and the user id in addition to the data that the user enters. Is it possible to do it with the detailsview control and hidden fields If not what is the best way to do this Hi, When dealing with default values its better to be specified in your table directly. You can dothis by editing your table, clicking your field and placing a value for the DefaultValue property. In your case set the default value to GETDATE(). This would automatically returns the current date in your new row... ...Show All
Visual C# Multiple languages on the same WinForm
Hello, I must write an application that must support input fields for a "left-to-right" language (as English) and input fields for a "right-to-left" language but on the same form . The keyboard is bilangual (QWERTY and a "right-to-left" language). When the user enters a left-to-right language input field, the keyboard keys must be QWERTY. When the user enters the right-to-left language input field, the keybord keys must automatically switch to the second language. Is it possible with C#.NET/WinForm/Textbox Thanks in advance, Stephane. Please find a solution ...Show All
Visual C++ VS 2005 not detecting class scope?
Here's a weird one. I imported a DirectX project I'd been working on using VS 7.1 into VS2005 and now some of my classes aren't detected correctly. I don't have access to the convenient little drop-down list of functions.. and searching for the method name or finding it in the class explorer is getting frustrating. Is there anything I can do to have my stuff detected correctly EDIT: Just to clarify, new classes I've since added to the project behave correctly. The scope is detected as it should be and the drop-down list of member functions is available as per normal. This sounds like an Intellisense issue: I presume that the comp ...Show All
Windows Forms Tabs with a MDI App?
Has anyone had any success wigh making a MDI application also support a TabControl (either System.Windows.Forms or Crownwood.Magic.Controls) I know that Syncfusion Essential .NET has support for this, but I was looking for an open-source solution. Is there any hope of this working with the Magic.NET tabcontrol I would love to see some code to this effect. ...Show All
Visual Studio Express Editions File Copying
Greetings, I am writing code that allows a user to copy a selected file. My problem is that when I check to see if the file exists, I get an error saying the file not accessible because it is currentlly in use by another process. Dim fsrc As New FileInfo(txtSource.Text) Dim fdes As New FileInfo(txtDestination.Text) If fsrc.Exists Then If MessageBox.Show("File exists, overwrite ", "Overwrite ", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = Windows.Forms.DialogResult.Yes Then fsrc.CopyTo(fdes.FullName & "\" & fsrc.Name, True) Else Exit Sub End If End If Anyone kno ...Show All
Visual C++ Question about "RUNTIME_CLASS"
Hi, This is a fairly newbie question so apologies if I am slow. I have a "MainFrame" thats a derivitive of a CMDIFrameWnd. I also have a descendant of that frame called ChildWnd, thats a derivite of CMDIChildWnd. I dont seem to declare the CMDIChildWnd any where apart from like this RUNTIME_CLASS(ChildWnd); I assume as the name suggests this is a dynamically declared and instantiated class, i guess since there can be lots of the them. Now from pretty much anywhere in my application I can reference the "MainFrame" and call SendMessageToDescendants to call a method in the ChildWnd. However is there any other way t ...Show All
Windows Forms Getting icons in ColumnHeader of ListView control in VB.NET
Hello, Does anyone knows how to get icons in column header of ListView control (in Details view) I want to have arrows (up and down) when I do sorting of columns. In VB.NET there is no ColumnHeader.Icon property like in VB 6. Regards, ///Tihomir ...Show All
SQL Server In 2005, finding users who have context in a database?
I know sysprocesses has the information, but I can't seem to find how this is done using the dmv's. sessions doesn have a db context, and requests is only active while activity is occurring. Thanks! This is a known limitation. None of the new DMVs expose this information. There is a bug already filed for this problem and we have some ideas on how to expose the information but not sure if it will be done in a service pack for SQL Server 2005. ...Show All
Windows Forms How to manage globalization of DataTime control?
I am developing a globalized application in which the language of the UI follow the CultureInfo of the current thread. However, I found that the language of the DateTime Control depend on the language of Windows rather than the current thread. How can I fix it string sCurrentDate = DateTime .Now.ToString("yyyy-MM-dd hh:mm:ss", CultureInfo .CurrentCulture); ...Show All
Smart Device Development removing controls from hashtable
hi, i added few controls dynamically by using hash table. i need to remove them after some processing. But i couldn't remove them. how to do that i tried me.myhashtable.clear() if i use remove property,it's asking for some keys. what is that Thank You! You need to understand how hash table works, as soon as you do it all would be very clear. Please see this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_vstechart/html/datastructures_guide2.asp ...Show All
Visual Studio Team System Tasks do not show up in Window SharePoint site
I have created projects in Team Explorer and have tasks in the project, but when I open the SharePoint site for the project and look at tasks, none show up. Aren't the tasks supposed to be shown in the SharePoint site no, these are WSS tasks, not linked to Work Items within TFS. We will have a web client for TFS shortly which you will be able to link into a webpart for this thanks Michael ...Show All
