|
Are you using Visual studio to create icon? If yes I would suggest use some other software to create the icon. I struggled with the same kind of problem,but got rid of it using some freeware icon generator tool(I do not remember the name of that software). you will get it on the net for free
|
|
|
|
|
Personally, I use IcoFX. It's freeware and has many useful features (such as extracting icons from existing files).
|
|
|
|
|
I use IcoFX if that's any help
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Well thank you so much! It turns out that with IcoFX the icon works well.
|
|
|
|
|
Hi,
I have a winform that has a grid linked to a bindingsource. The winform also has a usercontrol on it that also contains databound data linked to the same datatable but via a different bindingsource.
There is a definite need to have the separate usercontrol although life would be much easier without it <sigh>. The usercontrol is loaded onto the winform as a module contained within the winforms tab pages collection.
Anyhow, what I need to do is use the winforms grid as the navigator for the usercontrols binding source.
I have tried everything I can think of, the 'easiest' being to change a static variable on the usercontrol and then have a static method on the usercontrol change the bindingsource position but the bindingsource itself needs to be made static and that's not possible as far as I know?
Can someone come up with some code that will do the trick.
Thanks.
Glen Harvy
|
|
|
|
|
I am working on something that passes a DataGridView to a used control which then accesses the bindingsource of the DGV. I do this by having a public property on the UC of type DataGridView and passing the DGV on form load. I imagine you could do the same with a bindingsource.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Hello I'm new to C# so you might have to bear with me a little bit but here is my problem. I am trying to make a windows form so that when you press a button, all the buttons disappear from the form. When that happens I am trying to make a different button take its place. You might find this a strange thing to do... but I have my reasons . This is as far as I have gotten.
Making a new button...
Button newButton = new Button(); (tell me if this is even works, because I'm not really all that sure if it does).
And that's all I can come up with. I've tried really hard to make that button appear after the others ones are disposed and I THINK it might have something to do with newButton.Location.X/Y. But that's just a guess. So it would be greatly appreciated if anyone could offer me any help.
I do not ask for code I simple ask for a little guidance to my next step.
Thanks, Nik!
|
|
|
|
|
After you create the button Button newButton = new Button() you have to set its x and y coordinates, width and height, and add it to the form: this.Controls.Add(newButton);
|
|
|
|
|
Well I thank you greatly for that much of help and I must say that it helped but I am not sure how to set the X and Y variables. I have tried newButton.Location.X, but when I try setting it equal to an int it says that I can't modify the return variable of Location because it is not a variable. Do you know a way to go around it?
|
|
|
|
|
It probably returns a struct (Point), modifying a field of the struct would be kinda useless since as soon as you leave the current scope that struct will be gone (or even if isn't, it's not the same struct as the control has, but a copy)
So, what should work: copy the Location to a local, change the X, assign it back to newButton.Location.
hey, who downvoted this
It would work. Nothing bad about it either. Last modified: 11hrs 5mins after originally posted --
|
|
|
|
|
Hi,
to set the location of a Control do one of these:
myControl.Location=new Point(x,y);
myControl.Bounds=new Rectangle(x,y,width,height);
Both Location and Bounds are structs, i.e. value types; gettin such struct and modifying it won't cut it, you have to provide a struct with the new values.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Maybe you should have a look at the code that the winforms designer generates - it explains how you'd have to do it manually.
(expand the Form.cs file and open the Form.designer.cs file, then expand the "Windows Form Designer generated code" region)
|
|
|
|
|
Wow I can't believe I didn't think of that. Thank you very much you helped me greatly!!!
|
|
|
|
|
Can't always think of everything.. you're welcome
|
|
|
|
|
When u drag and drop a button , set its x, y location to 0 , set height width to 0 .. what would happen ??
Thats your issue right now. Just set these parameters and it will show up.
|
|
|
|
|
nik121 wrote: When that happens I am trying to make a different button take its place.
Why not just add the "new" button at design time and set its visibility to hidden? When the time comes to "create" it, just show the button. That will save you having to set all its properties at run time.
/ravi
|
|
|
|
|
nik121 wrote: Hello I'm new to C# so you might have to bear with me a little bit but here is my problem. I am trying to make a windows form so that when you press a button, all the buttons disappear from the form. When that happens I am trying to make a different button take its place. You might find this a strange thing to do... but I have my reasons . This is as far as I have gotten.
Another way to go is add all the buttons your going to use the first time around. Then decide which are to be visible and which are not.
If you're putting to a form, all the buttons will have they're properties shown in the properties tab. There you can get the individual poperties, including visiblity. I've got my properties in alphabetical order, just to find them, I hate searching.
Then just program behavoir of the buttons
Have a good time
L.
|
|
|
|
|
I was wondering if anyone had a tutorial or documentation they know of on how to work with ISO files in C#? I am interested in how to extract the files from an ISO file with C#, then I would like to learn how to burn an ISO to a cd/dvd...
Was just wondering where to start..
-- Edit: Just noticed I spelled extractor wrong lol
modified on Tuesday, July 7, 2009 9:53 PM
|
|
|
|
|
For burning cd's, I'd check IMAPI
As for the files in an ISO, google tells me that it's a file format that typically contains an UDF file system, but it was too hard to find information about that. The older ISO9960 standard[^] did feel like being found, so here's a link to that.
It's a pain to read IMO, but better than nothing, and it gives a place to start googling from..
|
|
|
|
|
k I'll start researching IMAPI and reading IMO. I'll also check out the link..
I was just curious.. I do some smaller applications around my agency and we don't really have anything to extract ISO files and burn them to disc. Curious how much it would be to create one
|
|
|
|
|
Many compression programs will extract ISO's, like 7zip and WinRAR, and all self-respecting CD burners can burn ISO's, so if you just need the functionality...
|
|
|
|
|
Well.. I have used MagicISO to extract ISO files and I like it, and I have used a free ISO burner (both seperate softwares)... but I am just more interested in making my own. Not that it will do anything different.. I just want the knowledge of how to do it.
I am working on my Bachelors in Software Development and have taken all the C# classes they have offered. I have to say that I am greatly disappointed in their teaching, due to everything they taught I already knew (plus more) from reading Wrox and Deitel books. They NEVER even touched things like threading (luckily I learned from the books lol).
I have not done things like thread pools and such though.
I am just trying to soak up what I can about C# because I love to write applications with it. I'm currently taking VB.net.... blah... I'm not really a fan.. but I guess thats a personal choice.
|
|
|
|
|
Well that's still better than here, they only had a Java course! Well that sucked. I only went to the first class and then had a 9.6 (out of 10) for the exam. They did do threading, but threading in Java is a complete joke, and they didn't do synchronization which is kind of a big deal...
When I asked them why not C# they said it was because there was not enough material for it yet - but that was clearly a lie, so I assume it was lack of funding or lack of knowledge with the teacher (which is actually rather likely, if you can take 2 hours to explain "if" then something is wrong)
So.. that was quite far off topic lol
Good luck
|
|
|
|
|
Well at least you was not Teaching the Teacher on C# after you paid 400 bucks on the course and books. I was really pissed. I spoke to the Dean about it, she said that I should have asked more about the class before taking it. "ASKED MORE!?!?" GOD for bid me assume! the teacher might know somehting about what they are teaching!!
|
|
|
|