curiousss's Q&A profile
Visual Studio 2008 (Pre-release) TextBox, IsReadOnly, Focus
When I set the IsReadOnly="True" then this text box no longer gets focus. If I want a readonly text box but with focus function as always how can I achieve that It actually get the focus but do not show the caret. Itzik Someone will correct me if I'm wrong, but I think that the caret indicates an insertion point. Since you can't modify read only text, so there is no insertion point. How about writing some code-behind to highlight the text when the text box gets focus ...Show All
Visual Studio 2008 (Pre-release) Binding Lost after changing Image.Source
In my code, I have a WPF Image control bound to a property of an entity class. The binding is configured so that source updates are explicit: <Image Source="{Binding Path=ImageData, UpdateSourceTrigger=Explicit}" ... /> The application allows the user to change the image displayed by displaying a file dialog, then setting the Image.Source property to the selected image file like this: this.imageControl.Source = new BitmapImage(new Uri(selectedFileName)); When the user selects to save the current info, the code calls the following to explicitly update the binding source of the Image control: this.imageControl.GetBindingExpression(Image.SourceProperty).UpdateSource(); an exception is thrown because the GetBindingExpress ...Show All
Smart Device Development setting datagridcolun headertext
Hello, I'm using Visual studio 2005 c# to develop smart device application. I've a form with master/detail with 2 datagrids (one for the master an one for the detail). There is a relation between the 2 tables in the dataset. The data is well displayed (correctly filtered in the detail datagrid). The issue is : when I modify the columns headertext for a column in the detail datagrid, the headertext stays unmodified. does somebody have the same problem thanks for help Why do you expect it to change in a first place There’s no native master-details support in NETCF, you’d need to do it manually. Same is true for header text - you should manually modify header text in both grids. ...Show All
Visual C# how to Get all of SelectedValue and put it in On textbox?
"I've one checkboxlist in a webform, I was tried to retrieve all of SelectedValues from CheckBoxlist"; way 1 : string i = SelectBoxList.SelectedValue; Label1.Text =i; this way is only shows "1" Value in Textbox whatever how many CheckBox I Select. way 2 : (I Use Array) string [] checklist = (string) (CheckBoxList.SelectedValue); Label1.Text= checklist[0,1,2,3,4]; when run Theme way 2 , System throw Error message .... could someone help Me to Resolve this problem thank you very much ! Thanks but is doesn't work.. my problem is .. I have a formview , in the start formview without checkboxlist , ...Show All
SQL Server want <cr><lf> terminated output of a sql data table
I tried using fixedwidth as output format , but i dont get any line terminators. i.e <cr><lf> How can one control the width of output columns . Book references will do..., Please.... How you are performing the export And in which version of SQL Server In this case DTS would take care of all these line terminators etc. Fyi, you can use Row delimiter Specify that each row in the file is separated from the next with a character sequence. Click one of the following: {CR} (carriage return); {LF} ( line feed ); Semicolon ; Comma ; Tab ; Vertical Bar . You also can type in a character to use as the row delimiter. You can also click < none > if the file is a fixed field file. ...Show All
Windows Forms How can I use the msiexec.
hi, I want to install a .msi file in vista with passive mode and do not restart after install finished. So I made a command I like this: msiexec /i example.msi /passive /norestart But the "/norestart" parameter seems no use, and system restarted after install finished. But the command line use single "/norestart" do take effect. Then what can I do ...Show All
Visual Studio Report viewer Javacript errors - View report from localhost.
Hi, I get javascript errors - mainly 'RSClientController' is undefined when I view in report in browser from url http://localhost/Reports/Myreport.aspx . (Reports is the project name) Also, no image appears on the toollbar (such as First page, previous page & others....) I think it can't find the files in includes by default, but I dont know how to solve it. It runs fine when I view it in the Visual studio Default webserver. Any help/ guidance/ pointer would be great in this regard. Thanks in advance . ...Show All
Visual Studio 2008 (Pre-release) Starting new project => should I use WPF or Windows Forms?
I am just about to start with developing new standalone application that I expect to be ready in year and half. It should replace existing old version written in C++ using MFC. My first idea and reason to start was to improve mainly UI and to use C# .Net 2.0 and Windows Forms to achieve this. But now I found that there is something like WPF in .Net 3.0 and it seems like soon future. So I am really confused. Do you expect .Net 3.0 to be RTM sooner then in one year Is current state (June CTP) ready to start application development that would make sense or is it just for “playing around” and API changes in future will be too big I would like to use new technology but I don’t want to loose all my hair. ...Show All
Visual Studio Installing Crystal Reports XI release 2 for BOTH ASP.NET 1.1 and ASP.NET 2.0 on same server
Hi - We currently have a case where we are supporting multiple versions of our product on the same web server (a windows 2003 server). However, we have 2 versions of our application on the same server, but one is in ASP.nET 1.1 and the other is in ASP.nET 2.0. Our applications are fine and can co-exist ok on the server. They both use Crystal REports XI, Relesae 2, which supports both 1.1 and 2.0. Our developer machines run just fine wtih both products and crystal reports, but the problem we are having is deployment. When we install the runtime redistrubutale for ASP.nET 2.0 on the machine a file(CrystalReports11_5_NET_2005.msi) then our ASP.NET 2.0 application works fine. However, when we install the crystal runtime redistributable fr ...Show All
Visual Basic encoding issue in vb.net
I have vb.net app that requires input which is multilinugal data stored in SQL server in nvarchar field. For most of the time it works fine with forign languagaes. There are only couple of data items for which vb.net cannot understand data and " " is displayed inplace of actual character. When I open use SQL query analyzer I can see the characters in that languages. Since SQL query analyzer can show that data so I am assuming the data was correctly entered in database. The same vb.net code works with other chinese , taiwanese characters so nothing seems to be wrong with code either. Dose anyone know how to debug this problem. For database access I use ado.net... sqldatareader. So its when you are using the ...Show All
Visual Studio 2008 (Pre-release) Markup Extension for Booleans
Hi, Is there a markup extension that allows me to insert boolean values into a property value Something like: <Class Property="{x:Static true}"/> Thanks, Kent No markup extension that I know of. But you should be able to istantiate Booleans directly like this: <Class> <Class.Property> <sys:Boolean xmlns:sys="clr-namespace:System;assembly=mscorlib">True</sys:Boolean> </Class.Property> </Class> - Doug ...Show All
Windows Networking Development GETTING MORE THAN ONE INTERFACES...
Hi All, I am not familiar with Traffic Control API yet. I was able to compile and run the code I created using Visual C++. The problems are the following: (1) There're two interfaces enabled (3Com EtherLink XL 10/100 PCI and Intel(R) PRO/1000 MT). When I call TcEnumerateInterfaces, my program only gets information about the first one. If I disable that one, the program gets the second one. Also, tcmon.exe recognizes both interfaces. The code is the following: TC_IFC_DESCRIPTOR InterfaceBuffer[20]; PTC_IFC_DESCRIPTOR pInterfaceBuffer = &InterfaceBuffer[0]; ULONG BufferSize = 20 * sizeof(TC_IFC_DESCRIPTOR); result = TcEnumerateInterfaces(ClientHandle, &BufferSize, pInterfaceBuffer); Question (1 ...Show All
Visual C# how do i convert a string into an arraylint?
hi.. i have an array list called students.. i need to add all students in my database into this arraylist.. thats easy but the problem is i need each student to be an arraylist (jagged arraylist)... is that possible ! i tried to do it like this but it didnt work.. if (socketData.clientID == reader.ReadElementContentAsString()) classes. Add((ArrayList)socketData.clientID ); <=== "Cannot convert type string to arraylist" im open for ideas.. peace. Im sorry maybe i wasnt clear... what i need to do exactly is this.. server starts.. server goes to database... retrieve all classes.. insert each class into the "classes" arraylist.. BUT i need each class added to the array list to be an arraylist obj ...Show All
Visual Studio Express Editions releasing resources question
Hi, i'm moving an Image object around with the MouseMove event, and I have a Graphics object which draws the image in a Rectangle object. Do I need to release resources - such as the dispose() method My pc crashed a couple of times recently, and I wondered if this had anything to do with it. Hi again, here is the main part of the code - ('pic' is the Image object, picX and picY are just int variables for the Image location, rect is Rectangle object) private void Form1_MouseMove( object sender, MouseEventArgs e) { if (e.Button == MouseButtons .Left) && CanMove == true ) { rect.X = e.X - picX; rect.Y = e.Y - picY; rect.Width = pic.Widt ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Access to Files on the 360's memory card / hard drive
I'm currently working on a game intended for Live Arcade (hopefully) in C# and Managed DirectX. The game allows the user to select music from their music collection and bases the game behavior on the selected music file. I am intending to convert it to XNA at some point in the near future and was wondering if there is a way to load a user-selected file on the 360. I would imagine that at least the normal programming kits can do this, and was wondering if XNA will allow me to do something similar to wrapping DirectShow functions in Windows to get an uncompressed audio stream, but on the 360. -Aaron If it works that way, is there a callback or something so that the game code would know not to bother playing ...Show All
