|
Are you learning VB6, or are you using the nasty VB6 hangover stuff instead of .NET ?
If the latter ( I think so ), there's a contains method on the string class.
Christian Graus - C++ MVP
|
|
|
|
|
StyleUK wrote: <> means equal too
<> means NOT equal to.
You want the ENTIRE content of the text file to be the password? Why did you choose to do it like this? It'll be plainly readable & editable outside of your app - not secure at all, you may as well not bother asking for a username/password.
What functionality do you want to implement? Does the app really need that level of security?
|
|
|
|
|
Hey All,
Can anyone help. I need to produce a simple 2D pie chart in a seperate form that links to the main form where 3 figures are put in and then used to create the pie chart.
I have no idea about VB.net and it needs to be coded in this language.
Can anyone help or point me in the right direction, it's not a hard problem just I simply have no idea how to go about it!!!
Thx All
|
|
|
|
|
I have created a main form that the figures are input and this works. Also greated a blank form. I just need to have an idea on what to put!
I hope I have explained this well enough, it's as simple as it sounds!
Thx Again
|
|
|
|
|
|
Bumped into a nice (think VS2005) coded Ordering System a while ago available with source code.
Would be a nice start to build on : I remember it had large buttons on the left side with the
customers name in order to view order details etc.
Does anybody know what I'm talking about and where I can find it.
Tips very welcome
FanciscusBE
|
|
|
|
|
Are you talking about the same kind of side menu that Windows uses, or something more like this?
Any chance that you could find an example?
|
|
|
|
|
It looked more like a large-button menu on the left side with the customers name. I'm sure it also was on a developer site with vb tips etc.
thanks.
FranciscusBE
|
|
|
|
|
|
That is very close to what it looked like!
FranciscusBE
|
|
|
|
|
Ok, just create a ToolStrip and dock it to the left (or whatever side you want to have it on.) Now set the Image Scaling Size , which adjusts how large the icons are.
|
|
|
|
|
Hello,
Can someone give me some instructions along with some code on how to insert icons into a listbox so that icons are on the left and a string on the right.
Thank you,
Yoshi
|
|
|
|
|
Create an ImageList , then set the images that you want to appear in the ListBox. Then in the ListBox, set the Image Index (images set in the ImageList) to each item.
|
|
|
|
|
Thanks, if it helps I am using the same icon for all the items in the list box, need I use an image list still?
Can you please explain what do you mean by "Then in the listbox, set the image index(images set int the ImageList) to each item."
Thanks,
Yoshi
|
|
|
|
|
Sorry, I thought you were using a ListView, not a ListBox. You can try using a ListView for your project, it does pretty much the same thing, but with more options. And you cannot set images in a ListBox.
If you do use a ListView, open the Item Edit menu and for each item there will be an "Image Index" item, then just select the image you want (a list of all the images you have set in the ImageList will appear).
And yes you still need an ImageList even for a single image.
|
|
|
|
|
Hi , i have the following situation. I have a picturebox with a image in it (like a normal picture with a size of 48x48 pixel)
now i wanna paint a shadow to a given direction an strengt.
for example i say the light comes from left and the shadow should be right and 5 pixels big (something like the shadow functions in paintshop or photostudio)
the pictures are png's with alphachannel. how can i resolve the above problem ?
greetings
|
|
|
|
|
Shadowing the picture or the picture box?
|
|
|
|
|
Hi, the picture in the picturebox ..
|
|
|
|
|
Personally, I would create a new control where you can control the painting procedures. In this control I would of course have the property of the image to shadow. Then in the paint event I would first draw the shadow of the image using ControlPaint.DrawImageDisabled(...) and then draw the slightly displaced image overtop of the shadow using the g.DrawImage routine (g is the Graphics object of the paint routine). I'll try to look for some code from a project that I just created that paints a shadowed image and post it. I would not even consider using shadows with a picturebox, it can only lead to trouble.
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 homepage Oracle Studios[ ^]
|
|
|
|
|
Hi Thomas, did you already post the code ? or could you send it me by mail. many greetings martin
|
|
|
|
|
This code is in C#, but I am sure that it can easily be translated. This is code that is contained in a screen saver presentation that paints 3 random images with a random quote specified in a particular directory:
public void DrawRandomImage(Graphics g, Rectangle rect)<br />
{<br />
if (usedIndexes.Count > currentImageIndex && bitmaps.Count >0)<br />
{<br />
if (showEffects)<br />
ControlPaint.DrawImageDisabled(g, bitmaps[usedIndexes[currentImageIndex]], rect.X + 5, rect.Y + 5, Color.Transparent);<br />
g.DrawImage(bitmaps[usedIndexes[currentImageIndex]], rect);<br />
currentImageIndex++;<br />
if (currentImageIndex == 3)<br />
currentImageIndex = 0;<br />
}<br />
else<br />
g.FillRectangle(new SolidBrush(Color.Black), rect);<br />
}
The variable bitmaps is an array of bitmaps that were read in from a specified directory. Basically replace the entire array with one image if you so choose. The two key parts of this code is:
ControlPaint.DrawImageDisabled()
which will draw a grayscale image which then can be offsetted from the image drawn with the g.DrawImage .
If you need further explanation just ask. This explanation may seem a bit jumbled.
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 homepage Oracle Studios[ ^]
|
|
|
|
|
Hi, iam looking for a real transparent picturebox. i wanna have a picturebox (that, when i place it on a form or over another picturebox , the background is visible)
i there already out a solution ?
greetings
|
|
|
|
|
Have you tried
PictureBox1.BackColor = Color.Transparent
Jonathan Sampson
www.SampsonResume.com
|
|
|
|
|
Yep , that was on of the first things i have tryed. but not with the result i want.
|
|
|
|
|
Could you take a screenshot of the result you got, and maybe post the code you used?
Jonathan Sampson
www.SampsonResume.com
|
|
|
|