|
Sohial A Rana wrote: you are not a child my dear.
But it seems you are a child asking others to search for you.
|
|
|
|
|
i know every type of problem can be solved via search engine. if every problem solve by searching then why people raise questions here?
|
|
|
|
|
Sohial A Rana wrote: i know every type of problem can be solved via search engine. if every problem solve by searching then why people raise questions here
|
|
|
|
|
Sohial A Rana wrote: i know every type of problem can be solved via search engine. if every problem solve by searching then why people raise questions here?
People come here only if they do not find the information through search engines. Google gave me 1,76,000 results for "C# Single instance", the top two of which are CP articles. If you had even tried this, you wouldn't have posted this question here.
|
|
|
|
|
Do you have trouble clicking the Search button ?
|
|
|
|
|
|
I have done it. Thanks for all
|
|
|
|
|
Try using Mutex for inter process communication it is best and as easy as needs only 3 lines of code
|
|
|
|
|
|
Hi!
I am getting this error when I try to assign a value to a class property called country that is in a class called advert
advert class
public class Advert
{
private Country _country;
public Country Country
{
get { return _country; }
set { _country = value; }
}
}
country class
public class Country
{
private string _CountryName;
private string _UrlSafeCountryName;
private string _CountryCode;
public Country()
{
this.CountryName = "";
this.CountryCode = "";
this.UrlSafeCountryName = "";
}
public string CountryName
{
get
{
return _CountryName;
}
set
{
_CountryName = value;
}
}
public string UrlSafeCountryName
{
get
{
return _UrlSafeCountryName;
}
set
{
_UrlSafeCountryName = value;
}
}
public string CountryCode
{
get
{
return _CountryCode;
}
set
{
_CountryCode = value;
}
}
}
in my DAL where i get error
advert.Country.CountryName = (string)oReader["CountryName"];
not sure if i am doing it correctly? please help
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:58am.
|
|
|
|
|
and possibly first instantiate advert also (advert = new Advert() )
Nah... What's up, Doc?
CCC's solved : 1
|
|
|
|
|
private Country _country = new Country();
should solve your issue!
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
|
|
|
|
|
Hello,
i want to open google chrome and then i want to pass keyword say "Codeproject.com".
I have used process class to open chrome, but how do i use sendkeys() to it.
Process newprocess = new Process();
newprocess.StartInfo.FileName = "chrome.exe";
newprocess.StartInfo.Arguments = "www.google.com";
newprocess.Start();
SetForegroundWindow(newprocess.MainWindowHandle);
SendKeys.SendWait("CodeProject.com");
Please help me its urgent.
Thank you in advance.
|
|
|
|
|
krinaljariwala wrote: Please help me its urgent.
Not here it isn't.
Have you tried going to google, put your search in and clicking the search button? It puts your search in the url, and you could do the same rather than trying to use the very dodgy method of sendkeys.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi everybody
I have old dll(s) that implemented with Visual Basic 6.0 and Borland Delphi 6.0 and Visual C++ 6.0
I haven't the source of these dlls, So I want to know how can import these dll to C# .Net as a reference.
Best Regards,
Reza Shojaee
|
|
|
|
|
If it's a COM component you can just add it from the COM tab and let VS create the Interop.
|
|
|
|
|
I tried with COM tab but VS doesn't accept it
Best Regards,
Reza Shojaee
|
|
|
|
|
Do you receive some sort or Error ?
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Then it's not a COM-based .DLL. You'll have to use P/Invoke to get at the functions it exposes. I hope you have all the documentation on the functions because, if you don't, you're going to find it nearly impossible to call the functions in the .DLL.
|
|
|
|
|
You need to look up interop services. You can use tlbimp.exe to generate your interop if it is COM (which from the post above seems not to be the case). Otherwise, you can use the DLLImport attribute and reference the functions this way. You will find it tricky to figure out the proper types to use in the function signature, so you need to research a little. But, this is your start.
[DllImport("TheCplusplus.dll")]
static extern uint BTSeparateItems([In, MarshalAs(UnmanagedType.BStr)] string filePath, out object obj);
|
|
|
|
|
Hi, im new to using stored procedures and i have the following stored procedure...
CREATE OR REPLACE PROCEDURE DRL_PROCEDURE2(var_SOURCE_OBJECTID IN varchar2, var_NEW_OBJECTID OUT varchar2)
AS
BEGIN
SELECT MAX(NEW_OBJECTID)
INTO var_NEW_OBJECTID
FROM DRL_CONVERSION
WHERE SOURCE_OBJECTID = var_SOURCE_OBJECTID;
END;
I want to be able to call this procedure from my windows form application and display the result of the stored procedure into a label or a datagrid using C#...could someone please help me! Thanks in advance!
|
|
|
|
|
Just google ADO.NET, there are thousands of examples
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
|
That's not a procedure; it's just a simple query. I'd pass it to ExecuteScalar, that's what it's for.
As the other person said; read up on ADO.NET.
|
|
|
|