JIM.H.'s Q&A profile
Windows Forms ListBox question
Hi to all! I have a question about ListBox control. I would like to add some items on a ListBox which are objets (for example type of MyOwnObject) and are not strings! When I add my objects to the ListBox (myListBox.Items.Add(myOwnObject)) of corse nothing displays on the ListBox. I would actually like to display only some properties of my objects (for example myOwnObject.Name + myOwnObject.Version + myOwnObject.LastUpdated). I don't know how to do it. The fact is I want to have the whole objects in myListBox.Items because of the binding (raising events) not only strings. Thanx for any advice, Ziga Hi fddsfsdf, A common question, the ListBox ObjectCollection is confusing. When ...Show All
Visual Studio 2008 (Pre-release) I want to make ColorList from XAML.
I want to make ColorList from XAML. However, the error occurs by this code. "Cannot find resource named '{White}'. Resource names are case sensitive. Error at object 'System.Windows.Markup.StaticResourceHolder'." To what XAML code do I only have to make it <Window x:Class="WindowsApplication1.Window1" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " xmlns:l="clr-namespace:WindowsApplication1" Title="WindowsApplication1" Height="300" Width="300" > <Window.Resources> <l:ColorCollection x:Key="colorList"> <StaticResourceExtension Reso ...Show All
.NET Development ProcessStartInfo to execute vb script with certain user
I tried to use ProcessStartInfo to execute a vb script with certain user name. My Code: --------- ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = fileName; psi.UserName = userName; psi.Password = password; psi.Domain = domain; psi.UseShellExecute = true; Process.Start(psi); The Problem: ---------------- When I set UseShellExecute to true --> the error is "The Process object must have the UseShellExecute property set to false in order to start a process as a user." When I set UseShellExecute to false --> the error is "The specified executable is not a valid Win32 application." Any Help please Bishoy Please, Is there any way to execute a file ...Show All
Visual Studio 2008 (Pre-release) Error 403 when browsing to Service.svc file
I am trying to run one of the wcf samples. I am deploying the server to IIS 6 and keep getting Http Error 403 Forbidden when I try to browse to the service.svc file. The directory and files appear to have the right permissions set. I added a Default.aspx page to the same directory and it works fine. I changed to Basic authentication and the Service.svc file returns the 403 error before I am even prompted to login. The Default.aspx page prompts me to login and then displays correctly. I had the sample working fine on my Windows XP workstation it just won't run on Windows Server 2003. Does anyone know what else I can check to get this working Thanks, Matthew Sajay, I tried running the ServiceMod ...Show All
Windows Forms Dropdown List
Is there a way to make a Dropdown List typing enabled in a web application. Thank you in advance Great, thank you so much :) It gets the information it displays it in the DIV but when I hit backspace it doesn't clear it properly. Also i would like when i click on it, to put the value in the text box. I think you use INNERHTML ... not sure :) Thank you again //sql functions var req;// Function to Initialize function Initialize() { try { req=new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { req=new ActiveXObject("Microsoft.XMLHTTP"); } catch(oc) { req=null; } } if(!req&&typeof XMLHttpRequest!="undefined") { req=new XMLHttpRequest(); ...Show All
Smart Device Development Conforming a form like message box
Can I conform a windows form like a message box I mean, a form that can move on the pocket pc monitor yes, i think i've got what you mean. You mean a modal (dialog) form that will disable all windows until it has an action depends on a button click. You can do this but tell me which programming language do you use ...Show All
Visual Studio Team System How to Restore Report Parameters to Their Original Values
I was trying to modify the default "Plan Completion Date" in the "Unplanned Work" Report, that comes with TFS. I went to the report properties and selected the "Parameters" tab. There, I clicked the "Override Default" button for the "PlanCompletionDate" parameter, so it would allow me to specify a custom date. There I entered this date: "12/16/2006". After that, I clicked "View" to view my report and it worked fine. No problems here. Then, I decided to do the same for the "PlanCompletionDateCtrl" and "StartDateParam" parameters. So I did exactly the same. But then, when I clicked "View" to see the report, I got this error: An error ...Show All
Visual Basic VB Output Box
I am a beginner to VB.Net, I am in my first intro class about it, and I have a question: I'm having to do a project on business travel expenses. The guidelines are as follows: Write a program to generate a business travel expense attachment for an income-tax return. The program should request as input the name of the organization visited, the date and location of the visit, and the expenses for meals and entertainment, airplane fare, lodging, and taxi fares. (Only 50% of the expenses for meals and entertainment are deductible.) The output is displayed in a list box that becomes visible when the button is clicked. Sub procedures should be used for the input and output. The whole output box is to look like this: Business Travel Ex ...Show All
Visual Basic Missing Assembly Microsoft.SqlServer.ConnectionInfo while using ClickOnce deployment
hi, I am using VB.net and I have a problem while publishing my application using the ClickOnce deployment on a shared folder on the seever. On my PC, the application works fine where the VS2005 is installed. But when I tried to install and run the application on an end user machine , it gives me the following warning: "Unable to install or run the application. The application requires that assembly Microsoft.SqlServer.ConnectionInfo Version 9.0.242.0 be installed in the Glocal Assembly Cache (GAC) first." how can I solve this problem Thanks in advance Regards, I found the solution to this problem. well what you have to do is go to the project properties --> Publish tab ...Show All
SQL Server SQL 2005 -> SQL 2000
How can I export my database from SQL Server 2005 to SQL Server 2000 Restoring .bak, does not work. I'm lost here. I have created a db on my dev machine which runs SQL Express 2005 and I wouldn't have ever dreamed that you can't transfer data from SQL 2005 to SQL 2000. There's even a setting to set compatibility of the db (and I have it set to SQL 2000) which doesn't help at all. Maybe you can suggest an intermediate format to use For example, with mysql you can easily export the whole db (structure + data) in one text file. I think there should be a way to at least export db structure from SQL 2005 and then import it to SLQ 2000. SQL Server Management Studio Express (which I use with my SQL Express) allows me to copy-paste the data in d ...Show All
SQL Server CROSSJOIN Changed?
Hi, I remember that in the analysis services of SQL 2000 the function CROSSJOIN returned a single parent by all children, but in SQL 2005 CROSSJOIN repeat the parents by each child. There is some way to avoid this Thanks! ...Show All
Silverlight (formerly WPF/E) Symbols support?
Currently SVG supports symbols ("defs") - complex elements that are described once and can be referenced and displayed many times throughout the code (tree). This saves a lot of byte-size for the files being used. Is there a similar feature in WPF/E Hi Barak, That works perfectly for elements created on the front end, but if I have a web service assembling the XAML on the back end, I would be concerned with the bandwidth required by the larger files, especially if there are hundreds of identical symbols involved. ...Show All
.NET Development checkbox in datagrid
Hi, Sorry to my poor english.In my aspx page i have a DropDownList and a datagrid.Selecting the value from DDL the datagrid values will change. In datagrid 4 columns are there(tabID,RoleID,CategoryID,Isdeleted).In that 1 column(Isdeleted) is item template column with checkbox. Now i want to save which are all the checkbox has checked in all pages in the datagrid. Table structure is tabid have more then one roleid, roleid have more then one categoryid. UI questions about aspx are better answered at http://forums.asp.net . Thanks. ...Show All
SQL Server Can't save package to Server (No description found)
I'm getting an error, "No description found", when trying to save my package to the SQL Server (2005). It was created under the Sept. CTP (SQL 2005) and the matching BI tools, which saved fine. But now with the RTM version I'm getting this error when saving. I'm in the process of trying different variations, i.e. saving from Sept CTP to current server.... Unforetunately I have clients in next week for training, so I have to find a quick fix or reload the Sept. CTP for training Anybody else have this issue f.y.i. I'm getting the same error when trying to save maintenance plans on the server. Versions: Microsoft SQL Server Management Studio 9.00.1399.00 Microsoft Analysis Services Client Tools& ...Show All
Windows Forms Bases classes & Forms
class A : System...Forms.Form {} class B : A //designer for class B -O'K {} class C : B //designer for class C - ERROR {} Why does the designer screen of VS show me a big X instead of the form and say: "The service System.Windows.Forms.Design.IEventHandlerService already exists in the service container. Parameter name: serviceType." It seems/appears I'm duplicating something. If I state "class C : A"  ...Show All
