|
i'm using sql server and sql server authentication to log the users , when the application connecting the db connection string carries the password and the username , what i want to do is encrypt the connection string when connecting the db ,
COULD you tell me how to do this ......
|
|
|
|
|
Try this one.
If that doesn't work, you should search Google like I did for that link.
Hogan
|
|
|
|
|
|
Can anyone help me with this error. It appears to happen when I try to create an istance of the UPnPDeviceFinderClass.
Creating an instance of the COM component with CLSID {E2085F28-FEB7-404A-B8E7-E659BDEAAA02} from the IClassFactory failed due to the following error: 80070422.
My application searches a LAN for uPnP devices, for some reason it works fine on most computers but there are a select few that I get the above error.
Freedom is the right to say that 2+2=5 if this is so everything else will follow.
|
|
|
|
|
...I would assume that you are using the 2.0 Framework? ...It has been suggested that that error is caused by a bug in the framework. There's a hotfix available here ...Apply it and see if your error disappears. If it does, come back and let everyone know. If it doesn't, then I'm out of ideas.
"I need build Skynet. Plz send code"
|
|
|
|
|
Hey Alaric_,
Your assumption is correct, I am using the 2.0 Framework.
I did install the update that you recommended, but it didn't change a thing unfortunately.
Thank you very much for your suggestion, at the minute I'm stuck between a rock and a hard place.
If anyone else has any suggestions I would be glad to hear them.
Freedom is the right to say that 2+2=5 if this is so everything else will follow.
|
|
|
|
|
hello
when i compiling this code its appended allthe lines in one line..
I want to keep the file as it is and want to add comment where there is assemblyVersionInfo string...
String strPathToFile = "Put here the path to the .cs file";
System.IO.StreamReader sr = new System.IO.StreamReader(strPathToFile);
System.Text.StringBuilder strAllText = new System.Text.StringBuilder();
bool AlreadyCommented = false;
do
{
if(sr.Peek() == -1) break;
String line = sr.ReadLine();
if(line.IndexOf("AssemblyVersion") > -1 && line.IndexOf("//") > -1) AlreadyCommented = true;
strAllText.Append(line);
}
sr.Close();
if(AlreadyCommented) return;
System.IO.FileInfo fi = new System.IO.FileInfo(strPathToFile);
fi.CopyTo(strPathToFile + ".bak"); //backup copy of the old file
int posOfAssemblyVersion = strAllText.ToString().IndexOf("AssemblyVersion");
//Look for the closing bracket "]"
int posOfClosingBracket = strAllText.ToString().IndexOf("]", posOfAssemblyVersion);
string strComments = "//Put there the desired comments";
strAllText = strAllText.Insert(posOfClosingBracket, strComments);
System.IO.StreamWriter sw = new System.IO.StreamWriter(strPathToFile, false); //overwrites the original
sw.Write(strAllText.ToString());
sw.Close();
if you have any ans then plz reply as soon as
thanks
|
|
|
|
|
instead of strAllText.Append(line);
you might want to look at strAllText.AppendLine(line);
Have Fun
|
|
|
|
|
hi,
I want to update the data part of a chart which is already there in my word docuement. I am working in C# 2.0 console application. I am using a word template which has a graph in it. I have a dataset and I want to update the data source of the graph at runtime. Is there any way to do this? I tried reflection but it does not work.
|
|
|
|
|
sealed class Class1
{
public int g=0;
}
class pan
{
Class1 d = new Class1();
}
i know i can't inherit the sealed class , but after instantiating the selaed class in another class , i am not getting the class name object.
eg after instantinating the class class1
Class1 d = new Class1();
in next line of code when i type the character d , the intellisence does not show the object d.
why this is happening ?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
definitely it should work. For clarification try with some default sealed class in the .Net framework.
Check if you are trying to access the class from any methods or not.
|
|
|
|
|
class object are not appearing while i try to access the member functions of that sealed class
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
check this,
<br />
sealed class A()<br />
{<br />
public string Add()<br />
{<br />
}<br />
public int id;<br />
}<br />
<br />
class B<br />
{<br />
A obj=new A()<br />
<br />
<br />
public void method()<br />
{<br />
obj.Add();<br />
}<br />
}
|
|
|
|
|
ok solved
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Hi,
In my application, i want to allow the user change their local time by a form. But I don't know how
Can you help me ?
Thank for support
|
|
|
|
|
Hello,
The kernel32.dll provides a method called SetLocalTime:
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public struct SystemTime
{
public short sYear;
public short sMonth;
public short sDayOfWeek;
public short sDay;
public short sHour;
public short sMinute;
public short sSecond;
public short sMilliSeconds;
}
[System.Runtime.InteropServices.DllImport("kernel32.dll")]
public static extern bool SetLocalTime(ref SystemTime time);
Or call the System Timesetting directly over a process:
using System.Diagnostics;
ProcessStartInfo TimeSetting = new ProcessStartInfo(@"C:\WINDOWS\system32\rundll32.exe","shell32.dll,Control_RunDLL timedate.cpl,,0");
TimeSetting.UseShellExecute = false;
TimeSetting.WorkingDirectory = @"C:\WINDOWS\system32";
Process TSet = Process.Start(TimeSetting);
TSet.Dispose();
TSet = null;
Hope it helps!
All the best,
Martin
|
|
|
|
|
In the OS? Or just for your application?
I wouldn't attempt the former.
|
|
|
|
|
can sum1 plz provide me codes to make a media player in c#!!!
vid thanx...
Tarun SUneja
|
|
|
|
|
Nope. We're here to help you write your own code, not just hand over our own work to someone to play with.
|
|
|
|
|
Hi,
I'm wondering if there is a content alignment feature inside container controls (Panel, TableLayoutPanel) . e.g. I have several controls in a TableLayoutPanel. Those controls may change their size on runtime. I want to place them into a grid (like html table) one per cell and align them to middle of the cell(horizontally and vertically). Is this possible without writing custom code ? Until now, I figured out only way that to keep them aligned is to dock-Fill them.
|
|
|
|
|
Hello,
Have a look at the "Anchor" property of the controls?
Maybe it fits your needs.
All the best,
Martin
|
|
|
|
|
Thanx for answer.
anchor doesn't provide what I need.
|
|
|
|
|
do anyone have the coding for messenger in C# language or any other language
kindly reply asap
|
|
|
|
|
It's easy to build a chat application. But a messenger like msn is far more complicated. The client should be in sync with the server. i.e: whenever you get a new message the client should be intimated. Mechanisms like polling in regular interval would be complicated,or rather may not be optimal . I think msn messenger has implemented a tcp channel for that purpose.
|
|
|
|
|
there is a file called class diagam in the project Now my qustion is what's the utility of this file.Just to view the class (the project have)?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|