|
Deserves 5 for effort - quiet day over there!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thanks
|
|
|
|
|
hi as the topic states im using visual studios 2015 rc
it doesnt come with a build in installer
i tried wix it doesnt get recognized from within visual studios
???any help or tips
modified 12-Aug-15 9:26am.
|
|
|
|
|
There are a few free ones that Google will find for you.
|
|
|
|
|
you can use installshield. Or refer following link.https://visualstudiogallery.msdn.microsoft.com/003f3135-bbca-4eb2-951d-88820065a124
|
|
|
|
|
from what i heard installshields expensive ill have a look at the link , thanks
|
|
|
|
|
jamesmc1535 wrote: it doesnt come with a build in compiler It does, but it may lack an installer. There's InstallShield[^], InstallAware[^] (former WISE), InnoSetup[^] and InstallForge[^], to name a few.
There's a handy comparison on Wikipedia[^].
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
okay but now im a little bit confused , how would i use the inbuilt compiler?
|
|
|
|
|
To compile what? Your code or to build an installer?
|
|
|
|
|
im talking about creating an installer for my program
|
|
|
|
|
Visual Studio doesn't have one built in any more.
|
|
|
|
|
A compiler makes binary from a (text) source file. You invoke it from VS by "running" the application. All the sources will be compiled, and the result executed.
An installer is what you use to get that executable working on another machine, and it would copy both the executable and depending binairies to the target-system.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
thanks see im sorry il edit my question and fix it now , i want an installer
|
|
|
|
|
Unless you want to write one yourself, I suggest you follow the links given and see if any of those installers would be appropriate for your application
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
How to Display the Image in Form2 and the Image selected in listbox of Form1 ?
EXample:
Form1 have listbox(15 images).
Form2 - Display the image in form2.when i click show button in form1
|
|
|
|
|
|
Hello
You need to follow these steps:
Create an Instance of form2 on form1 button click event
Form2 frm = new Form2();
frm.BackgroundImage = Image.FromFile(ListBox1.SelectedItem.ToString());
In that code i assumed that path of images are listed in listbox
Thanks
-------
web designing in Agra
|
|
|
|
|
Watch who you're replying to. Griff already knows how to do this.
Oh, and your solution locks the image file for the lifetime of the Image object you get back from the call to Image.FromFile .
It's better you use a file stream to load the data into a Bitmap and dispose the stream, avoiding the lock on the image file.
|
|
|
|
|
add click/doubleclick event to your listbox control and pass the current image name to second page using constructor or property. in your second page you can load the image from the image name.
|
|
|
|
|
i am proofreading my prof program and creating classes changing the dictionary of it can u help me solve this? i am new to c# ..sorry to ask a stupid question...
Code:
foreach (KeyValuePair<string, object=""> kvp in dict)
{
log.WriteErrorToLog(kvp.Key + "=" + Iif(kvp.Value == null, "null", kvp.Value.ToString()), "AddOrder_DEBUG_LOG");
}
how to solve this?
modified 12-Aug-15 0:56am.
|
|
|
|
|
You didn't post the error, but are you missing a closing parenthesis. Should
Convert.ToInt32(dict.PreAuthResultCode.ToString(),
be
Convert.ToInt32(dict.PreAuthResultCode.ToString()),
As a side note, why the unnecessary ToString calls? For example
"CardPreAuthorizationNumber".ToString()
The constant string is already a string...
|
|
|
|
|
@ mika hi the error is the foreach says here it cannot operate i wonder why?
|
|
|
|
|
Ok, now you have posted a different code fragment.
But in the
foreach (KeyValuePair kvp in dict)
what is the definitions for dict and from what namespace the KeyValuePair comes from?
If it is a generic dictionary, then the keyvaluepair should also have the type arguments defined.
|
|
|
|
|
you made me realize..wait ill check ...
|
|
|
|
|
namespace System.Collections.Generic
{
[Serializable]
public struct KeyValuePair<tkey, tvalue="">
{
public KeyValuePair(TKey key, TValue value);
public TKey Key { get; }
public TValue Value { get; }
public override string ToString();
}
}
and the dict? dont know every strand of this but i think all dict(dictionaries have been moved to a class. thats my task
|
|
|
|