|
Well, "Human readable" is subjet to discussion
My point was: the application can't store settings in there at runtime, because that would violate the rule not to write to the program directory.
|
|
|
|
|
I haven't tried it myself, but surely you should be able to open it as a regular XML file and write to it?
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
Where can i find a very good example of AX4 Business Connector in Vis. C# programming.
|
|
|
|
|
Return ((True) And (False))
satish
|
|
|
|
|
satishkumarnk wrote: What is use of this return statement
No intelligent one, I guess!
satishkumarnk wrote: Return ((True) And (False))
Apart from, it is not C# code, it allways returns "false"!
All the best,
Martin
|
|
|
|
|
Waste readers' time...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
CPallini wrote: Waste readers' time...
YEP!
And waste forum space!
|
|
|
|
|
This is VB code. Like much VB code, it has no redeeming features.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi all,
Is there a way to create an outlook appointment (Outlook 2003) from ASP.net /C#/ or vb.net (framework 1.1) via active directory? For example a user A could create an appointment for user B while User B information comes from active directory.
regards,
hoomydoomy
|
|
|
|
|
User A needs access to B's Exchange mailbox, usually that is the main problem.
All you have to do is get the mailbox alias from ADS and then create the Appointment object via CDOEx or WebDAV. the folder uri of a user's calendar is:
http://servername/exchange/mailbox-alias/localizedFoldername
____________________________________
There is no proof for this sentence.
|
|
|
|
|
Hi ,
How are doing?
I want to generate an application that save information of information in my CDs.
But I need a source code , that take list of files and folder in CD. and display those in tree view or DataGrid . and when user click on those files or folder ( on dataGrid or Tree view), show name and other information on some textboxes.
then, user add other informations about items ( files and folder ) and click on "Save" button in order to save all informations on textboxes .
Can I help me.?
|
|
|
|
|
HEllo,
So, do you have a special question, or are you stuck on some problem?
If yes, tell us please. We sure will try to help you!
Or, Do you want somebody else to do your work?
If yes, Bad Luck here! (At least you could try to search in the Articles)
All the best,
Martin
|
|
|
|
|
You can use DirectoryInfo to iterate through the contents of a folder.
Not sure how you would determine which letter represents the CD drive, but you should be able to figure that out. Hope this helps.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
i want to create multiple datagrid(each displays different data table ) in same window to display diferrent information in each datagrid.But datagrid should be created dynamically
during runtime depending on the number of data table i want to display
|
|
|
|
|
you can do it by
DataGrid dg1 = new DataGrid();
this.Controls.Add(dg1);
on Form1_load method,but u have to check the locations of datagrids added
so that they should not overlap each other
rahul
|
|
|
|
|
1st know no. of data table in dataset.
base on it make a for loop and create data grid.
Regards
Chintan
www.visharadsoft.com
(Nothing is so purify as KNOWLEDGE)
|
|
|
|
|
Good day.
I've been working with C# for the last few months and really like it a lot.
TheCodeProject has really helped me progress quickly and get up to scratch quickly
by offering top quality post that are direct and easy to follow.
I've been working on a new project and was wondering how you you would customize a
form? I would like to give my form round corners or make the border transparent etc.
I've been looking around all over the pace but can't find anything about the topic.
I know TheCodeProject.com has brilliant programmers writing here so I'm sure someone can
answer my question.
Thanks in advance
|
|
|
|
|
Ryan Blake wrote: TheCodeProject has really helped me progress quickly and get up to scratch quickly
by offering top quality post that are direct and easy to follow.
So why don't you search codeproject?
These links will help you:
irregularshapedform[^]
ShapeControldotNET[^]
|
|
|
|
|
Hi.
I have some enums generated from xsd files, which I'll use intensively in my program.
One task involves storing data into a database, including these enum values. The field type of the database which is use for this table is text.
How should I store, and more importantly retrieve the values of the enums?
How could I convert from string to a custom enum type?
Thanks.
|
|
|
|
|
Hello,
As enum is int Type it makes no sence to store it as a text I guess!
I would cast it to (int)MyEnum.
But you should use fixed values for your enum, which is important for consistance after updates!
All the best,
Martin
|
|
|
|
|
Ok, so for example if I have this enum(mind the syntax):
Dog - 1
Cat - 2
Flying Squirrel - 3
and I store in the database values 1,2 or 3, is it possible after I retrieve these values to convert 1 to Dog, 2 to Cat and 3 to Flying Squirrel?
Thanks.
|
|
|
|
|
Hello,
Just do the casting in the other direction.
int dbvalue = ?;
FancyAnimals dbFancyAnimals = (FancyAnimals)dbvalue;
All the best,
Martin
|
|
|
|
|
Sure, simply cast them to the enumeration and it will work!
enum Numbers
{
One = 1,
Two = 2,
Three = 3
}
class Program
{
static void Main(string[] args)
{
for (int i = 1; i <= 3; i++)
{
Numbers n = (Numbers) i;
Console.WriteLine(n.ToString());
}
}
}
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
Martin# wrote: As enum is int Type it makes no sence to store it as a text I guess!
I think he's talking about the names of the enumeration values. For instance:
enum Numbers
{
One = 1,
Two = 2,
Three = 3
} He wants to store "One", "Two", and "Three" in the database and somehow use them to get 1, 2, and 3. I used something like this at my previous company, but I don't remember now.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
Right. I want to store "One", "Two", "Three" and retrieve whatever values are required to correctly fill the enum variables in my program.
Sorry for the confusion.
|
|
|
|