|
Yes, that was the one I ment - I just got the name wrong as I haven't touched it since 3.0 was released. The way it forces sorting on a collection simply does not make sense in a lot of cases - as not all collections can be sorted, and those that can might not have a property you can set to determine how it is sorted.
|
|
|
|
|
I think that feature is not get in C#.Please use arraylist.
Continue...
|
|
|
|
|
What is it with this sadistic desire to try to convince people to use the obsolete ArrayList class? Are people really still using .NET 1.1?
|
|
|
|
|
I'm using the following code to download the file group called Module1.
if ( ApplicationDeployment.IsNetworkDeployed )<br />
{ <br />
<br />
ApplicationDeployment.CurrentDeployment.DownloadFileGroup ("Module1");<br />
}
It works fine for first time.. but It doesn't download for second time.
For example: I have deployed my application version 1. There are four dlls in that application. I divided those dlls into two groups (Module1 and Module2) as below.
MyApplication (version : 0.1)
- Module1
----mydll-1.dll (version : 0.1)
----mydll-2.dll (version : 0.1)
- Module2
----mydll-3.dll (version : 0.1)
----mydll-4.dll (version : 0.1)
Then, I installed myapplication (version 0.1) on client's machine. it works fine. It downloaded "Module1" by using this code " ApplicationDeployment.CurrentDeployment.DownloadFileGroup ("Module1");".
The problem started when I wanna update something in my existing dlls. I updated something in "mydll-1.dll" under "Module1". After that, I remove "mydll-1.dll.deply" file from ClickOnce deployment folder. and I put my new dll "mydll-1.dll (version : 0.2)" in that folder. I resign the manifest file by using mageui.exe tool.
I launch the application on client's machine but the Module1 is not downloaded. So, I don't get the latest versin of "mydll-1.dll (version : 0.2)".
My question is "How to download the filegroup by force at anytime I wish?"
Thanks in advance.
|
|
|
|
|
hi,
in this simple code my program is not going into "area = r * r * 3.14;"
the output i am getting is 0000
{
class ReturnTest
{
static int r;
static double area;
static double CalculateArea()
{
Console.WriteLine("the value of r is ", r);
Int32.Parse(Console.ReadLine());
area = r * r * 3.14;
return area;
}
static void display()
{
Console.WriteLine("The area is {0 .00}", area);
Console.ReadLine();
}
public static void Main()
{
ReturnTest.CalculateArea();
ReturnTest.display();
}
}
}
can you tell me why???
thanks for the help
j
|
|
|
|
|
Trustapple wrote: Int32.Parse(Console.ReadLine());
you are converting the string value into int but you are not assigning to any variable for that reason you are getting value as 0 as r value is 0
i think your statement should be like......
r = Int32.Parse(Console.ReadLine());
Regards,
Sandeep Kumar.V
|
|
|
|
|
ThankYou Sandeep ....i am a beginner hence the confusion
|
|
|
|
|
Is there a code or object you put into you're program so that you can have a media player in you're program.
I mean, a media player that when you push a button it auto feeds to a site and relays the movie straight to the player.
Also, how do i make the window not move able, as in click on the bottom right corner and adjusting the size. I want to make it so it's just the media window and nothing else, not being able to be resized.
-- modified at 23:36 Tuesday 16th October, 2007
Ohh while i'm thinking about it, is there a way to make a tab window open on like the left side of the program and allow you to click a button to switch the media player to another?
I've seen it on other programs, if any one has used X-fire thats what i mean, in a way. But, Is that possible in C#, or is that a special code thats uncompliable?
|
|
|
|
|
Yes, the wndows media player is built in, you just need to add it to the toolbox if it's not there already.
Yes, you can put a tab anywhere you list. Not sure what you mean by switching media player, but I'd guess the answer is yes. C# can do anything C++ can do, as it can p/invoke C++ if it doesn't have APIs to do it.
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,
If i want to perform a search using the function SelectNodes(), can i specify an XPath to search for the node's value instead of the node's name?
Thanks
|
|
|
|
|
yes, you use = to specify a value.
"/XML/value[@attrib='this']"
That returns nodes under XML/value that have an attribute ( that's what the @ means ) named this.
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 )
|
|
|
|
|
|
Dear all
i'm a student working on a project that i have to deliver real soon and i'm running out of time
my project includes building a graph for web pages of my site and compute connected components
so i'll have to work with connected components algorithm or incremental connected components
i found quick graph library in this site but i have difficulty working with it
in building the graph
i want to add vetrices to the graph dynamically
as select page names from database table and add it to the graph
as i got when working with adjacency graph i write
VertexStringDictionary names as new VertexStringDictionary
IVertex u = g.addvetrex();
names(u) = "u"
but what if i want to use an iteration for table records as name for IVertex dbvalue = g.addvertex
then names(dbvalue)= "dbvalue"
then what can i do after that to apply connected components algorithm
please help me urgently i'm in bad need for help
accept all my regards
|
|
|
|
|
Sounds like you need to post in the forum provided by the article author, and see if he can help.
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 )
|
|
|
|
|
Hey everyone,
My application refused to use Copy/Paste feature. I did not write any special code for copying text to the clipboard, since the control is WebBrowser (.Net 2.0). On other machines, Ctrl-C just copies the text to clipboard without any need for additional code, like manual clipboard handling. On my machine, the clipboard did not change its contents. I renamed my Documents and Settings folder and relogged in, thus recreating my account and, more specifically, UserData folder. I can now copy text into the clipboard just fine. However, there are other people having the same problem, so I need to identify the source of the issue, since deleting UserData is not an option. Any suggestions? Is it system permissions for .net?
|
|
|
|
|
Check the settings for the internet cache, the maximum disk space is usually set way too high. When the cache gets too large, it f... messes up some things in the browser. Clear the cache and set it to a reasonable value, like 50 MB.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hello, all. I've published some simple stuff, and tried to send it/put on a CD, but every time the other person tries to use my program, it says 'missing files'. What's the problem here? Am I publishing like an idiot? I found nothing on google and more, and though I'd just ask the pros. THanks in advance.
The most knowledge doesn't mean the most wise...
|
|
|
|
|
You've given them your config files, and they have .NET ( the right version ) installed ?
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 )
|
|
|
|
|
I don't think I expained well;after I publish, I copy the files to a disk (is it disk or disc... anyway), and then I go to another computer, put the dis(c) in, and run it. When you try to run the file, it says something along the lines of "Missing files or components"... Something. I don't know what I'm doing wrong.
The most knowledge doesn't mean the most wise...
|
|
|
|
|
You should create a Setup Project for your application. This allows you to build an installer that includes the .NET Framework Redistributable. Running the install app on a client machine will install the .NET Framework on the machine as well as your application if it is not already present. Have a look at this article[^] for more information.
Paul Marfleet
|
|
|
|
|
Yes, I got that. So, you missed some files, or you're missing a dependancy, such as .NET. Have you installed the .NET runtime on the target PC ?
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 )
|
|
|
|
|
Shouldn't programs for Windows be able to run on any PC they're tried?
The most knowledge doesn't mean the most wise...
|
|
|
|
|
You're assuming a lot there. The answer is no. Anyn application written in C++ needs the MSVC runtime libraries to execute, whether they be staticly linked into the .EXE or seperately in the Windows\System32 folder. The same is true for MFC apps, VB6, C#, VB.NET, ..., or ANY application. Some of the runtimes are already installed with Windows, some are not.
The .NET Framework didn't start comming preinstalled with Windows until Windows Server 2003 came out. I think it was included in Service Pack 2 for XP, but I could be wrong.
|
|
|
|
|
So, where would I install this?
The most knowledge doesn't mean the most wise...
|
|
|
|