|
Hello,
I haven't done anything. I am totally lost. I have never done anything like this before. Please help..I need it for my job.
Thanks a lot.
A.Asif
|
|
|
|
|
Two posts in a row that say 'I need this for my job'.
We don't mind helping people do their jobs, not at all. But, for you to be saying you are *totally* lost, probably means that you should not be doing this job. On what basis can it be assumed that having been given some code, you will use it in a reasonable way, to create an application that is a worthwhile solution for the person who is paying you for this work ?
If you can't work out how to add a browser control to your application, then you really should not be working as a programmer. If you can't work out how to interact with the control by googling for help, then you have serious problems. If you do these things and get stuck, that's the right time to be posting questions here.
How did you get hired if you don't know how to do the stuff that your job requires, and you don't know how to do basic research ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I guess you did not understand what I was trying to say, when I said am completlly lost I meant to say with the topic of resizing okay. So next time when you say something, first try to find out what other people trying to say and don't behave like little idiot. Anyway for your kind of information am fresh graduate from school and doing good at my work place. I also must tell you no school teaches you things you encounter on work place. At last I only asked for some code or hints so could pull the job. Someone already has given me a hint and already did it. I am sure you are very smart guy and been in industry for long time ,but I hate to sya you kind of guy who like to pick on your juniors and try to feel good by humiliating others. Howevere, let me advise you the key to success is to learn form each other and never underestimate ohters. REMEMBER "GODD RELATIONSHIP BRING HAPPINES"
A.Asif
|
|
|
|
|
Hello,
I am working on C# project 2.0. I have data grid control and list box control and text box control on the form. I need the following functionalities for these controls.
I want to make above controls resizable at runtime.
User should be able to resize the controls by dragging their borders.
Can anyone please help me with this.
p.s. Please show some codes if you can. Thanks a lot in advance. I need it for my job.
A.Asif
|
|
|
|
|
What exactly are you stuck with?
|
|
|
|
|
Hello,
I haven't done anything. I am totally lost. I have never done anything like this before. Please help..I need it for my job.
Thanks a lot.
A.Asif
|
|
|
|
|
Where do you work ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
As a c# beginner, so difficult.
One thing to know, a way to translate decimal numbers to Z-values.
ex) x = 100, y = 99;
decimal number 100 = binary number 1100100
decimal number 99 = binary number 1100011
Z-value is xyxyxyxy..... , so 11110000100101.
I heard that it is easy to solve this problem using bitwise operations.
I don't know that.
Give me a hand...
|
|
|
|
|
What on earth are you doing that you think a z order needs to be set playing with binary numbers ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Can anyone guide me through making an icon in Paint.NET and then using it in visual C# 2005? Thanks in advance. I know many of the community people have tried to help, but, I don't know. Please help. Thanks.
- "Achieving all knowledge does not mean achieving all wisdom."
- "What makes you smart
?"
|
|
|
|
|
Hi,
the way I often do it is by creating a normal image, then programmatically converting
it to a simple icon:
public void ImageToIcon(string filename) {
Bitmap bm=new Bitmap(filename);
Icon icon=Icon.FromHandle(bm.GetHicon());
filename=Path.ChangeExtension(filename, ".ico");
Stream stream=new FileStream(filename, FileMode.Create);
icon.Save(stream);
}
Warning: this does not take care of transparency; I guess other image formats such as
PNG are needed if transparency is relevant.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
THat doesn't work for me. It has some errors. Using statements?
- "Achieving all knowledge does not mean achieving all wisdom."
- "What makes you smart
?"
|
|
|
|
|
yes it will need some usings.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Such as?...
- "Achieving all knowledge does not mean achieving all wisdom."
- "What makes you smart
?"
|
|
|
|
|
But also, do I put the file into the solution explorer and then do the stuff? Isn't there a simple icon editor without the fuss?
- "Achieving all knowledge does not mean achieving all wisdom."
- "What makes you smart
?"
|
|
|
|
|
Could you please give me an example of how it fits with a jpeg in the solution explorer? I found the using, I/O, but please help me understand.
- "Achieving all knowledge does not mean achieving all wisdom."
- "What makes you smart
?"
|
|
|
|
|
The six lines of code I gave you, when executed, read an image file and create the corresponding icon file.
There are no mysteries involved, the trick is Image.Save knows how to create a simple icon file.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Write a small console program that calls the code that Luc gave you like so:
ImageToIcon( "c:\\icon.bmp" ); After you run this you should find a file called "icon.ico" in "C:\" which you can then use in your project.
|
|
|
|
|
I have an error with FileMode from that, and do I need the image in the solution explorer? Since it's converting, does it matter what kind of file it is?
- "Achieving all knowledge does not mean achieving all wisdom."
- "What makes you smart
?"
|
|
|
|
|
What error are you getting? No, you do not need to add the image to your project. Just generate the icon from Paint.NET and save it some place. Then write a console program that calls Luc's function to save it as an icon. After the icon is generated you might want to add that ICO file to your project.
As for the source file format, as long as it is supported by GDI+ you should be fine. Stick to BMP/JPG/PNG/GIF and you shouldn't have a problem.
|
|
|
|
|
I see in usercontrol,we can create atributte to it
exam:
[Category("Data"), Description("Ten Cua Quan Co")]
public String TenQuanCo
{
get { return this.m_St_TenQuanCo; }
set { this.m_St_TenQuanCo = value; }
}
set { this.m_St_TenQuanCo = value; },this is a command line which we input from keyboad.
Right now, I want chose a String which I create before,the operation is same we choose a String in comboBox.
please repeate,I must type a String in atributte of usercontrol to get it
Right now,I don't type ,I want choose it from a String which I have created before like I chose in combobox
Please help me
|
|
|
|
|
I think I can speak for all of us if I say: "huh?"
(that is to say: Noone has answered so far probably because we can't understand your question. Try rephrasing it or ask someone with better knowledge of english for help...)
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Don't double post.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi,
I have an application (C#) which uses the standard resources in the System.Net library to fire off a WebRequest, pull down a web page, then extract some financial data on it : the data is read from the Response using standard StreamReader techniques. Resources are closed after being used.
The problem I am having is that when I have my app automatically checking every number of minutes the user specifies for updated data, it appears that my WebRequest IS NOT pulling down the latest data on the URL and is accessing some cached version.
My assumptions : using the standard facilities in the System.NET namespace/library is accessing core IE7 functionality. Yes, I have IE7 updated with all the latest security patches.
Using IE7 directly you can, of course, use control-F5 keys to force a refresh of the page.
Appreciate any feedback or ideas as to how to make sure I get the lastest data on the web page in question.
thanks !
Bill Woodruff
dotScience
Chiang Mai, Thailand
"The greater the social and cultural distances between people, the more magical the light that can spring from their contact." Milan Kundera in Testaments Trahis
|
|
|
|