|
|
Just out of curiosity, what version of visual studio are you using? (The instructions you pointed to were for visual studio 2003)
|
|
|
|
|
Hi,
I use Visual Studio 2008.
regards
|
|
|
|
|
|
hello everyone
I would like to know how to convert vb.net code in c#.
thanks
|
|
|
|
|
Google[^] not working where you are?
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|
Thank you for your reply, but after a rechreche on google, I found many solution, but I preferred to have the opinion of someone who already work in this direction, and thank you again.
|
|
|
|
|
|
|
The SharpDevelop IDE can convert those files automatically
I are Troll
|
|
|
|
|
I downloade SharpDevelop but I don't now how to use it ?
thank .
|
|
|
|
|
Open your solution, open the file that you want to convert, and select the menu "Convert code to" from the "Tools" menu
I are Troll
|
|
|
|
|
|
There's a handy Visual Studio 2008 addin called MoXAML Power Toys[^] that does this.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
Hello friends I have a Observable collection in my wpf window.
There is a textblock in my window which text initially should be "No Message yet" (when Observable collection is empty).
What I need to do is to set the text value of that textblock to " " when Observable collection changes (count becomes > 0)
how Can I do this.?
Any help or hints would be highly appreciated.
Thanking in Advance
Johnny
|
|
|
|
|
Subscribe to the CollectionChanged event, and set your text accordingly
|
|
|
|
|
Yes I understand I can do this using event aggregator. but I was wondering if it can be done using trigger in xaml.
If it's possible plz let me know.
Thanking again
Johnny
|
|
|
|
|
|
Hi,
Is there any control or dll which can be used for showing map without using internet connection in .net which works in windows application and which can show the point information in pop up
Thanks
|
|
|
|
|
kjsl2k9 wrote: Is there any control or dll which can be used for showing map without using internet connection in .net
The problem you face is lack of Internet connectivty, the amounts of data in mappring are generally massive and costly to prepare by the provider. Google and Microsoft can do this for free due to economies of scale.
Yoiu will almost certainly not get anything for free, but there will be paid (and probably expensive) things you get for 3rd party suppliers.
Hopefully someone else will have a more positive response.
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
|
I've got 2 connection strings:
1. "Data Source=.\SQLEXPRESS;
User Id=sa;Password=hello;
AttachDbFilename=C:\inetpub\wwwroot\MySite\dbs\MyDb.mdf;
Connect Timeout=30"
2. "Data Source=.\SQLEXPRESS;
AttachDbFilename=C:\inetpub\wwwroot\MySite\dbs\MyDb.mdf;
Integrated Security=True;Connect Timeout=30;User Instance=True"
2nd is working perfectly for db connection,
but using 1st returns that error:
System.Data.SqlClient.SqlException:
Unable to open the physical file "C:\inetpub\wwwroot\MySite\dbs\MyDb.mdf".
Operating system error 5: "5(Access Denied)".
An attempt to attach an auto-named database for file
C:\inetpub\wwwroot\MySite\dbs\MyDb.mdf failed.
A database with the same name exists,
or specified file cannot be opened,
or it is located on UNC share.
In SQL Server COnfiguration Manager I enabled all services
and protocols - SQL Server (SQLEXPRESS), SQL Server Browser,
Shared Memory, Named Pipes, TCP/IP, VIA.
In SQL Server Management Studio Express sa/hello user is present
and Server Properties->Security - SQL Server and Windows Authentication mode
If I put incorrect password in 1st connection string it reports password error.
Here is the code to connect to db and get some records just for a sake:
SqlConnection con = new SqlConnection(this.connection);
SqlDataAdapter da = new SqlDataAdapter(sql, con);
DataSet ds = new DataSet();
int nRows = da.Fill(ds, "Persons");
Чесноков
|
|
|
|
|
I am guessing that the Sql Server runs on a user which has no read/write access on the file specified by you in the connection string. When you use windows authentification and it works, probably you are logged on an administrator account or some other privilegiated user class.
I would start by checking the user that started the sql server (in task manager) an go check that file and all the intermmediate folders if that user has permissions.
I have no smart signature yet...
|
|
|
|
|
There is no sql server exe in task manager. It is running as a service.
I've got only 1 user with admin rights on PC and logged in as him while connecting with 1st and 2nd connection strings.
For that folder I set up RW access for all users. I also added that single user and set up RW access. But still the same error.
Чесноков
|
|
|
|