sassankz's Q&A profile
Visual C# how to convert array into an array of bytes?
Hi, I'm busy in C# trying to send an array (of string) structure from a server to a client app. I cannot find anywhere how to do this. Im using sockets to do this. but there isnt any method to convert the array into byte[]. Any suggestion would be appreciated. byte[] buffer = System.Text.Encoding.ASCII.GetBytes( "Diego" ); You can use Unicode if your string contains non-ASCII characters. Another handy method is int System.Text.Encoding.ASCII.GetByteCount( string ) if you want to make buffer calculations before the conversion takes place. Regards, Diego Gonzalez Lagash Systems SA ...Show All
Windows Forms Problem with datagrid refreshing to selected item
Here's my problem: I have a Windows form which contains a listbox and a datagrid. The listbox populates various xml files stored on the hard drive. When the user clicks on a particular file, it pulls the data from the xml file, and places it into the datagrid. Sometimes, there are tons of information within the xml file, and the rows in the datagrid can become long. Therefore, there is a scrollbar to scroll to rows not fitting in the datagrid area (as a normal scrollbar is intended to do). The datagrid refreshes every two seconds to gather info from the xml file, in the instance that someone edits the xml file ...Show All
Windows Forms DateTimePicker focus problem
Hi, I have a DateTimePicker control that is embedded in a DataGridView. I would like to programmatically manipulate what part of the DateTime is highlighted. For instance, depending on certain circumstances highlight the month, or sometimes highlight the year. So far the only solution I have is to use SendKeys, for example: SendKeys .Send( "{RIGHT}" ); This work must be submitted to the head designer, and she is very strict. I would rather not present a SendKeys solution, if anyone can help me do this another way I would appreciate it. Thank you, Eric ...Show All
Visual Studio CCTV software crashing with window
Hello.... I'm using a cctv software on my server. But the system will automatically shutdown. Below is the event propeties: Date: 4/5/2006 Source: Application error Time: 7:08:30PM Category: None Type: Error Event ID: 1000 User: N/A Computer" SJ-CCTV Description: Faulting application dvrsystem.exe, version 3.1.415.0, faulting module savemanager.dll, version 3.1.415.0, fault address 0x0000f635. Anyone please help me on this..... thanks Kang ...Show All
Visual Studio Express Editions A small complaint from nobody
I have long been a Visual Basic coder. I read C++ quite well but really struggle to write it. Primarily because nearly every "example" I try to compile, will not. This makes it nearly impossible to understand how things are put together. Most of the time I can't figure out if I am formating my code the wrong way or just don't have one of the many compiler or references set correctly. So if anyone at Microsoft is paying attention, or cares. Would you please figure out how to make an entry level IDE for VC++, that has examples that compile right out of the box. I don't understand why this has to be so complicated. As near as I can ...Show All
.NET Development connection to access db
HI people, i have visual studio B2. i try to connect to a access data base with control bidingsource but after i select witch table i want i’ve get this error: "Some updating commands could not be generatied automatically. The error message was: ERROR [HYC00] [Microsoft] [ODBC Access Driver] Optional Feature not implemented" Any sugestions Thanks Yupypt Other than your connection string...I'm not sure where the problem is. Please post a full block of code, and maybe we can help you. Adamus ...Show All
Visual Studio Express Editions Icons
This isn't really relevant but does anyone know any free software (downloadable) that lets you creat icons to save as the ico. format or atleast save jpegs to ico. The best one is probably microangleo , which works as free trial. Otherwise there are lots of runners' up in second place, as usual, google is your friend. ...Show All
Windows Forms Whenever I try to introduce an animal i get a stack overflow in terrarium.exe
Does anyone know what might be the issue with this THanks, Paul Tyng Well try to create some good bug then ..... :) like one we have got Terr(o)rium :) lolz..... I was so enthu about this stuff when I first read about it on web, the very same day I got .NET 1.1 (by that time the old version was removed from the site),& ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Parsing .X file
Has anyone can help me with parsing the .X files , using the (last) D3DXFileData interface.!!! I have found number of forums that discuss about this subject, but i did not see any usefull code. If someone can help me i'll be very greatfull....... Best regards Adrijan.... Have you tried looking at the "X File Format Reference" in the SDK Documentation It gives you a huge amount of detail on how to parse X files. In addition, you might want to look at the source to the "DirectX Viewer" utility, that is also in the SDK. ...Show All
Visual Studio ReportViewer drillthrough in WebForms looking for .rdlc instead of .rdl in Local processing
I am creating a ASP.NET application for reporting. I have created the reports (.rdl) using the Report designer. I keep all these .rdl files in a folder and this reporting application will list these reports. Clicking on a report will generate the report. I am reading the rdl xml to get the query and query parameters, then retrieve the data and add datasource to the LocalReport. This is working fine. In the drillthrough event I get the original drillthrough parameters and retrieving the data and setting it to the drillthrouh report. But it the report is looking for the .rdlc file. Just for the time being I renamed the .rdl file to have the .r ...Show All
SQL Server Connection managers - OLE DB
Hi There Quick question.In DTS when you had multiples tasks connecting to the same Database, it was reccomended that you create multiple connections for the same database and let each task use a different connection, thereby making a new connection for each one. In SSIS if i define 1 OLE DB connection to a database, but i have say 6 tasks using that connection that run simultaneously, does eachone open a new connection to the database to make it more efficient Or do i still need to define multiple connections to the same database and assign each task a different connection Thanx Did you have retain same connection set to true I don't h ...Show All
.NET Development ASP.NET 2 beta 2 COM Interop trouble
Hi, I'm having trouble while deploying an ASP.NET 2.0 beta 2 application using COM Interop on a windows 2000 server machine. COM instanciation works fine but always fails when it uses another COM dll (imbricated call). Works fine on a windows 2000 pro. Any suggestion No problem at all. Since the Forums are on different hosts/servers, it's understandable :) Also, Shawn Farkas wrote a great FAQ for the forums, available at: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=81136 Thanks, Stephen http://blogs.msdn.com/stfisher ...Show All
Windows Forms Large text files on textbox\richtextbox
Hello. I’m trying to find an edit control that have syntax high-light features, search, breakpoint etc. but the main feature I need is that is should support large text files (10-20MB). Does anyone knows of such control or there is none and I should just right it out from scratch Maybe there is a way to improve the RichTextBox to handle large files If I used the code: string [] text = File.ReadAllText(fileName); richTextBox1.Text = text; The program gets stuck on the second line for large files. Thanx Eli. I've tried that... The application get stuck on ...Show All
SQL Server Random access in a result set
I use an SQL task to produce a result set which I store in a package variable. It works fine to access the result set in a script task by first casting it to a ADODB.Recordset, and then enumerating it and accessing the rows in the given order. But is there a simple and clean way to randomly access the result set In other words to repeatedly select a random row from it One thought I had was to convert the result set to some sort of array which can be randomly indexed. But I didn't find out how... I'm not interested in creating an array by looping through the whole result set and inserting the row ...Show All
Windows Forms Z-order of OwnedForms
Is there any native .Net way to determine the Z-order of the forms contained in the OwnedForms collection or must I revert to Win32 API's Thanks, Ray Manning ...Show All
