Open up note pad, hold the left control and press backspace. You will produce a rectangle box character which i am not sure if it has any function or not in the operating system but when i pull data from my database, these characters appear where i believe are to be carriage returns.
is there a way to parse/seperate those garbage characters out while still leaving them in the database? If the data is bound to a richtextbox control, the text appears formated with carriage returns correctly
is it possible that the data is Unicode and you're treating it as normal ascii, or vise versa? i've accidently set varchar columns in the db to use nvarchar and it did some wierd things until i changed it back. they could also be special formatting characters that work in rich text, but a singleline textbox cant show them.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
you could use regular expressions to filter the output for testing(until you figure out whats wrong) and only allow certain characters or classes of characters and see what fixes your problem, it isnt a very good permanent solution but it should let you quickly see what is causing the problem and figure out a way to prevent it from bieng loaded into the db or find a way to quickly get rid of it.
If you want to see the items of the collection as child properties in the grid, you need to assign your collection property a TypeConverter that will publish the items as properties (override GetPropertiesSupported and GetProperties).
I'm trying to find out if this is possible, and if so how to do it. From a machine running XP or Vista, as I understand it, when you send something to print, Windows/the print drivers render the file into a format the printer can read and understand (a spool file?). This file is sent to the printer then the local copy is deleted. I believe this file is held briefly in the 'C:\WINDOWS\system32\spool\PRINTERS' folder, which is effectively the shared print queue folder. for all printers on that machine.
My question is whether you can capture this 'raw' spooler data (I've managed to copy and paste to capture the files that appear in the spool folder, but you have to be fast!), and crucially, once you've captured it, can you then somehow send it to print again?
I have a feeling this is more complicated than I think. Presumably there are different formats of spooler data etc? Is there a utility that can do the printing/viewing of captured files?
You could write something to monitor that directory and capture files that were created. I'm not sure if your copy of those files would cause problems in the printing process if the file is in use (the program copying it) when it is attempting to be deleted.
There are ways to send the raw files right back to the printer to print again. But you need to realize that each printer has its own language. The Windows printer drivers take the documents and convert them to the language of the printer. So I'm not sure you could create something generic for all printers...
Get the Ipaddreses of your lan first u can use command "net view" it gives the machine names of all your network , then get the corresponding ipaddress of each machine, then combine ipaddress combination with your port list and ping, if u got answer then u have the correct ipaddress.
i think you misunderstand how IP addresses and ports work
think of a street with 10 buildings, each building has 10 flats and each flat has its own mail box. Now in this example the IP would be the buildings physical address and the port number would be the flat number.
an IP points to a physical machine on a network and a port points to a specific service on that machine.
Harvey Saayman - South Africa
.Net, C#, SQL
No you don't. All you have is the IP of a server with that port open. You may have multiple severs with the same port open. All of your servers may have that port open. You don't know you've got the one you were looking for.
There is no way to resolve a port address to an IP address.
I have a program that tests DB tables. As these tests can take up to several minutes, I want to outsource them into other threads, to at least give the user to possibility to abort them/exit the application.
It's not intended that the user can execute several tests at a time, so I actually only need the main thread in which the Windows Form is running and a single worker thread that performs the test.
My main problem is that I run the test table by table in a loop and each time a table has finished testing, several dictionaries and controls are updated.
When the tests is performed by another thread, it means that the user can access the same dictionaries the testing thread is updating.
So far I just tried to get the testing thread running and allow the user to abort it but I didn't have much success yet.
I used the Windows Forms Invoke Method but that doesn't seem to help much, as the GUI still doesn't respond until the test is finished.
Could you tell me what approach would be best?
Should I use a ParameterizedThreadStart that gets passed a list of all dictionaries?
And how would I go about updating the Windows Forms controls? Create some event that is fired when a table has finished testing?