|
VS2005 will run on .NET 2 alone, no need for .NET 1.1. You could try it; but my guess is its overkill; there's something simple we're missing here.
If you click on the System.Windows.Forms.dll reference, in the properties pane, do you see it as version v2.0.50727?
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Goof around music jam with my brothers (with video)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Yup, it tells me it is version 2.0.0.0, runtime 2.0.50727. Now it is telling me that in a couple of my projects there are 'conflicts between different versions of the same dependent assembly.' Maybe this means I just have to add and remove all the refs from my projects. It doesn't seem to be upset about VisualStyles once I've done that. Maybe this is problem solved. Also, it no longer is throwing errors in the IDE on new projects I create. Huzzah! I think we've done it. Thanks for all the help with this. I still have no idea why this all happened, but I guess it's taken care of.
|
|
|
|
|
|
Hello,
I tried a small example from msdn of encrypt/decrypt elements in XML file.
When I executes the Decrypt there is an exception "Unable to retrieve the decryption key." even so I use the same key name.
Platform: .Net 2005, c#.
The algorithm is AES, Asymmetric.
The example from the msdn.
Than you.
|
|
|
|
|
|
Hi there!
Please help! I have a main menu form with two buttons that go to the same form. On the same form that these buttons go to; I would like to load it in a different way, basically if the form was clicked by the ADD button then just initialize the components else if it was clicked by the MODIFY button then parse the text file and load all data into the text boxes. I know how to parse the file, I just want to know how to ask the form to do this.
Here is some code that I have written so far on this, maybe it will give you guys some idea.
public AddDC()
{
//
// Required for Windows Form Designer support
//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~NEW CODE START~~~~~~~~~~~~~~~~~~~~~~~~~~
CB Check=new CB(); //CB is the main form
if (Check.cmdAdd_Click())//////THIS IS WHERE I AM HAVING A PROBLEM, HOW DO I WRITE THIS IF STATEMENT
{
InitializeComponent();
}
else
{
TextReader rd = new StreamReader("C://CB//config.ini",Encoding.Default );
string line;
line=rd.ReadToEnd();
rd.Close();
//while (line = rd.Read())
//{
string Field1 = line.Substring(189, 13).Trim();
//string Field2 = line.Substring(5, 4).Trim();
//string Field3 = line.Substring(index, length).Trim(); // (trim to remove whitespaces)
MessageBox.Show(this, Field1);
InitializeComponent();
}
sasa
|
|
|
|
|
I think of another way.
On the main form, with the two buttons -> for each make a different click event, you load the next form by a different way.
In the next form, make to constructors -> one that doesn't get any values (and initialize components), and another one to parse stuff like modify etc. that could inherit the first constructor.
Then in the first form just load it with the wanted constructor.
|
|
|
|
|
Hi NaNg15241,
Thank you for your response. I do have 2 different click events on the main form. Basically, what I need is when the Add form opens, I want to check which button was clicked to get to the form, i.e. Add button or modify button. If add then initialize and if modify then parse the file and then initialize,
sasa
|
|
|
|
|
If you can't read, I gave a specific answer to that.
Your error: you are trying to check which button was clicked on a new form that was just created -> no buttons were clicked!!!
I have another way, make a new public enum with the name Clicker and have to values in it -> Add, Modify.
On the next form, make the constructor get that enum (eg. public Form2(Clicker WhoClicked)).
And in the main form in the Add click event do: new Form2(Clicker.Add).
Also in the modify click event (Clicker.Modify).
And then in the Form2 constructor you can define what to do based on the Clicker that was sent.
I gave you in this whole thread two ways to do it.
If you can't read or know what I wrote then you probably learn some more C#.
NaNg.
|
|
|
|
|
NaNg;
You don't have to be rude, it is a message board where people ask for help and that doesn't mean that you come out degrading people. Thank you for your help.
sasa
|
|
|
|
|
Hi, i have a control library that compiles to a (.NET) .dll. When i add the reference of the dll to my exe proj i am unable to view the clasess in the object browser. Here is an Image[^] of the problem.
Thanks for your help!
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
|
The methods i have in my dll are public by using:
public void writeToFile()
how can i check to see if i have classes public?
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
nevermind i got it thank you!
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
excuse me this is not i want
i want to search int the combobox like MicroSost forms20 combobox int com componants
please clear the answer becuase i am a bigner
thanks for helping me
MD_NADA
|
|
|
|
|
|
Hello
I am using the System.Diagnostics.Process.Start funktion to open a file.
My problem is that windows cannot open the file if its a fileformat it does not have a
program attached to, ex "test.WhoCares" gives an error, so my question is, is there a way
to get the dialogbox as windows use to open a file which is not set to a program yet.
hope you can understand my problem
Any articles or directy answers would be great.
Thanks
QzRz
|
|
|
|
|
are you saying you want to be able to run "test.WhoCares" like any other exe file?
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
If I try to open a file in windows which is not a know filetype (like the test.WhoCars, windows do not know this filetype) but in windows a dialog comes and you can select a program you want to open the file with.
if that helps?
|
|
|
|
|
I am building an application in C# but want to make use of a module coded in pure C. Im new to C# programming and not sure what my options as to how to make use of the C code in my C# project? Is there a simple bridging techique I can do?
the C module I want to make use of is here http://www.ibr.cs.tu-bs.de/projects/libsmi/ - its a MIB to XML compiler
Any help would be much appreciated.
Cheers
MM
|
|
|
|
|
Just compile the C code into a DLL which exports the necessary functions. You can then access it via P/Invoke and the DllImport attribute
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi
I have a simple web page that written in C# and Asp.Net.
In that page i have asimple insert query that work by
Microsoft Accees .
When I run it in my camputer az a project I don't reciev this message but when i placed on my host or on my iis I reciev this massage.
If You Know How Can I solv this problem plz
answer me az soon az possible
Thanks alot.
|
|
|
|
|
Please don't cross post.
You need write access to the database file to update the database. Check out the instructions from your host on where to place the database file in order for it to get the settings needed.
---
b { font-weight: normal; }
-- modified at 8:46 Sunday 11th June, 2006
|
|
|
|
|
I checked my permission and allow to my folder write access but I've recieved this message yet.
-- modified at 4:49 Monday 12th June, 2006
|
|
|
|
|
Hi thanks for your help
How can I solv this problem when I want to publish my web page on my host?
|
|
|
|