John Selnekovic's Q&A profile
Visual C# Hardware Information
Hi , I want to display some hardware information and I wrote this code. ManagementObjectSearcher searcher = new ManagementObjectSearcher(); foreach (ManagementObject processor in searcher.Get()) { Processor.Text = processor.GetPropertyValue(Name.ToString); } But I get errors , what did I do ...Show All
Smart Device Development how to convert a byte[] to DateTime format and vice versa
I can noly read 8 byte[], this has to be converted to DateTime format. vice versa also.. Thanks Vinay You can use System.Runtime.InteropServices.Marshal.PtrToStructure() and StructureToPtr() to do that. Or you can construct array of 8 bytes from 64 bit tick value (and 64 bit values from 8 bytes) using some shifts, ORs and ANDs. ...Show All
Visual Studio Express Editions Using a couple of special characters
For christmas, I made a "flash card" program in C# for my brother. The program basicly loads a spanish word and an english word from a text file and displays one after another (as in a flash card). It all words very well, except when there are characters such as n or e ... it displays them as blanks. With all the functionality stripped out this is what I am doing: TextReader textReader = new StreamReader(@"c:\dictionary.txt"); String line = textReader.ReadLine(); theLabel.Text = line; Now, my question is how make the program support a few of the characters that are currently not being supported. The text file is made in n ...Show All
SQL Server Data type conversions
I am just starting to lean and use SSIS to get data from an AS400 DB2 database. (I also posted this question to the SSIS newsgroup). It all works for columns that are just a data type of Character, however I am having a problem with the Numeric data type. I keep getting an error "column cannot be inserted because the conversion between types DT_NUMERIC and DT_R8 is not supported." In SQL, what do I need to declare the column datatype as I have tried several. Thanks for the information. ...Show All
Visual Studio Matrix :: The background Image
Hi, I've got a Matrix and I've added a sub total row to it. This is like a footer of the matrix and I've to add a background image to it. I tried applying the BackgroundImage property to the MatrixRow but it added the background image to the row header only. I've got 3 columns and the totals for these columns appear without the background image. So I tried applying the BackgroundImage property at Subtotal field. It still doesn't work. But when I applied the BackgroundColor to the Subtotal field, the background color is displayed for all the columns in the subtotal row. How can I set the BackgroundImage Now I've added a sub ...Show All
.NET Development Web service on my localhost
Hi all, I want to give others to call a webservice on my localhost. I mean, I want my PC active like internet server to internet clients. Is it possible. Please help... It should be possible but is also depending on what operating system you have installed. I am using Windows XP Professional SP2 and can run local webservices for remote usage. The firewall needs to be opened and IIS with .NET set up must be installed. If you can access it locally it should be reachable from remote clients if security settings permit it. If you do not have a server operating system there is a limit on the number of concu ...Show All
.NET Development DataType is not shown after serialization
hi, When I am serializing the array of following ParameterValueStruct class i didnot get 1> the type and size of array. 2> DataType of each element. It is especially needed in case of 'anyURI' DataType. I am using serializer class of XmlSerialization namespace of .NET framework. public class ParameterValueStruct { [XmlElement (ElementName = "Name")] public string parameterName; [XmlElement (ElementName = "Value")] public ParameterValueValue parameterValue; } Example of what am getting! ========================== <cwmp:ParameterList > <cw ...Show All
Smart Device Development File I/O
I'm trying to use file I/O functions to log debugging statements that I can view on the handheld. The code I got from msdn seems to do the trick except when I open the file on the handheld, PocketWord only displays the first character I write to the file. If I copy the file to the desktop, everything I wrote to the file appears as it should. My code for all of my file I/O is as follows: BOOL LogStartup ( void ) { HANDLE file; TCHAR szFileName [MAX_PATH]; memset (szFileName, 0, MAX_PATH * 2); wcscpy (szFileName, TEXT ( "\\folder\\logfile.txt" )); file = CreateFile (szFileName, GENERIC_WRITE, FILE_SHARE_ ...Show All
Visual C# Writing a Graphic to file
Hi everyone, a graphics question for you: I have a graphic (not an image) and I'd like to write it to a file. The image class has a save method that takes a file name the graphic class has simply a save method (no paramters). I've tried casting my graphic to an image but it doesn't seem to like it, can anyone tell me how I can write my graphic to a given filename thanks in advance, Ed. Hi How can I put a Graphic in a Bitmap Thanks ...Show All
Windows Forms Need help creating "arbitrary text entry" control
Hi everyone. I'm looking to implement a RichTextBox-style control, but which allows for somewhat arbitrary cursor placement and text entry, as well as selection of multiple "disjoint elements." Basically, it should function like the Microsoft Equation Editor (comes free with MSWord). The editor allows you to enter some text, then if you desire a fraction ...Show All
Software Development for Windows Vista Where is the WAIK?
I keep reading that the WAIK is one of the updated things in the 5308 build. I have looked everywhere and I can't find an install for it. Does anyone know where I might find it Need to find WAIK to test out Vista deployment tools....I have searched connect.microsoft available programs but it's not there! Please help!!! ...Show All
Windows Forms C# ArrayList to capture selected items in a listbox
I have a listbox popluated from a dataview. The user can selecte multiple items but I'm having trouble saving each selected item in an Array List. I have a method to fill the listbox: DataView dv = new DataView(SqlHelper.ExecuteDataset(cnIPDAdmin, CommandType.StoredProcedure, "gsp_GetCust").Tables[0]); lbxCust.DataSource = dv; lbxCust.DisplayMember = "CustomerName"; lbxCust.ValueMember = "CustomerID ...Show All
Visual C# He need some help with authentication
Im trying to design a login form that will check against a SQL database to see if the username and password are correct. Could some one please supply some sample code of how i would do this. Thanks, Greg Are you working on ASP.net 2.0, check the following link http://www.asp.net/QuickStart/aspnet/doc/ctrlref/login/default.aspx ...Show All
Visual Studio problem with SS utility
Hello I have ssexp.exe version 6.0c build 9447, and ss.exe 6.0c build 9350. In Dos prompt I type: ss Checkout $\sv201\db\dbcmd.cpp -IC -c- The file is checked out (I can see it when I hit F5 (refrash) at the UI VSS) The problem is that the attrib of the file stays read only. I type again ss Checkout $\sv201\db\dbcmd.cpp -IC -c- I get "You currently have file $/sv201/db/DBCMD.CPP checked out." But I can't edit the file cause it is still read only!!! Any hints Thanks OM The location where ss.exe checks out a file depends on Force_Dir variable defined ...Show All
.NET Development WebClient and ports other than 80
How do i get WebClient functions to work with web pages that are not port 80 Nothing is even sent CheckFinalStatus() of WebClient throws the error, thus nothing is sent I checked with netmon and nothing was sent I already said in a previous message that CheckFinalStatus() was throwing the error have never tryed port 8080 but as one guy said 8080 seams to work, but none of the sites i want to scan are port 8080 I can setup an iis 6 web page on a port other than 80 and 8080, and webclient throws a error as to HttpWebRequest it throws the same error The setting mod seems to work, but i dont li ...Show All
