|
Haven't done this, but I expect the following can work for you:
- create the GroupBox
- add one autoscrolling Panel to it (Panel.AutoScroll)
- add whatever Controls you want to appear in that Panel
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- 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 PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hey all,
I recently completed it some applications which run smoothly and perfectly on the computer i developed it.
However when i run the application elsewhere it throws an exception that it does not in the main computer... what could be possibly happening here?
I have installed IIS on the computer and when i am running the application i go to the project/bin/release folder and run the program, but it does nothing that throw that exception....
I have previously finished some applications on other computers and there are fine but i wonder why this is not working!
Any tips?
Thanks all,
PS: I got some new books and hopefully after reading them and learning how to explode C# i will be able to help out here as much as i am been helped!!!!
Luis E Tineo S
|
|
|
|
|
Perhaps the version of .NET Framework on the other computer is older than the version on the computer the app was developed on.
Try updating the .NET Framework on the other computer to the newest version.
Kristian Sixhoej
"Failure is not an option" - Gene Kranz
|
|
|
|
|
If updating your .Net environment doesn't work, then your application my not have security permissions to do whatever it is trying to do (read/write to the file system, install applications, run third party applications, etc.). Try raising the trust level of the application and running it as an administrator on the computer. Let us know if it works.
Jeff
|
|
|
|
|
kingletas wrote: learning how to explode C#
Generally speaking, C# programs rarely explode.
Division by zero exceptions however may result in unpleasant consequences...
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi!
The first and most important tip is to read and understand the exceptions you get!
Just saying "it throws an exception - what can be wrong" is like going to a doctor and telling him "sometimes something hurts. Help me!" .
If you tell us the exception and where it occurrs, we might be able to help you without having to resort to our crystal balls...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
mav.northwind wrote: we might be able to help you without having to resort to our crystal balls...
I like resorting to my crystal balls. It feels so good when you get the answer right;).
|
|
|
|
|
Pls refer to my earlier post about 10 hrs ago and with same subject
I am still seeking for help.
May be people from other timezone may help.......
Pls take pains to get there
if I copy my earlier message the indents are lost and the code looks rubbish so cant do that
Chaos, panic and disorder - my work here is done.
|
|
|
|
|
Have you considered it using the Process Class? I think since most programs have an Install/Uninstall program you can use Process.Start() to execute these programs to do it and pass the parameters they take to completely uninstall!
I know this sounds too easy but i am not experienced on programming but that is how i would do it at first and then enhance it!
hope it helps!
Luis E Tineo S
|
|
|
|
|
I looked at your earlier post, and it looks about as efficient as it is going to get. As far as finding installer files, good luck with that, because the only way you will be able to do it is to search recursively through the file system. You could install windows components using the winocmgr command, but other than that you can't expect the OS to provide an *easy* way for you to find all install files that have yet to be run. As far as your other questions, I had no answers, which is why I didn't respond to that post either. At least if you are not going to follow the posting guidelines (by posting the same question twice), provide a link to the referenced thread.
Jeff
|
|
|
|
|
Hi Guys
i would like to know how you can create a simple method to return a string in reverse order.
i have the following method
public string myMethod (String myString)
{
.
. //code goes in here
.
return myString
}
i have been trying to use a array to read the string into and try that but this doesnt seem to work
any ideas please??
Cheers
|
|
|
|
|
That was a topic in here some time in the last year, do you want to search for it or shall I?
|
|
|
|
|
last year? thats too long time ago. i go back a lil, but not that far.
could u please search n let me know, that would be v.helpful
Cheers
|
|
|
|
|
|
I must object a little; in C# strings are immutable, so swapping chars isn't the right way...
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- 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 PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
|
Yep, just like a similar reverse problem[^] it can be solved with a single line of code,
much shorter than each of the posts/replies in this thread...
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- 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 PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
|
|
BTW this is not my Homework, i have written the lines needed to reverse and display the string in the console. but i cant manage to RETURN a REVERSED String!!
Cheers
|
|
|
|
|
If you can reverse the string and display it in a console, then it should be pretty easy to return the reversed string.
My current favourite word is: PIE!
Good ol' pie, it's been a while.
|
|
|
|
|
can anyone help me please ??
Cheers
|
|
|
|
|
Where is this code? You didn't provide it in your original post. If you have already managed to reverse the string and display it, you must have the reversed string in a variable to be returned from your method. The absence of this code suggests that you haven't written it at all and want someone else to do it for you. This isn't how the site works.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
OMG...
ok then, i created a char array;
char[] myArray = new char[m]; //m is the length of array
read all the data into the array using;
for (int i =0; i<m; i++)
{
console.writeline..........="" bla="" bla
myarray[i]="Convert.ToChar(Console.Readline());
}
//" display="" in="" reverse
while="" (length="" !="-1)" length="" is="" declared="" elsewhere="" and="" holds="" the="" no.of="" chars
{
console.write(myarray[length];
length--;
}
now="" what="" i="" want="" to="" know="" a="" string="" passed="" into="" method="" resulting="" reversed="" returned?=""
ps="" have="" declaration="" at="" beginning="" of="" this="" thread.
=""
<div="" class="ForumSig">Cheers
|
|
|
|
|
As just stated, if its not homework and you have working code then post it and someone here will explain the use of the return keyword for you.
I still call this out as homework.
|
|
|
|