|
Hello
I used VS 2003,
Tools -> Build COmment Web Pages
A file consisting of project namespace is created, when I click on it, it went blank.
I do not understand the reason. Does anyone know about this?
Thanks in advance.
|
|
|
|
|
I'd like my program to look through all folders and subfolders within the location it is run from, to find all instances of the file "cover.jpg". When an instance of the file is found other functions are performed. Can anyone recommend the best way to go about looking through all the folders and sub folders? Should I look through all the initial folders first, then go back and look through the sub folders? or do each branch all in one go? I'm sure this is a widely used function so if there are good guides on this could someone point me to them, I tried searching through them but could not find anything.
Thanks.
|
|
|
|
|
This should do it:
string[] files =
Directory.GetFiles (rootDir, "cover.jpg",
SearchOption.AllDirectories); /ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Would anyone like to recommend a book or Internet-based resource where I could learn to use MSHTML from C#? I need to know how get access to the IHTMLDocument* interface pointers, how to call them and what pitfalls to avoid in the use of unmanaged interface pointers in a C# application. I'm learn-by-example kind of guy, so the more practical examples I can look at the better.
I've been forced into this position by the limited capabilities of the .NET 2.0 Webbrowser control in VS 2005 C# Express.
|
|
|
|
|
Hi,
I need to use maps in my C# desktop application...
I m not getting any solution for the same.
If some one have used the google maps in desktop application then pls guide me how to use google map.
Aur any other alternative.
Thanx
Anuj Kamthan
Software Developer
Solversa Technologies,
Pune - 411007, India.
http://www.solversa.com
|
|
|
|
|
I haven't used them in a desktop app, but it should be pretty simple to do this: you can add a WebBrowser to your form and show the maps inside that as if it were a normal web browser. That way, you can still code to the Google Maps API using javascript.
Optionally, you could write a .NET library wrapper that wraps the javascript API. That would be cool.
You might want to look at this CP article[^] to help get you started.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Is Jesus the Jewish Messiah?
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
|
Hiii,
Yes u r right, i have to do something like this only but this wrapper provided for ASP.Net i need to use this in windows based application...
Thanx
Anuj Kamthan
Software Developer
Solversa Technologies,
Pune - 411007, India.
http://www.solversa.com
|
|
|
|
|
I m writing a websevice that will b consume by winforms (C#). evey thing is working fine but i m afraid when I ll give webservice n application to my client that time i can face prb in connectivity with webservice. is ne one tell me how to make it dynamic. like in webforms we can use web.config for dynamic connectivity but in win forms?????
many thanks in advance
|
|
|
|
|
I have a tab control with n tab pages. When I click on a new tab page to change tabs, I want the focus to be on the first field of the new tab page. Currently the focus is on the tab page itself. I have tabStop = false for the tabcontrol but the tab page is still getting focus when I switch tabs. I have also added a "Selected" event handler on the tabcontrol that based on the tab page selected, it gives focus to the first item on the new tab page. The event works somewhat, the item gets focus, momentarily, but then focus goes back to the tab page.
I also have an OnEnter event and I can see the item getting focus, but right after that, the new tab page is getting focus. Is there a different event handler that I should be using? Or do I not have something set up correctly.
TIA
Bob
|
|
|
|
|
Hi All,
I am new to c#.net implementation and i need to implement property grid where few properties are normal ones and few have ellipses and drop down list. All this is implemented and works fine but now i have one more property where on click of the ellipse, form needs to be shown which will have a tree view and based on the selection of nodes comma separated string needs to be set as the property value. Can some one show me some sample code or any kind of help is highly appreciated and Thank you all in Advance.
-Jeevan
|
|
|
|
|
Hi All,
Is there a possibility to do this or not? Atleast if i get answer to this question then i can change or mend my way speaking to my Boss.
This is really critical for me. so please any help is highly regarded and appreciated.
Thanks
-Jeevan
|
|
|
|
|
Hello
I am using NDOC 1.3.1. When build documentation I get following error:
--------------------------------------------------------------
An error occured while trying to build the documentation.
Exception: NDoc.Core.DocumenterException
There are no documentable types in this project.
Any types that exist in the assemblies you are documenting have been excluded by the current visibility settings.
For example, you are attempting to document an internal class, but the 'DocumentInternals' visibility setting is set to False.
Note: C# defaults to 'internal' if no accessibilty is specified, which is often the case for Console apps created in VS.NET...
Exception: NDoc.Core.DocumenterException
There are no documentable types in this project.
Any types that exist in the assemblies you are documenting have been excluded by the current visibility settings.
For example, you are attempting to document an internal class, but the 'DocumentInternals' visibility setting is set to False.
Note: C# defaults to 'internal' if no accessibilty is specified, which is often the case for Console apps created in VS.NET...
-------------------------------------------------------------
any clues on this?
|
|
|
|
|
|
Thanks for reply.
I am using VS 2003 and vs 2005 also. and I get same error in both.
|
|
|
|
|
Hi,
I am having a class Btree, its has function to print pre-order of binary tree on the form.
problem is that, i am not able to access label on the form from this BTree.cs file.
I made that label as public in form.cs file, even i am not able to access.
can any one pls tell me, how can i access form objects from other class file.
|
|
|
|
|
Your binary tree class (Btree) needs to get a reference to the Form class of which the label is on. There're a few different ways to handle the interaction between the two in regards to how loosely coupled you want them to be however the easiest thing to do would be to pass in a reference to the form object through the Btree constructor...
|
|
|
|
|
Hi
Thanku 4 reply
Can U pls give some example code.
or refer me to the any tutorial.
|
|
|
|
|
Sure, so if we had a label on the form that we wanted to update by code in some other class you would do the following:
In your form code you would expose the label as a property...
delegate void Func();
...
public string MessageText
{
get
{
return label1.Text;
}
set
{
Func del = delegate
{
label1.Text = value;
};
Invoke(del);
}
}
Then we can create a new instance of the Btree class (in this case I'll just create it from the Load method of the form)
Btree myBtree = new Btree(this);
"this" refers to the Form class instance itself.. so for the constructor of the Btree class I'd have
public Btree(Form1 frm)
{
frm.MessageText = "This is a test";
}
Since you have a reference to Form1 you can get/set properties and call methods on it. It is, however, better practice to create an interface that states what properties/methods the form should support of which other classes would make calls to so you dont tie yourself down to specific class/form names... but I dont think that would be a big concern for you at this point in time :P
|
|
|
|
|
Hi all,
I am using ProcessStartInfo to print file from my application.
I am also allowing user to change printer and printer settings from PrintDialog Box ( PrintDialog Object).
But Changes done by User is not refelected.
Anyone knows Y.
I have used SetDefaultPrinter API to set changed printer to default.
I guess I will have to use those API to set Printer Settings as well.
Any other solution?
|
|
|
|
|
|
Thanks For reply but this not the thing I am doing.
|
|
|
|
|
What's the difference between a combobox.DataSource and a DataGrid.DataSource?
If I do this in my code:
mycombobox.DataSource = dbconn.GetDataSet().Tables[0].DefaultView;
mydatagrid.DataSource = dbconn.GetDataSet().Tables[0].DefaultView;
the datagrid gets filled with the correct values, the combobox with "System.Data.DataRowView" items.
In .Net 1.1 however this problem didn't occurred, or did it?
tnx for your help.
Coulda, woulda, shoulda doesn't matter if you don't.
<marquee>
|
|
|
|
|
Dunno about .Net 1.1, but I just ran across this issue as well. I used the DisplayMember property (in conjunction with DataSource) to properly display the value in a ComboBox/ListBox control. Otherwise I just saw the name of the object.
www.lovethosetrains.com
|
|
|
|
|
And idd it works !!
It does seem logical, but why don't they put that kind of info in MSDN .
tnx
Coulda, woulda, shoulda doesn't matter if you don't.
<marquee>
|
|
|
|