Answer Questions
Mnkylord static class/method not recognized within namespace
From what I've read, C#'s static modifier should work just like Java. So, I created a utilities class which has a public static method to do some things. The utilities class is declared within the same namespace as my form class (just in a separate file), but if I attempt to access the method in the utilities class from the form class, the compiler complains that the name of the utility method or the class (if I attempt to use the FQN of the method) does not exist in the current context. If I attempt to add a "using MyNamespace.Utilities" statement at the top (which I fully expect to be redundant) the compiler also complains that the "Utilities" type or name does not exist in "MyNamespace". Any suggestions are most welcome! According to wr ...Show All
NewbieDude Element 'ProjectProperty' is not a known element.
I have this problem: Element 'ProjectProperty' is not a known element. This can occur if there is a compilation error in the Web site. Can anybody help me! Thank's! frederikm wrote: Hi Microsoft Office Sharepoint Server = Moss = Sharepoint 2007 you need to deploy your site to the _layouts directory.... and test it there Hope this helps Haaaa sorry! But i can't plublish the web site because of the error! frederikm wrote: hi i was under the impression that you are developping some extension for sharepoint 2007... otherwise, why would you be using the sharepoint dll I'm making a site whith the s ...Show All
efriese read from Cisco router
is it possible to read the configuration stored in cisco router using C# How i dont think so, unless there are API's or something, unlikely however. only way would be via telnet (or its own web config page) I guess if you are connecting to it via serial cable, use the SerialPorts class in .NET 2.0 to establish a connection, then read data from it using the DataRecieved Event or something. But in terms of reading the configuration, not really sure For this kind of devices you have normally two choices - either is is configurable by means of WEB interface - then use HttpWebRequest or it is configurable by TELNET then use TcpClient from System.Net namespace. Both is feasible, however ...Show All
jvasher wia runtime problem
i'm triyng to add reference to VS2005, wiaaut.dll, but when i run it the command : CommonDialogClass dia = new CommonDialogClass (); gives an error in runtime : " Retrieving the COM class factory for component with CLSID {850D1D11-70F3-4BE5-9A11-77AA6B2BB201} failed due to the following error: 80040154 ." does any one have an idea it's realy needed ASAP. thank you in advenced Omri. does any one know of a downloadable DVD Decoder (MPEG 2 Decoder) for windows XP or a website i can go to retrieve one from Not sure what your app is, but this mi ...Show All
Rocky79 configuration error
i configure my .net framework to run a program on a local intranet. but this program only run in a one of clients and in others this error raise : the key 'Connectionstring' is not defined in appsettings configuration. what is it for and how can i fix it From the limited information you've provided, it sounds like the application probably tries to connect to a database, and that Visual Studio created an App.config file for you containing the connection string information. This will be compiled into a file called YourApp.exe .config, where ' YourApp.exe ' is whatever you've called your application's executable. If one machine works fine and all the rest give you errors, that suggests that this config file is present on o ...Show All
Raja Pratap Problem while accessing directory.
I am trying to create a treeView of all directorys,subdirs and files, like an file explorer.(is there allready made ones ) I getting error: "Acces denied" while listing directory of C:\System Volume Information\ (edit:) How i can make this one work so it skips the unreadable directoryes/files Here is the code: private void Form1_Load(object sender, EventArgs e) { foreach (string dirs in Directory.GetDirectories(@"C:\")) { TreeNode node = new TreeNode(); & ...Show All
smoon How to create variables and configuration settings for C# Windows Project
I need to store configuration details like Database Connection String, and other config details in a single location so that I can access it from any .cs file of the prj. How is it possible Thru some particular xml file or a text file PLZ reply asap as its urgent There is Built in Mechanism for doing it in .net 2.0 and is called Client Settings. you can use it. Its easy like 1, 2 and 3 Done! In Solution Explorer expand the node Properties - > Settings, Add a new setting! You can get and set value of that setting as simple as: Namespace.Properties.Settings.Defalut.SettingName; Cheers ;-) See this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=803040&SiteID=1 ...Show All
DonBaechtel Better class browser
Does anyone know a better class browser I would like one that stays open (e.g. no drop-down menu) all the time, automatically refreshes its contents for the currently opened file and displays the class members sorted. Any ideas Thanks! I found ModelMaker Code Explorer for VS. It is much better than "Source Outliner" and the built-in class browing tools - cannot imagine working without it anymore. I often work with files containing 10K - 30K SLOC - and CE makes it extremely easy to navigate and modify such files. If you are interested: http://www.modelmakertools.com/code-explorer-vs/index.html We're in the late beta stage of a browser that sounds like it would ...Show All
Yuemingzhang The event handler Keypress doesn't start when user press keys F1-F12
Hello I have an Application and I need to process keyboard events. If I press a-z, 0-9 r an other key Keypress handler process, but when I press F1-F12 it not occure. What I have to do implement the KeyDown event for the textbox (or whichever control) then use the KeyCode to see which key was pressed from the KeyEventArgs parameter: Click on the textbox (or the other control that has the keydown events) in designer view click the Events icon (lightning symbol) in the properties double click the KeyDown event to create the event. private void textbox1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F1) { //F1 was ...Show All
leclerc9 Get selected text form MS Office Word
hi everyone, i want get selected text from ms office word. i use Ms AA 2 component but i dont get any thing . please give me solution. Hi, I guess you want to paste something from word to somewhere else in program. If I've misunderstood you, pls let me know. If so, reference to clipBoard in .NET Framework: http://msdn2.microsoft.com/en-us/library/c2thcsx4(VS.80).aspx Thanks Hi, Mory For such issues please use an appropriate newsgroup, potentially one at http://msdn.microsoft.com/newsgroups . Thanks Could you describe in more details how do you imagine your application you can use timer and check on every X seconds for selected text in some ms Word instance. Hope this helps tnx but i want ...Show All
NoEgo override and out keyword
hello, I am learning c# and I am not sure if this is possible. If any one can help thanks :). I have a base class called vehicle and two derived classes car and lorry. in the vehicle class I would like to have a showDetails() method that returns 3 varribels using the out keyword. then in the derived classes i would like to override this method doing the same thing as the base class plus out putting an additonal two varibles in the case of the car class, and 3 in the case of the lorry class. so in the vehicle class I have: public virtual void ShowDetails(out string engineType, out string engineSize, out string registrationNumber) { engineType = base.GetEngineType() ...Show All
little_girl Thread cannot access static variable
Hi there, I have declared a static string in my class public static string a = "lockvariable" ; and am then trying to access it from a thread (which I should be able to do shouldnt I ) public static void theThread() { Program .f.postFeedback(1, a); Program .f.postFeedback(1, b); File .Copy( "c:\\vid.wmv" , "c:\\vid2.wmv" ); Program .f.UpdateTransferList( Int32 .Parse(idTransfer), 2); Program .f.postFeedback(1, "Operation Completed" ); TransferInProgress = 0; MyThread.Abort(); } I am getting the following error: System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object." Sourc ...Show All
rtaiss Cloning
VS2005 Can anyone show me- if its possible- how to clone a combo box . I have 6 combo boxes on a windows form all contain the same information. After the first only I only want to load the data when the cbo is selected. If you cannot clone a combo box where and how would I check that the cbo is empty Thanks that helps. In regards to the second part I was populating them all (from a database) in the load event but this takes too much time. so I only want to populate the cbo if its selected, but I am not sure in which event to do this. Not extactly, In the Form_Load event cboA will be populated from a database cboB will be empt ...Show All
Takteek Find the right library at runtime
Hello, Im writing a program that checks several company's websites for prices and compares them. Since every website is different, i have a different library with specific methods for each website. I want to be able to add libraries later on without having to change the source of my program. What i wanted to do was specify the library names in xml, use that to make an arraylist of websites, and use reflection to use those libraries. However, the program can't find the libraries unless i add the right reference before compiling. Is it possible to add libraries and use them without having to add a reference and recompiling my program Thanks in advance, Stijn Thanks alot both of you for the quick respons ...Show All
Hery Susanto WR Send voice on phone line
Hi. I want to send voice over phone line. Suppose I have a wav file, I want to play it on phone line. I think there is a command for this purpose. ...Show All
