|
The .NET framework wil only be required on the client machine. If connecting to MySQL I reccommend downloading Connector/Net from the MySQL site[^]. Simply add a refererence to the dll and everything you need will be availaible via the MySql.Data namespace.
|
|
|
|
|
Of course the .NET Framework must be installed on the machine where the code is running. If you are connecting to the server running mySql via ADO.NET, the no, the .NET Framework does not need to be on the server.
only two letters away from being an asset
|
|
|
|
|
Ok thanks. Other than that you don't see a problem connecting client with server and database?
|
|
|
|
|
No, it's really easy actually
Obviously, you need a MySQL username/password on the database server that has the required privileges and the correct port open in the firewall.
Experiment on a seperate machine if possible first - it won't go down very well if you accidentaly DROP an existing database/table/user/etc... ! You can get MySql here[^]
|
|
|
|
|
|
Everyones answered your actual question - but one thing that strikes me, if the file is generated automatically, then it also can probably be uploaded and processed automatically. Seems odd the user would have to upload the file by hand...
Have a look at the FileSystemWatcher(?) class in the framework.
|
|
|
|
|
Yes I considered that part. Ideally it should be automated. Thanks I will look into the FileSystemWatcher.
|
|
|
|
|
Hi,
If I add too many design time features and GUI on my Windows Custom Control, will that have any performance effect in run time ?
Thanks.
|
|
|
|
|
It depends what you are using those design time features are for? If they add bloat to the runtime, then they will have a performance effect.
|
|
|
|
|
Hi everybody,
Can somebody help me with a link or feedback about how to export C# froms to PDA???
thanx.
|
|
|
|
|
It depends which PDA, which O/S it runs, which version of the .Net Compact Framework you're using...
|
|
|
|
|
We have an application made in VB 2005 and it uses VC++ code as well.
I have heard that a compiled .net application can be decompiled with certain software. Can the VC++ files also be decompiled or is it just the VB.net files???
Thanks!
/Kristian
|
|
|
|
|
Any managed code assembly can be decompiled back to some resemblance of the original source, sans comments of course. Lutz Roeder's .NET Reflector is probably the best example of such a tool.
|
|
|
|
|
IF the VC++ files are managed they're equally decompilable. If they're native code the reflection will only show the VB calls into the C++. The C++ will be no more vulnerable to decompilation than in a 100% native application. Which is to say, any sufficiently determined individual can still reverse engineer it by disassembling the binary and using runtime debugging tools.
Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop.
-- Matthew Faithfull
|
|
|
|
|
Can someone please help me! I am stuck at the final step of a project I am working on and I simply have no idea how to accomplish this step.
Here is a link to the project, perhaps you can take a look and see how I can implement my final step.
Here is the project: CLICK HERE
If you run the application, you will see 4 list boxes and 1 text box. By clicking on a STATE, it will then display a list of CITIES. By clicking on a city, then it will display a list of AIRPORTS. By clicking on an airport, it will then display a list of CHART NAMES.
This is where I am stuck. I need it so that when you click on a CHART NAME, it will display the PDF NAME FOR THAT SPECIFIC CHART, on the textbox.
Could you help me?
Thanks in advance...
modified on Monday, January 14, 2008 1:24:51 PM
|
|
|
|
|
Difficult to help if the CLICK HERE doesn't work, or you post no code.
only two letters away from being an asset
|
|
|
|
|
I fixed it, my friend. Sorry about that.
|
|
|
|
|
XmlNode node = _selectedAirport.SelectSingleNode(string.Format("//record/pdf_name[../chart_name[.='{0}']]", listCharts.SelectedItem.ToString()));
This should work. Although I would suggest finding a different medium to store this info, over 6MB is far to large of a document to be efficiently used. Have you considered a SQLExpress database?
Also, as a matter of style I always use properties to access class fields, never access them directly, as in _selectedAirport or _selectedState
only two letters away from being an asset
|
|
|
|
|
Does anybody know of an easy way to detect what mail clients a user has installed? I'd like to be able to give users of my application the ability to send emails via an already configured email client and account (of their choosing) so they can have all the benifits of the sent folder etc. I'm guessing it would involve accessing the registry but I'm clueless as I've never had to access the registry using C# before...
Basically once detected I'd like to display the mail client name and respective account names in comboxes so the user can choose which to use (this is the easy bit ).
Any pointers would be greatly appreciated...
|
|
|
|
|
I am configuring a grid and pass in the name of the property within an object to display e.g.
myGrid.AddColumn(new ColumnDefn("TestPropertyName", "", false, true));
where TestPropertyName is the property within the object to display.
Instead of using a string to identify the property I want to use the object itself e.g.
MyObject myObject = new MyObject();
myGrid.AddColumn(new ColumnDefn(myObject.TestPropertyName.xxxxx, "", false, true));
where xxx is some magic to get the property name (I assume using reflection).
This means if myObject changes (e.g. TestPropertyName becomes TestPropertyName2) I will pick up the error at compile time.
|
|
|
|
|
Ok, do you have a question?
|
|
|
|
|
I was wondering if someone could help with the magic xxx
|
|
|
|
|
someOjbect.GetType().GetProperties() will give you the collection of all properties in an object. You will be able to use .Name on a propertyInfo object to get the name.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
If I get a list of properties using GetProperties() how do I get the propertyInfo of the property I'm interested in without specifying a string to identify it.
|
|
|
|
|
GetProperties() returns the PropertyInfo
|
|
|
|