I know its odd to post 2 different projects in a day but hence the lecturer asked us to do 2 in 1 week what else can I do so here is the problem he wants us to make a tic tac toe game that will ask for player 1 and 2 name then generate a random number for who will play 1st ok.. I though of a solution for that but it seems that player 2 always plays 1st also amm when I click on new game that recalls the code that you will see bellow the lblplayer1.text and lblplayer2.text don't reset to the new values untill I re-use the new game command what seems to be the problem? sorry for the bad explanation my English aint the best
Changed thread type to QUESTION. I was then able to mark AS ANSWER the relevent post which now also immediately follows this post and so it is easier to find as suggested by forum user j2associates .
<edit> It is also my 3rd post in this thread, the 8th one up, of my posts, from the bottom ( for now ), as the forum format has changed yet again.I will leave the rest of this post( as is ) purely for historical reasons. I have been on these forums long enough to see 3 forum changes. <edit> 19th May, 2010> Link added to a video on the next line of text.
Im trying to create a software which can post into yahoogroups.I've done trying to log in yahoomail but my problem is when I am going to post in yahoogroups, I am turning back in to yahoo log in page.
How can I create a namespace and classes in it, then save it, and reuse the namespace in other projects? Do I have to click on Create Class Library in Visual Studio?
Im gonna develop an application s/w using VB.Net & Oralce for a small company with 4 employees and a MD.
Each has their own PC connected through a Hub.The task of MD is to check in the employees daily work progress & to calculate their incentives in daily basics...
And each emp should be able to check their daily incentives from their PC using the passwords provided by the s/w Now my doubt is. how should I show the daily incentives updates to all emps PC from MD pc?(i.e) if i install the s/w in all PCs, will they'll get the updates automatically? DOES VB.NET can be used here or should we use ASP.NET?
I have a .Net solution with 5 projects in c# and one in visual basic. I want to know whether there would be a gain of performance to convert my visual basic project to C# in the day to day while I compile my solution.
How do you add new ocx files so they can be used in your projects? I download some free ocx files and cant use them right now cause I can't get them in the side bar thing.
I have a project named "slnAllForKids" in Visual Studio 2005. I have another project named "AFKLogin." There is a page called index.aspx in slnAllForKids. I want to redirect from index.aspx to home.aspx in AFKLogin when I click submit button in index.aspx.
I am currently doing a project which is to be linked with another project. I.e., when I click on some button in my current project's page I should get a page from the other project..
I'm going to build a large project and want to create several libraries (DLL) for it. I don't want to merge them all in one EXE, but want to use seperate DLL files.I don't want those DLL's to be used by others, so these DLL's should be protected so that they can only be used in my own project.I was thinking of using some sort of password in the New() proc, but that doesn't work for shared classes.
Other solution I was thinking of: is it possible to check if the calling assembly has the same strong name as the DLL?These solutions are just one of my ideas. I don't know if those will work and am not saying that one of them is the way to go.What is the best approach to accomplish this?
Every time I open a project, it closes the project I had open. I would like to have two or more projects open at a time. I like to do this so that I can reference old code, etc. The projects are not related in any way, so I don't want them linked in any way.
I have two .NET projects in the same domain. The first project I create long time ago in VB.NET. Now I create another project that I built in C#. How can I set up my new project in the same domain so I can access the new forms that I built in C#. Do I need to submit the whole folder from the project? Do I need to change anything in the web.config? Right now I am getting this error. [PhoneControl] is the new project in C#. [URL]
Well on VS it has the most recent projects which is only like four. WHen I want to access an older one I click open then click on the folder. I don't know what to click after that but whatever I click never brings the form up but it has it's name in the solution explorer in the top right.
I'm currently writting an class for importing data into application database from various formats. Basically, I want to pass a file path and the class would give back an class objects and from those objects I'll insert data into database. The problem is that I already have classes for containing data and classes that insert data from data-classes into database ready in the main application. But at the moment I cant Access the source of main application (Im at home and remote connection is down is what im trying to sayJ ). I only have setup.exe of application and the application is already instaled on my home pc (I have .exe in program files).
Is there any way I can add a reference of this application into my current Project so that i can use the classes that are defined in main application?
I have a Windows Forms UI, a Class Library, and a WebService. I need to be able to pass an Enumerated type through each of these layers (SystemType). For instance, the UI passes the type to the class library, which then passes the type to the Web Service.My question is, where do I define this enumeration type so they all know about it.
Options so far:
- Each project contains the exact same enumeration.
- Put the enumeration in its own project and reference this assembly from each of the other projects.
I've been poking around in some projects written by one of our contractors, and he seems to be storing a lot of settings in the main "app.config" file for the application, using, for example:
<add key="SomeClass/SomeValue" value="False"/> And then referencing the key value in the "SomeClass" class in "SomeProjectLibrary" using ConfigurationManager.AppSettings.Get("SomeClass/SomeValue")
While this works, I guess, it also pretty much sucks. I was wondering if anyone knew of some more elegant way of creating variables in the "app.config" file, which could then be used across various applications within a Solution?
Do you use 'strict off' option, 'explicit off'? Or may be 'strict custom' and some other options like 'Implicit type. Object assumed', 'Late binding', 'Implicit conversion'?
I'm using Visual Studio 2010 and coding in VB.NET.
My problem is that I've collected all the modules I've written and intend to reuse and placed them in a separate folder. When I want to add a module from the above folder to any given project, it takes a copy of the module and places in the project's source code folder, instead of referencing the module in the folder containing all the other modules.
Is it possible to include a module in my project and leave it in the folder with all the other modules, so that when I improve upon a module, it'll affect all the projects that uses/references that module. Instead of me having to manually copy the new module to all the projects that uses/references the module. Right now I have multiple instances of the exact same module that i need to update manually when I improve code or add functionality?
When I download a project source file like DDDPDS in codeplex and after I do a build I am not able to run or debug the applications since I encounter different Exceptions.I think it has to do with my knowledge of configuring a first time debug. For example I never had the chance to download a project from codeplex and run it truely withoutdifferent type of exception before even the main form comes up.This is not the first time that a project will not startup after build.
I have a base class ("MyBaseClass") in a project called "BaseFramework" which is included in several solutions within the company. There are several derived class's in various projects throughout the company that inherit from "MyBaseClass". If I then create a List and add derived class's to it, it will not serialize. I realise that if I were attempting to serialize this list, and the base class and derived class were in the same project, I could simply apply the "XmlInclude" attribute to the base class and include all of the derived class's. This is however not possible across projects, because that would require a circular dependency.
How can I have code-sharing between two projects without making a dll?
The issue is: I have a tool that syncs users & groups from LDAP to a database.
Now the tool is a windows service, but testing it as such is very difficult and time consuming.
Which is why I made a console application where I can test the LDAP syncing, and then just copy the respective sourcecode-files over to the service project.
But... keeping the common files in sync is a bit of a problem. I don't want to make a dll, because this probably creates me a problem with the 3rd project, a windows installer (for the service) where I have to use ExecutingAssembly path...
Is there a way to share the code without making a separate dll? Automagic statical linking, so to say ?