|
. Other ideas?
|
|
|
|
|
If all you are after is a remote desktop viewer that you can use in .NET code, you might want to check out Palantir[^].
"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
|
|
|
|
|
I'm looking for server not client
|
|
|
|
|
Hi,
I had upgrade my visual basic project to .net, and i think it is possible in c++ also.
Here i can not attach any thing, so Please give me your email id so i can explain you the same.
Regards,
Sunil G.
|
|
|
|
|
You can upgrade VB to VB.NET as VB.NET is based on VB - but there are lots of points that you end up having to code yourself. Trust me on this - you can't automatically upgrade C++ to C#, and I don't go giving my email address to complete strangers.
"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
|
|
|
|
|
Hi,
I have created an application that is basically a file browser with some special functionality to work with my employers content management system. I have managed to customize the code to work with Windows 7, coming from XP. The main issue was related to UAC and the writing to various sections of the registry.
However one problem does remain: I have some code for opening the files in their predefined editors, these are of course also defined in the windows registry. This portion works fine on Win7. I have implemented a function where the user can choose to open a file with a custom editor, this is done using a contextmenu which invokes the following code:
internal void EditAs()
{
try
{
ProcessStartInfo Info = new ProcessStartInfo(localFile);
if (File.Exists(localFile))
{
int i = 0;
foreach (String verb in Info.Verbs)
{
Console.WriteLine(" {0}. {1}", i.ToString(), verb);
i++;
}
}
Info.ErrorDialog = true;
Info.UseShellExecute = true;
Info.Verb = "OpenAs";
Process.Start(Info);
}
catch (System.ComponentModel.Win32Exception except)
{
MessageBox.Show("Could not open application. Please check executable path.",
"Application missing",
MessageBoxButtons.OK,
MessageBoxIcon.Warning);
}
catch (InvalidOperationException ex)
{
return;
}
}
The code works fine in win XP but in win7 I get an error message stating that
"This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel."
When I click OK on the first message I get the error message from my catch clause.
I have googled like crazy for a solution to my problem, does anyone have a clue?
Thanks in advance!
/martin
|
|
|
|
|
hii all,
I have managed to create a backup file (.bak) with the help of stored procrdure found on code project examples. Now i dont know how to restore this file with the existing one for the completion of restore. can any body help me out with this problem. Can we able to rstore it from c#.
Regards
Narendra Singh
(Jindal Tech Ventures)
|
|
|
|
|
|
Why you are not doing the restore process via a SQL stored procedure...?
Thanks
Md. Marufuzzaman
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
|
|
|
|
|
yes i m trying to do it with the help of stored procedure but i m not getting the result
i m using default restore command of sql server.
do u have any idea or any example to give me a start.
Regards
Narendra Singh
(Jindal Tech Ventures)
|
|
|
|
|
The following stored procedure will restore the database. This is helpful when you need to restore the database from other applications:
CREATE PROCEDURE [dbo].[sp_db_restore]
@DBName varchar(60),
@BackName varchar(120),
@DataName varchar(60),
@DataFileName varchar(120),
@LogName varchar(60),
@LogFileName varchar(120)
AS
RESTORE DATABASE @DBName FROM
DISK = @BackName WITH MOVE @DataName TO
@DataFileName ,
MOVE @LogName TO @LogFileName,
REPLACE
GO
Parameters
DBName - Database Name to be restored
BackName - Path & Name of the BackupFile
DataName - MDF File name
DataFileName - MDF File Path
LogName - LDF File Name
LogFileName - LDF File Path
Replace: Will replace the Database if it exists.
Thanks
Md. Marufuzzaman
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
|
|
|
|
|
thanks for ur reply
i tried ur stored procedure but it gives the following error
any idea how can i remove it
"RESTORE cannot process database 'databasename' because it is in use by this session. It is recommended that the master database be used when performing this operation.
RESTORE DATABASE is terminating abnormally."
Regards
Narendra Singh
(Jindal Tech Ventures)
|
|
|
|
|
I'm Just beginner of learning C#. I designed a login page and registration page.When i entered all the details in registration page, it was stored in a particular database table"Register".After that, i don't know how to allow only the registered users to login to my home page.
modified on Monday, December 21, 2009 2:09 AM
|
|
|
|
|
Check to see if the user is in your database. Read up on ADO.NET, there are thousands of examples.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
How commands "AT Command" SIM card will be charged.
Tasnk.
How commands "AT Command" SIM card will be charged.
|
|
|
|
|
Hi,
This the code i wrote to extract all the users details of an organization across domain
System.DirectoryServices.DirectorySearcher mySearcher = new System.DirectoryServices.DirectorySearcher("gc://dc=xxxdomain,dc=net");
mySearcher.Filter = ("(objectCategory=person)");
mySearcher.PageSize = int.MaxValue;
Console.WriteLine("Listing of users in the Active Directory");
Console.WriteLine("========================================");
using (var searchResultCollection = mySearcher.FindAll())
{
foreach (System.DirectoryServices.SearchResult searchResult in searchResultCollection)
{
foreach (string prop in searchResult.Properties["distinguishedname"])
{
Console.WriteLine("distinguishedname : " + prop.Trim());
break;
}
}
}
I got some output that only fetches the data for a domain where the user resides and not the complete data. Can anyone help me on this what went wrong in the code?
|
|
|
|
|
private void button5_Click(object sender, EventArgs e)<br />
{<br />
Form2 frm2 = new Form2();<br />
frm2.Show();<br />
}
when i run the code ,click button5,not any happened to me,Form1 still Form1,Form2 still not show?it just as have never happened?
what's the reason?thanks every to help me !
|
|
|
|
|
did you assign event handle?
buttion5.Click += new Systen.EventHandle(button5_Click);
If designer did create button5_Click function, then it should assign Click event
|
|
|
|
|
not that,i use button1 and other buttons,it also do not work
|
|
|
|
|
Form2 is being destructed immediately after the Show() method, causing it to be closed.
/ravi
|
|
|
|
|
Hi All
i need to print a departmental store slip on 4.0 inch wide on paper roler.
if any body can help me
thanks
Thaer
|
|
|
|
|
- Connect the printer to your computer and ensure all drivers are installed.
- See this[^] article.
/ravi
|
|
|
|
|
i m programatically building a datatable and populating that datatable with data from a text file.nw i m assigning that datatable to report viewer but report viewer is not showing any data.here is my code
if (counter != 0)
{
for (int j = 0; j < counter-1; j++)
{
fieldValues = file.ReadLine().Split(new char[] { '\t' });
DataRow dr = dt.NewRow();
for (int i = 0; i < fieldValues.Length; i++)
{
dr[i] = fieldValues[i].ToString();
}
dt.Rows.Add(dr);
}
}
reportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local;
this.reportViewer1.LocalReport.ReportPath="C:\\Documents and Settings\\amohiuddin\\My Documents\\Visual Studio 2008\\Projects\\sample reporting application\\sample reporting application\\Report1.rdlc";
this.reportViewer1.LocalReport.ReportEmbeddedResource = "sample reporting.Report1.rdlc";
this.reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.DocumentMapCollapsed = true;
this.reportViewer1.DataBindings.Clear();
this.reportViewer1.LocalReport.DataSources.Add(rds);
this.reportViewer1.Show();
this.reportViewer1.RefreshReport();
}
can someone tell me what i m missing?
|
|
|
|
|
Try without refreshing the report at last, may be this will help you
Regards
Narendra Singh
(Jindal Tech Ventures)
|
|
|
|
|
I've got a large Azure/C# project ahead. I was ready to
install Win7, but I'm not sure whether there are marked
advantages or disadvantages to using 32-bit vs 64-bit.
The project is mostly C#, which could be 32-bit or 64-bit,
but it will include at least one legacy unmanaged 32-bit DLL.
We haven't decided how to deal with the DLL yet...maybe a
wrapper, or maybe just set it up as a separate process that
will talk to managed code via TCP/IP (seems like comm options
are limited).
We'll also need to deal with a couple other unmanaged apps
that won't be going into Azure-land. But development concerns
would still relate.
If you can think of any notable advantages or disadvantages
in 32-bit vs 64-bit, I'd appreciate your insight.
|
|
|
|