|
hi every one
how to add control to gridcontrol with syncfusion
|
|
|
|
|
You should ask your question in the SyncFusion forums.
Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon
Judah Himango
|
|
|
|
|
Hola gente, como andan?...
Tengo un gran inconveniente y en ningún lado puedo encontrar la respuesta. A ver si me ayudan.
Necesito crear una búsqueda de Pacientes que se encuentran en un Datagridview. Como lo puedo hacer?. Estoy trabajando con C# en .NET.
Dejo una imagen del formulario que estoy usando para tal fin: http://img21.imageshack.us/img21/9820/buscars.png
Espero que alguien pueda ayudarme.
|
|
|
|
|
This is an English speaking site.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hola Hola Jingalala Jingalala Twinkle twinkle little star Hola Gente mente tente lingrie! How's that ?
|
|
|
|
|
Why you don't search for filter proeprties of Datagridview.
Check this.[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
I have just started working in c# so I'm not that familiar with it. Still, I need to build a paint program and I am a bit stuck at Flood Fill. I want to be able to fill areas with an undetermined shape, so I used the SetPixel command, but it sets only one pixel (I'm not entirely sure of this).
For now, I try to change the color from white to one I pick myself. I call the function in the MouseDown function, and I think it should work.
Please help!
bmp = new Bitmap(pictureBox1.Width,pictureBox1.Height);
private void FloodFill(int x, int y)
{
bmp.SetPixel(x, y, DrawColor); //sets the color of the pixel to DrawColor I picked
pictureBox1.Image = bmp; // assigns the bitmap to the picture box; I work with it to be ale to save the picture
if (bmp.GetPixel(x + 1, y) == Color.White) //all four search for each white pixel
FloodFill(x + 1, y);
if (bmp.GetPixel(x, y + 1) == Color.White)
FloodFill(x, y + 1);
if (bmp.GetPixel(x - 1, y) == Color.White)
FloodFill(x - 1, y);
if (bmp.GetPixel(x, y - 1) == Color.White)
FloodFill(x, y - 1);
return;
}
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
{
startPoint.X = e.X;
startPoint.Y = e.Y;
FloodFill(e.X, e.Y);
pictureBox1.Image = bmp;
drag = true;
}
|
|
|
|
|
You will have to setup a loop so that more than one pixel is changed.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
You should not be setting the picture in the picture box inside your recursive function. There's also flood fill methods in GDI, perhaps you can p/invoke one of them ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
k_crysa wrote: I want to be able to fill areas with an undetermined shape
As for "undetermined shape", do you have access to the points used to define/enclose the region? If so, you may be able to use the System.Drawing.Drawing2D.GraphicsPath [^] or System.Drawing.Region[^] classes to fill your area. At the bottom of each of these pages is a link to "Members" of each class, so you can see the functions and properties available. I seem to remember there being a simple "Fill()" function, but can't find the reference to it right now. For performance reasons, it's usually best to avoid setting individual pixels if at all possible.
I could be wrong, I may be thinking of the FillMode, which might be different that what you're looking for. Anyone know if I'm on the right track here?
Hope this helps
Dybs
|
|
|
|
|
Hy Guys,
I am trying to do my first c# project. Its a calculator like the one windows has. I still have a long way to go and i was looking for some pointers , tips that you may suggest.
Please find the whole project by following the lok below.
http://freestorage.ro/calculator_visual.rar
Regards,
Alex
|
|
|
|
|
al3xutzu00 wrote: I still have a long way to go and i was looking for some pointers , tips that you may suggest.
What are they ? BTW I doubt that nobody gonna download the link you posted. You better ask questions instead of showing what you've developed...
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi,
I have a basice question.
Im showing some data in datagridview control. One of the columns is of the type combobox.
When populating this combobx with data, i want that the first item is selected.
How can i do that?
Thanks.
|
|
|
|
|
Hi,
After you have initialized the combo box with values try using this :
[combo_box_name].SelectedItem = [value]; .
(without the brackets)
It works for me. Is this what you were asking?
Regards,
Alex
|
|
|
|
|
Combobox.SelectedIndex = 0; is more accurate. As well as check if Combobox have items. eg
if(Combobox.Items.Count != 0)
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I'm sure the title is confusing, but here's what I'm trying to do: I have a process that I create using the System.Diagnostics.Process class, and I want the memory the application uses to be read-only to all external applications except mine, that starts the process.
Does anyone know of a way to do this?
|
|
|
|
|
Well, its not possible.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Not possible. Windows doesn't support what you want to do.
|
|
|
|
|
I see, well that's disappointing. I guess I'm going to have to go about this a different way then.
Thank you.
|
|
|
|
|
I'm not sure what you want, but isn't memory from other processes always read only unless the process using it explicitly shares it? The problem isn't other apps snooping at your 2nd processes memory, it's that unless #2 cooperates you can't snoop either.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
dan neely wrote: I'm not sure what you want, but isn't memory from other processes always read only unless the process using it explicitly shares it? The problem isn't other apps snooping at your 2nd processes memory, it's that unless #2 cooperates you can't snoop either.
What I was hoping to do is create a process and then disallow any other process from modifying the memory allocated to the process I generate aside from the process itself, and the app that generated the process.
I don't think that process memory is protected like you say, as game trainers and the like wouldn't be nearly as abundant if the memory was write protected.
|
|
|
|
|
Fyrecrypts wrote: What I was hoping to do is create a process and then disallow any other process from modifying the memory allocated to the process I generate aside from the process itself, and the app that generated the process.
Could it be an option to spawn a remote process? I cannot snoop memory that's on a computer that I have no access to
I are troll
|
|
|
|
|
Eddy Vluggen wrote: Could it be an option to spawn a remote process? I cannot snoop memory that's on a computer that I have no access to Smile
Unfortunately, no, that is not an option. Although, a great idea if it was an option.
|
|
|
|
|
Can I determine CPU/RAM useage percent when use Thread in Windows Service?
For example I want to allow max %10 CPU usuge for this thread?
|
|
|
|
|
Hi,
there are no provisions for limiting a thread's CPU usage.
You could throttle it yourself by adding some Thread.Sleep() calls.
On a multi-core CPU with N cores each thread cannot take more than 1/N of the available cycles, so on a dual-core a thread's maximum would be 50% anyway.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|