|
what is the similar code to application.startuppath in asp.net, i'm trying to write a xml file to get the db connection info.how can i do this.
|
|
|
|
|
With ASP.NET you usually do all that in the web.config file.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
i using this codes.....some times i get this error message...any one know why????
"the process cannot access the file because it is being used by another proces"
this is the message but its not using any other process...
here is my code
foreach (ListViewItem item in listView2.SelectedItems)
{
listView2.FocusedItem = listView2.Items[item.Index];
DSOFile.OleDocumentPropertiesClass file = new DSOFile.OleDocumentPropertiesClass();
file.Open(listView2.FocusedItem.Text, false, DSOFile.dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess);
file.SummaryProperties.Title = tbxTitle.Text;
file.SummaryProperties.Subject = tbxSubject.Text;
file.SummaryProperties.Keywords = tbxKeywords.Text;
file.SummaryProperties.Author = tbxAuthor.Text;
file.SummaryProperties.Comments = tbxComments.Text;
file.Close(true);
MessageBox.Show("Changes Added into Selected File");
}
A S E L A
|
|
|
|
|
Hello,
Are you using any System.IO methods in your code (not shown) to files. If so, are you closing out the file in those methods?
-Colin
|
|
|
|
|
ya im using
"using Edanmo.OleStorage"
ya i closed the file once i used it.....that already in the code....
but some time able to do by dong click on another items and then click on that item back.....
any idea ?????
and thanks 4 ur reply
A S E L A
|
|
|
|
|
A S E L A wrote: its not using any other process
Not your application, but the file that you are trying to read is being used by another proces. You're opening a file on this line 'ere;
file.Open(listView2.FocusedItem.Text, false, ..
That's the file that is being used by another proces, and the statement can't be executed because of it. Are you using Microsoft Word to "look" at the data you're trying to import?
I are troll
|
|
|
|
|
its only use to read the summary property but once i use it, i close the file....every where....every time
is there got any thing to do like "flush" or etc... other than close();
A S E L A
|
|
|
|
|
The Close method should be sufficient, though that really depends on the implementation of the class that you're using to read the file. If "file" were a local variable, it could go out of scope and be garbage collected by the GC
I are troll
|
|
|
|
|
i guess the problem it closing.....
file.close(true); is not closeing all and every thing....
i tried
file.save();
file.close(fales);
still same....
A S E L A
|
|
|
|
|
Hello
Im writing a simple messenger and im having trouble with the
"Private Messages"
i worte the shared object between the clinet and the server
later all the clients subscribe to the server events Let Say "User Send Message" event
Now ,Let say that User "michael" wants to send Message to "liron"
So im iterating in server side on each Subscriber ,
How can i know which of the subscribers are "liron"?
can i find any value that identify "liron "?
UserSendMsgHandler messageDelegate = null;
Delegate[] invocationList_ = null;
try
{
invocationList_ = onUserSendMsg.GetInvocationList();
}
catch
{
}
if (invocationList_ != null)
{
lock (this)
{
foreach (Delegate del in invocationList_)
{
try
{
messageDelegate = (UserSendMsgHandler)del;
messageDelegate(Msg,Sender,Receivers[0]);
}
catch
{
onUserSendMsg -= messageDelegate;
}
}
}
}
|
|
|
|
|
I am using a dataset in businesslayer for getting project details like ProjectId,ProjectName,ProjectType. I want to return this collection to UI layer in a list or in some form of collection objects, but not using a dataset.
For eg: 1,'TestProject1','Maintenance'(ProjectId,ProjectName, ProjectType)
2,'TestProject2','Support'(ProjectId,ProjectName,ProjectType)
How can I store in business class and retrieve the same in UI layer? Somehow I created some properties and can added to the list. But don't know how to retrieve the same. Can anybody please help. Please let me know if I require to provide any more info.
Thanks,
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Create a list of a struct you create, which contains all the data you want to store for an object.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks for immediate response. But I think I am not very clear on that. Can you please explain a little bit more? It would be great if you can provide an example.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Buy a basic C# book and read it, this is 101 stuff.
struct MyStuff
{
int id;
string name;
//etc
}
List<MyStuff> list = new List<MyStuff>();
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
What you can do is create a class named Project
e.g.
public class Project
{
public int projectid;
public string projectname;
public string projecttype;
}
Ok.. Then in the UI layer , in the class of any form . just create a generic list of Project;
i.e.
List<project> prj = new List<project>();
Now you can add the value to this list in any bussiness layer and then pass it to the ui
e.g.
List<project> lst = new List<project>();
foreach(DataRow drow in ds.Tables[0]) //Ds is dataset and your details are in table 0
{
Project temp = new Project();
temp.projectid = Convert.Toint32(drow["ProjectID"]);
temp.projectname = drow["ProjectNAme"].ToString();
...
lst.Add(temp);
}
return lst; //This lst will contain the list of products and you can bind it to any datagrid directly. .
|
|
|
|
|
i am a MSC computer science student .As a part of our course i have a 6 month projects.I am selected a topics as "SHARE THE CLICKBOARD ON NETWORK USING .NET REMOTING".Is it enough for 6 months?
|
|
|
|
|
Only you know how quick you work, but judging by your posts it will take yuo all of that as you don't seem to have a clue.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Aight, just because I'm in a good mood, here[^]'s some starting point for projects that can be extended into the six-month period. You'll find 10 databases on that site that can be used as a starting point to develop a new application. It may sound boring to write an application that's "just" a layer on a database, but it will be enough of a challenge.
By the way, what kind of school sends students here to have them verify the feasibility of a project? Can't your teacher give a clue to what would be "enough"? He's the one that should be capable of judging your talents, possibilities and limits.
I are troll
|
|
|
|
|
leela antony wrote: i am a MSC computer science student
Nope. You're a spammer, possibly a troll.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i am a MSC computer science student .As a part of our course i have a 6 month projects.I am selected a topics as "FTP CLIENT".Is it enough for 6 months?
|
|
|
|
|
Bunnies! I like bunnies and lets face it who doesn't!
You could write an AI bunny, maybe call it a Rabbot (my little joke there). Just start out simple with the Rabbots hoping about. Then you could add in boy bunnies with blue bow ties, and girl bunnies with pink bonnets. A little bit of inheritance never hurt; unless your mom and sister are one and the same.
Once you've got your different bunny rabbots working you could then try and make them interact and see how long it takes for them to tell you to feck off and do something useful instead of creating lots of dirty bunny pron!
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
I am an MSC computer science student.As part of our course we have 6 months project.i have selected the topic "folder locker"
.Is this topic sufficient for a 6 months project.please respond.
|
|
|
|
|
i am a MSC computer science student .As a part of our course i have a 6 month projects.I am selected a topics as "MONITERING SYSTEM USAGE USING WINDOWS SERVICES".Is it enough for 6 months?
|
|
|
|
|
i am a MSC computer science student .As a part of our course i have a 6 month projects.I am selected a topics as "SMTP MAIL SERVER".Is it enough for 6 months?
|
|
|
|
|
My apologies for wasting my time posting a real reply to your first question... I didn't realize that you're a moron.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|