Answer Questions
Joseph Ollero question about "using namespace"?
I create 2 projects (P1, P2) and the 2 projects have 2 namespace (N1, N2; N1 belongs to P1, N2 belongs to P2). I could use "using X=N1", but i can not use "using X=N2" at project P1, P1 can not find the namespace N2. I know it can, but if I should change some settings thanks! BTW, if i put both of the 2 namespace (N1, N2) at P1, then whatever i could use "using X=N1" and "using X=N2". not really sure I follow *confused* - will re read but perhaps the project you are trying to access from the other project has not been added as a reference in the project, so add a reference to the project/namespace you are trying to access - you should then be able to access it. example I have 2 projec ...Show All
rina00 how do you apply a class
hello all, I am new with C# and stuck on some coursework I have created a class: public class student { //start of class declaration public string name="Jane Doe"; public string course="Multimedia and Internet Systems"; public string email="test@test.com"; } how do I apply the class to a textbox so that when the user selects one of the details say name then the name will appear in the textbox. or am i doing something completely wrong with the class i am using MS Visual Studio .NET 2003 any help would be greatly appreciated edit: i am using a main menu in the application, so when the user selects name from the menu it will display in the textbox Everything with the class appears fin ...Show All
LastBoyScout Writting to a file
I was wondering if it is possible using streamwriter to make some of the text you write to a file bold I have been trying to figure this out, and have no luck in searching various websites if it is possible. What I am trying to do is, write to an .rtf file and have for example: "Name:" in bold and then the person's name normal style afterwards. If you can't using streamwriter and there is a way, any help would be appreciated. Thanks in advance. I tried just using \b and \b0 and this is what I ended up getting: Name: Do I have to add the whole {\rtf1\ansi....} line or should \b and \b0 work without it. If I do, how should I go about it Adding the \rtf1 line to a serperate string perhaps Than ...Show All
JGttttt class view in VS2005
In VS2003 class view showed all class members and variables in the same tree. In VS2005 I may see only "Base types" and should right mouse and select "Browse definition" and they will be shown in Object Browser. Is this expected behaviour or I am missing certain settings Click on any class and you should see all of the members in a separate, adjacent window. Only types that the class derives from will be shown in the treeview. The default presentation I get is the treeview and search bar on the left half, and then the members list and descriptions on the right half, one above the other. Unfortunately, I can't include a screenshot of what I'm on about. I only hope you see something similar in your VS2005. In ...Show All
godzilla9 Visual Studio 2005 - PILE OF ***!
Hi, Although .NET 2.0 has brought ,any great additions to the .NET family, the IDE for me is the worst part of the experience. 1. The IDE is terribly slow... much slower than it should be. 2. The IDE seems full of bugs. These two problems do not make a good productivity combination. I do not believe Visual Studio 2005 is suitable for enterprise development, where you typically work on large scale solutions consisting of hundreds of projects. The IDE simply chokes on large solutions. Intellisense comes to a grinding halt and solution level configuration changes, such as setting debug/release mode take minutes (2minutes or more per click). The number of crashes of the IDE per day is also pretty high. We have started recordi ...Show All
talraviv How to assign an explanation to a function in c#
Hello, I have functions in my library, but their explanation isn't enough to understand by only looking at their signatures. Meaning Like whenever you go over a DataAdapter.Fill() Method with your mouse, it will explain to you what that function does in 2-3 lines. But when you go over my function with your mouse it only tells you the signature. I want to learn how to add information for my function for on mouse over tips. DataAdapter.Fill() : -------Data Adapter Signature Here--------------- Adds or refreshes rows in a System.Data.DataTable to match those in the data source using ...... MyFunction.DoSometing(): ---------Function Signature Here-------------------- -No further explanation- ///<su ...Show All
BinCoder Help required for passing data between various aspx pages
Hi, I am a newbie to asp.net web applications. My web application consists of Default.aspx page which is made up of frames, where each of the frames's source is an aspx page. Is it correct to have like this. I have made the source of each frame as an aspx page because I want to display the items in each frame using Repeater control. The application's start page takes the query string, calculates the result and sets the value to a variable named Result. The start page is not Default.aspx page. Now I want to use this Result object in the source aspx pages of each frame. I want to load each of the frames with some values, depending on the Result value. So, how do I share this variable Result Any help will be appreciated ...Show All
IanBlackburn Passing an inherited class as 'T' to a generic container.
I'm having trouble finding out how to use a general purpose generic container I wrote as a member of another class which wants to hold any class type based on a common base class. The first set of code below shows 4 seperate classes, RNode is a generic class, TreeControl has an RNode<TreeItemBase> member, and a "Root" property to access it, TreeItemBase is a control (not really important to this), and TreeItemHeader is derived from TreeIItemBase... Public class RNode<T> {} public partial class TreeControl : ScrollableControl { private RNode<TreeItemBase> root = null; public RNode<TreeItemBase> Root { get { return root; } set { root = value; } } } publ ...Show All
Doug 123 What is the maximum literal address for a local file?
I thort it was 255 but when tried I found it only == 248 CHAR full LITERAL filename & path string length!!! How do I determine what the user can enter before submitting it to the OS as the intended filename The limitation depends on the OS, the character set used and the format of the file name. The defined maximum is normally considered to be approximately 260 (MAX_PATH in Win32) but it could be less. The Unicode version using a full object name is supposedly 32K total with each part limited to approximately 255 but you won't be able to use that format in .NET. Irrelevant you shouldn't hard code the value as it could change over time. There is no property or method in .NET to determine the maximal value because it var ...Show All
Beric Holt Run Windows Application From Windows Service?
Hi, I have made a windows service that has a timer checks for a certain time to remind me. Now the time is reached so i want the service to display an alert!! I have made a windows app that shows the alert but when i run it from the service it runs but not GUI displayed!!! I can see it runs from the Task Manager but i cant show the form. So is there any way to dispay i GUI alert from a windows service Thanks a lot Hello Mr TheMaj0r I have a problem on the same topic. But I am beginner on .NET and I don't have any about .NET remoting. Can u please post code How to run windows application from windows service or Plz give me step by step process. How to do it ,I hope u will understand my Request and help me, Can you ...Show All
VickyN Error while trying to run project: Unable to start program - Access Denied
I have installed Visual Studio 2005 in my mechine. Then I just tried to create one windows application using c#.net . It was successfully created and build also. But when I tried to execute by clicking F5 it is throwing error like " Error while trying to run project: Unable to start program Access Denied " Please help me in this. Thanks&Regards, Raja Hello, Do you have rights to execute the application you need to have rights in order to debug your application but if you try START WITHOUT DEBUUGING (crtl + F5 ) it would work. Solution: Grant your access Otherwise write values in the file rather than debugging. I hope it works for you. Kindest Regards, Dear Raja, You ca ...Show All
looknow12 How to get App.Config file path if it is created along .cs files
Hi In my C# application, I have created an App.config file in C# source file path and this is no way related to the assembly or exe location. when I try using System.Configuration's method and properties I always have found it returns the assembly/exe path but I need to get the source path. Note : Main idea behind this is, I have created some xml elements in App.Config file and I will load this xml using ConfigXmlDocument instance. Thanks.. GopX The path to a source file is not available and would be irrelevant anyway. The path is always relative to the assembly that is running irrelevant of the source code. The source code does not exi ...Show All
sureshv Serial Com port Modem Detection
hello Everybody, I am stuck in one problem, Previously I was doing RAS (Remote Access Service) for dailing purpose through internal modem. And I made my application fully working, i.e. if how many modems are there in the pc it was working fine. But now the hardware changed and we have a serial com ports how my program was using RAS API for finding out the modems in the computer through RasEnumDevices() function, but now as everything has shifted to com port i m not get list of modem One more thing i m using VS 2003 so can anybody tell me how can i over come this problem. is there any api through which i can get the list of com ports and Can I use the RAS protocols i.e. RasDial as i was using previously. T ...Show All
smonet How to decrypt encrypted information
Hello, I need the ability to encrypt and decrypt information. I have a database with customer demographic information (First name, Last name, Address etc) that we want to encrypt. We need to be able to later decrypt this information if a CSR or, Tech Support agent pulls the customers account records. How can this be accomplished Thanks, Quilnux Thank you, I will review the information tomorrow when the project is reopened again. Thanks for your assistance. Quilnux This how-to is for .NET 1.1, but it should get you started... http://msdn2.microsoft.com/en-us/library/aa302405.aspx ...Show All
irving at irvingevajoan How to create table like structure and allow user to drag icons/images onto the cell?
Is there a way to create table like structure(like a datagridview) on a window form and allowing the user to drag icons or images on to the cell of the form Urgent... thanks in advance... u can use datagridview and handle the DragDrop event to handle the dragging of icons/images hi you can use TableLayoutPanel Control ...Show All
