|
Can you explain regedit? (I'm sorry, I'm still a beginner... Haven't done too much for a long time for real, anyway... And I've never really messed around with internal C# stuff)
Where can it be found?
- I love D-flat!
- Need. More. Code.
|
|
|
|
|
I just erased everything under it's file, and I try to open it and it STILL lets me open it, but it's unavailable. How do I get rid of it? Step by step instructions, please? THanks for your help, though.
- I love D-flat!
- Need. More. Code.
|
|
|
|
|
Well; I just got it. I messed the name up, and it let me remove. Thanks for the help, even though it's STILL over my head.
- I love D-flat!
- Need. More. Code.
|
|
|
|
|
I see you sorted it. For future reference - or anyone else that comes across this:
1. Close Visual Studio
2. Start, Run... type in regedit and hit OK
3. Open the folders/sub folders in the treeview in reg edit in this order
HKEY_CURRENT_USER
Software
Microsoft
VCSExpress (// VBExpress for VB, VisualStudio for Full VS)
8.0 (// for 2005, 7.0 for 2003, 9.0 for 2008)
ProjectMRUList
4. Make sure that ProjectMRUList is selected so the status bar reads in your case:
My Computer\HKEY_CURRENT_USER\Software\Microsoft\VCSExpress\8.0\ProjectMRUList
On the right will be a list of string values named File1, File2 etc with values that match the location of your Most Recently Used (MRU) projects e.g.
%USERPROFILE%\My Documents\Visual Studio 2005\Projects\Windows Application 1.sln
5. Right click on the value name and select Delete
6. Rename any higher named values so they are sequential File1, File2 etc... if there is one missing in the sequence VS will stop looking beyond the lowest one found.
7. Close regedit and relaunch Visual Studio and the project will no longer be in your list
Dave
|
|
|
|
|
Hi everybody,
I have a small Windows C# distributable application that connects to SQL Compact 2005. The application allows the user to view,insert,update and delete records stored in the database. This is a single user application and I would like to extend it to be a multiuser application. I want the application to be installed on a main machine (which would connect to the database) and have client installations which would perform the operation on the database installed in the main machine.
I am new to this subject and I am not sure where to start. I have been looking for a book or samples that would help me achieve this but I haven't been able to find anything. I have been looking for "2-tier applications c#", "client server applications .net", etc.
Could somebody guide me in the right direction?
Thanks in advance!
|
|
|
|
|
|
|
Hi,
in client server application, we have to use common Connection String, so that all the client installation can connect with centralized database at Server.
so, have you used connection string in your single user application ? if yes then use the connection string of Central server in App.config file so all client installation will point central server database.
use the connection string in App.config like,
<connectionstrings>
<add name="Connection String" connectionstring="Data <br mode=" hold=" /">Source=local/(central Server instance name);Initial Catalog=Database Name;User ID=sa;Password=sa" providerName="System.Data.SqlClient" />
then use this connection string in your Connection object.
so your all database related code will point this central server.
try this.
Chirag Patel
Programmer Analyst
|
|
|
|
|
Thank you for your answer. Yes, I do use a connection string in my application, however I do not store it in App.config. It is contructed at run-time since the localtion of the database depends on where the users decide to install the applications. I will try to move it to App.config.
From what you are saying then, my client applications will only have to point to the location of the central server to find the Database and it will work just like if the database was locally installed. Did I understand correctly?
Do I need to change my C# code to manage multi-users vs single users?
Thank you for you help!
|
|
|
|
|
I have made a deployment project on Visual Studio 2005, but there is a problem - all the files and folders, and the welcome text of the installer contain Cyrillic text. When the installation runs all the Cyrillic text is displayed like white squares! How can i fix this problem???
Still learning...
|
|
|
|
|
Hi nike_arh
Fine, If u can please give a sample output or screen shot.
this may be help to me wat u r try to say?
thnaks
|
|
|
|
|
|
Hello to all,
First, sorry for my english.
I have an aplication where the user should write in a textbox a regular expression, then all the words that matches in an listBox should be selected, and it works fine, but if the user intruduces a bad regular expression (like *a instead of a*) it blows the all thing. How could i fix it.
here is part of the code:
////////////////////////////////////////////////////////////////////
string exp = textBox1_Tab3_Create6.Text;
Regex rexp = new Regex(exp);
//compara a substring de cada item com a introduzida e
//selecciona se for igual
for (int i = 0; i < listBox1_Tab3_Create6.Items.Count; i++)
{
string word = listBox1_Tab3_Create6.Items[i].ToString();
if (rexp.IsMatch(word))
listBox1_Tab3_Create6.SetSelected(i, true);
}
///////////////////////////////////////////////////////////////////
Thanks for any help
|
|
|
|
|
I guess by "it blows the all thing" you mean you get an exception because the regex is wrong?
Nothing easier to fix:
string exp = textBox1_Tab3_Create6.Text;
try {
Regex rexp = new Regex(exp);
}
catch(ArgumentException e)
{
}
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
tanks for the help.
The exception works just fine.
I think i must work harder... 
|
|
|
|
|
Hi pcaeiro
You means when u type "*a" it's show will give error? If it will give error please post that error here
because of "it blows the all thing"
thanks
|
|
|
|
|
tanks for the help but i have already solve my problem. 
|
|
|
|
|
Hi All,
This has to be one of the most common things I'm encountering when looking at MSDN Examples.
I'm wnating to grab a list of the logical drives on my computer. Dead simple ... ?
So I looked up some examples and found this on MSDN (i've always used Directory.GetLogicDrive();) so I thought I'd give this a try.
using System;
class Sample
{
public static void Main()
{
Console.WriteLine();
String[] drives = Environment.GetLogicalDrives();
Console.WriteLine("GetLogicalDrives: {0}", String.Join(", ", drives));
}
}
Putting the line:
String[] drives = Environment.GetLogicalDrives();
Yields an error saying that drives doesn't exist in this context. How can such a simple example not work in my code? I'm Confused!!
Jammer
Going where everyone here has gone before!
|
|
|
|
|
There is nothing wrong with that line of code. You have to show a bit more of the code where you use this.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
DOH! It was in a private method ... making that method public has fixed it.
I'm still very much getting my head around how to scope things in C#. I'm SO used to FoxPro (like 10 years worth of nothing but FoxPro) and that doesn't care what you do, like
x = 0
x = "boo!"
and it will just carry on ...
Jammer
Going where everyone here has gone before!
|
|
|
|
|
Jammer wrote: I'm still very much getting my head around how to scope things in C#. I'm SO used to FoxPro
Then you have a lot more than just scope to get your head around...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi Again,
All i'm doing is:
private static List<string> GetMachinesDirectoryList()
{
List<string> DirectoryList = new List<string>();
string[] drives = Directory.GetLogicalDrives();
return DirectoryList;
}</string></string></string>
Yet neither line works for me ... If I add a watch I just get an out of context error. All the examples out there I can find do *exactly* the same thing string[] drives = Directory.GetLogicalDrives(); so how come this doesn't work in my code?
Cheers,
Jammer
Going where everyone here has gone before!
|
|
|
|
|
Are you getting a compiler error or a runtime error? The method should look like this:
private static List GetMachinesDirectoryList()
{
string[] drives = Directory.GetLogicalDrives();
return new List<string>(drives);
}
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
using it in a private didn't work for me .. its working now that its in a public method.
weird.
Jammer
Going where everyone here has gone before!
|
|
|
|
|
System.IO.Directory.GetLogicalDrives(), I believe. Your problem is probably that the example assumes a using statement.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|