I can get data from SQL to datagridview, textbox and combobox objects.
I can edit or view any data from or to database with the above objects!!!
But not to StatusStrip, at least not directly!!!
I get the data from sql to other object, and then pass it to statusstrip.
Is there a direct way? like the other object. statusstrip doesn´t has a datasource
Hi, I am very new to C# but I am modifying an image buffer directly within memory, I am scanning along moving the pointer to get the RGB of each pixel, but I need away to jump around the image memory and read the pixels at random rather than just p++ or p--?
byte* p = (byte*)(void*)pBuffer;
for(int y = 0; y < Height; y++)
for(int x = 0; x < Width; x++)
int srcB = p;
int srcG = p;
int srcR = p;
Hi, the problem is I have only used Blitz Basic before and I could jump to a pixel, eg GetColor(129,280)"Width,Height", with pointers I have to scan along the image for the data, I dont know how to jump to the pixel data I want?
For a 24 bit bitmap, the location of a pixel can be calculated with:
scan0 + y * scan + x * 3
(Note that for a bitmap that is stored upside down, which is the common way, scan0 points to the last line, and scan is a negative value.)
Your code for looping the image is incomplete. The lines might not be stored end-to-end in memory, you have to skip any extra bytes between the lines (calculated by scan - x * 3). Also, if the bitmap is stored upside down, you will either get the data upside down, or only getting garbage after the first line read.
Despite everything, the person most likely to be fooling you next is yourself.
when the last reference to an object (such as a byte array) is given up, the object becomes collectable.
byte myArray=new byte;
myArray=new byte; // old array is abandoned
myArray=null; // second array is abandoned
} // third array is abandoned (myArray out of scope)
Collectable means the garbage collector, when it decides to run, would find and collect the object.
However it will only run when there is a need to run, unless you force it with one of the GC
methods. Doing so is almost always a bad idea, since a GC run is costly, and temporarily blocks all
the threads; therefore the GC should only run when necessary, i.e. when there isn't enough
free memory to satisfy a new SomeThing() request.
I have an application in wcf with dualHttp
Is there a way to know if the server is shutting down suddnly unexpectidly like if some one do a restart?
Is there a way for the server to knmow if the same thing for the server to know if the client shuts down unexpectedly?
Now since I have got the report working and displaying properly, I'm struck @ this thing and I've got lots of confusion revolving this.
I've got a table with 5 fields in which date was splitted in 4 columns as DD, MM, YY1 and YY2. Using dataset (C#.Net), I've added a new column and concatenated these 4 fields into one and made it look like a date field (mm-dd-yyyy) and this field is a String field. Now the actual problem is that I want to display report based on a Date Range Selection from my Form (i.e 2 Textboxes for Start Date and End Date). I've not much clear idea as how to proceed validating the records as it can't be done at the database level since my database doesn't have anything like a Date Field.
Any suggestions would be highly appreciated.
Last Visit: 21-Oct-20 4:19 Last Update: 21-Oct-20 4:19