|
Any way you like. Are your products in different departments? Or come from different vendors?
|
|
|
|
|
They are from Different vendors but most of them have same XML structure with same parent tags ie catalog and product. under product there could be different number of values but overall structure is same.
any ideas ?
Best regards
Rizwan Bashir
|
|
|
|
|
I was hinting that you could make separate files for each department or vendor.
|
|
|
|
|
hi friends..am stroing graphics..for example rectangle,ellipse,line,round rect etc each graphic in seperate object..so now i want to make invisble/visble using button click events..plzzzzzzzz help me...
txs in advance...
|
|
|
|
|
I wrote a simple code for help
Bitmap b1 = new Bitmap(256, 256);
Bitmap b2 = new Bitmap(256, 256);
Bitmap final = new Bitmap(256, 256);
Graphics g = Graphics.FromImage(b1);
g.DrawRectangle(Pens.Red, 0, 0, 150, 150);
g.Dispose();
g = Graphics.FromImage(b2);
g.DrawEllipse(Pens.Black, 100, 100, 50, 50);
g.Dispose();
g = Graphics.FromImage(final);
g.DrawImage(b1, new Point(0, 0));
g.DrawImage(b2, new Point(0, 0));
g.Dispose();
pictureBox1.BackgroundImage = final;
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi,
I am trying to create a tool using c# which hides and locks folders similar to LockBox. This means that the hidden folder will be invisible to EVERYONE when protected, and visible when a password is entered. In code project there is an example using windows shell folders which actually "locks" the folder - but the problem is that it still is 1) Visible and 2) accessable through windows command prompt.
Thanks a lot
|
|
|
|
|
Ok. I didn't see one question there.
|
|
|
|
|
He's just bragging. : )
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
|
Ups ... you're right... I was just last in thinking lol..
So the question is. Is there anyway to do this in C# without using the mentioned methods above in my first post?
|
|
|
|
|
Hello sir,
your question is interesting ....
Even iam trying with similar stuff...If your succeeded in doing this, please help me out.
Thankyou sir
|
|
|
|
|
I have a boolean value in a dataset bound to a checkbox control
If the user clicks on the checkbox I want to loop through the dataset and set the boolean to false for all other rows. In other words only one of the rows in the dataset/databinding can have the boolean field set to true.
How can I achieve this please?
I had thought to use something like:
foreach (DebtorDataSet.GuarantorRow grow in DebtorDataSet.Guarantor.Rows)
{
test this row against the current databinding.position/current somehow and set the boolean for this row accordingly
}
Not sure how to actually implement it though
|
|
|
|
|
DataSet never have Rows... what is DebtorDataSet.GuarantorRow ?? are you using 3rd party controls ?
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
My apologies. It is a datatable which is part of a dataset.
|
|
|
|
|
I dont understand your question
kanchoette wrote: ...bound to a checkbox control
If there is a checkbox then what ?
kanchoette wrote: ...set the boolean to false for all other rows.
other rows...
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
Just a suggestion, the functionality you mentioned is more of a radiobutton kind. Generally, checkbox is used to enable multiple selection and it could be misleading to use it for the usecase.
As I already said, it's just a suggestion
|
|
|
|
|
I agree that a radio button would make more sense, but I have to use a checkbox to fit in with the rest of my project. Any thoughts on how to go about it please?
|
|
|
|
|
i suggested checkbox as i think that it will automatically be handled. since,if you group a checkbox, only one can be set and others are reset automatically.
Edit - Saying that, I do not know how it will behave in databinding
|
|
|
|
|
I want to read an image and display its content in PictureBox es.
The PictureBox es get added dynamcally to a Panel (or is there a better control to keep them all together?) dpending on the image size.
The PictureBox es all have a size of 32x32 pixels.
If you ever used an rpg maker, I'm trying to make some map maker wher you can see the source image on the left side, select a tile and then edit the map on the right side with it.
I have 2 problems, first and foremost I added a ScrollBar to the control and to the Controls property of the Panel .
Obviously nothing happens when you scroll, though you are supposed to be able to scroll up and down when the source image is too large to display at once.
How can I get the ScrollBar to make the Panel display a different part of the source image, whenever you scroll?
I thought of clearing the Controls property of the Panel and always just adding the visible PictureBoxes (they all are stored in an extra collection), determining which ones are visible by Panel and PictureBox size.
Though, this would need calculations and have to be pixel-exact, if possible I dould like to avoid this and use a more elegant way.
The second problem is that I have a for loop which is repeated once for image width/32 (8 times, I intend to have a fixed width of 256 pixels) and adds a PictureBox everytime (again, 8).
The problem is that 8.5 PictureBoxes are display in width, the half PictureBox seems to be downscaled version:
http://i43.tinypic.com/snhyjc.jpg[^]
|
|
|
|
|
Megidolaon wrote: I added a ScrollBar to the control and to the Controls property of the Panel.
You dont need to put ScrollBar control in panel, just set AutoScroll Property of panel to True
Megidolaon wrote: I thought of clearing the Controls property of the Panel and always just adding the visible PictureBoxes (they all are stored in an extra collection), determining which ones are visible by Panel and PictureBox size.Though, this would need calculations and have to be pixel-exact, if possible I dould like to avoid this and use a more elegant way.
Try FlowLayoutPanel
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Thanks, the FlowLayoutPanel is exactly what I need.
Though, the second problem is there, the PictueBox es have a weird layout and weird images, what confuses me the most is that most of the tme it seems to work, but some seem corrupted.
This is the original image (256 x 2000 pixel):
http://i43.tinypic.com/10qjng4.jpg[^]
This is what the PictureBox es look like(the black lines are the PictureBox es' FixedSingle Border):
http://i42.tinypic.com/1677e44.jpg[^]
The code I use to assign the images to the PictureBox es:
g.DrawImage(resource, new Rectangle(0, 0, 32, 32),
new Rectangle(32 * i, 32 * k, 32, 32), GraphicsUnit.Pixel); Where i is the counter for the height(0-7) and k is the counter for the height (0-63).
I have 2 nested for loops, the outer one for the width and the inner one for the height.
I store the PictureBox es in a Dictionary<point,picturebox>; . I already checked but I create a new Point for ever PictureBox and the coordinates are unique.
modified on Thursday, February 26, 2009 3:48 AM
|
|
|
|
|
you mean the half gray square is the problem ? if yes then I just noticed something that this is happening after every 8th boxes...in other words its happening at the end of patterned boxes. Its hard to findout problem without seeing code...
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
ok, this is the code:
for (int i = 0; i <= width; i++)
{
for (int k = 0; k <= height; k++)
{
if (i == 7 && k == 15)
{
this.Text = this.Text;
}
g = Graphics.FromImage(memory);
coordinate = new Point(i, k);
pictureboxes.Add(coordinate, new PictureBox());
pictureboxes[coordinate].Height = 32;
pictureboxes[coordinate].Width = 32;
pictureboxes[coordinate].Visible = true;
pictureboxes[coordinate].Anchor = AnchorStyles.Left | AnchorStyles.Top;
pictureboxes[coordinate].BorderStyle = BorderStyle.FixedSingle;
pictureboxes[coordinate].Margin = new Padding(0);
pictureboxes[coordinate].Location = new Point(32 * i, 32 * k);
pictureboxes[coordinate].MouseDown += new MouseEventHandler(OnLeftDown);
pictureboxes[coordinate].MouseDown += new MouseEventHandler(OnRightClick);
g.DrawImage(resource, new Rectangle(0, 0, 32, 32),
new Rectangle(32 * i, 32 * k, 32, 32), GraphicsUnit.Pixel);
pictureboxes[coordinate].Image = new Bitmap(memory, new Size(32, 32));
FLP_Resource.Controls.Add(pictureboxes[coordinate]);
}
FLP_Resource is the FlowLayoutPanel and pictureboxes is a dictionary[Point, PictureBox] in which I store the PictureBox es.
Since you can't choose which part of an image is assign to a PictureBox , but can only assign the whole image, I used a Graphics object to draw a certain part of the source image on a memory Bitmap (which I will later resize and use for double buffering).
I first get the desired part of the source image and then assign it to a PictureBox .
|
|
|
|
|
well I really dont understand what you want actually but I'm sure you are making this very complicated. Why you are using Dictionary. You can use List<PictureBox>.
Megidolaon wrote:
Since you can't choose which part of an image is assign to a PictureBox
what that mean ?
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|