|
Thank you for the extra comments Pete, much appreciated. Guess I better take a look at resource dictionaries.
|
|
|
|
|
hi. We have a problem with the ellipsis button using in a listview project in c#. we need to use it as the picture below which is linked.it is same like the property grid.
thanks
see this picture
|
|
|
|
|
Hello,
I m creating a C# .NET Project in which i m trying to load third party Assemblies which are installed in GAC.
But in some machines I m getting an error stating "Unable to Load assembly of specified version 7.0.351.0".
when i tried to do an assembly redirection it didn't work it still shows the same error.
Note:
7.0.351.0 -The is version with which it is compiled.
12.0.0.0 - Assembly present in the Target machine
Properties of Reference
Specific Version -> False
Aliases -> global
Copy Local -> False
This is my sample application configuration file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" >
<dependentAssembly>
<assemblyIdentity
name="Act.Framework"
publicKeyToken="ebf6b2ff4d0a08aa" />
<bindingRedirect oldVersion="7.0.351.0"
newVersion="12.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Logs of FUSLOGVW shows
"LOG: No application configuration file found."
But I already added the App Config file. Is it not detecting my config file?
How do I make it detect?
Steps I did to add App.Config file:
1. Add New Item through Project wizard and select "Application Configuration file".
|
|
|
|
|
Your config file should be named after your application. For example, if your app is myapp.exe, you config file should be named myapp.exe.config and should reside in the same folder as your exe file.
|
|
|
|
|
|
This question might be better suited in the WPF / WCF / WF forum..
|
|
|
|
|
I have the following lines of code (2.0 framework) that worked in Win XP, but doesn't work with Windows 7:
if (!Directory.Exists(@"c:\Program Files\Newsham\PigtrakDesktop\RAPI"))
{
Directory.CreateDirectory(@"c:\Program Files\Newsham\PigtrakDesktop\RAPI");
}
Here's the weird part: If I try to navigate to c:\Program Files\Newsham\PigtrakDesktop using the Windows 7 explorer, the RAPI directory is NOT there.
However, in my code, if tell it to list the files in the same directory, there ARE FILES THERE!
This is really killing me. Any thoughts?
|
|
|
|
|
I can't explain WHY the **** this is like this, but I found my files. They are located at:
C:\Users\pbrower\AppData\Local\VirtualStore\Program Files\Newsham\PigtrakDesktop
What the hell?
|
|
|
|
|
Maybe something to do with MS not being so keen on us writing (and adding directories) to the Program Files folder in Vista and Windows 7? Just a thought (on friday afternoon)...
|
|
|
|
|
"C:\Program Files" is not writable for standard users (just as it was since Win2000 and earlier).
Starting with Vista, the default user account is a standard user; getting admin rights only when you explicitly run an app with them (UAC).
To allow old programs to continue to run, Windows will redirect writes to the "VirtualStore". This is done only with programs that are not marked as "UAC-compatible".
So you have to do two things:
1) to avoid confusion due to file system virtualization; mark your program as UAC-compatible by embedding an UAC manifest. VS2008 should do this automatically (see "Application Manifest" in the project options); for VS2005 it's a little bit more complicated: http://blogs.msdn.com/shawnfa/archive/2006/04/06/568563.aspx[^]
2) Don't write to Program Files.
|
|
|
|
|
More specifically, don't write anywhere but the AppData folder.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Hi,
Lets supose i have C# application witch gets object position in desktop (for example "icon" or "shotcut") coordinates (x,y).
I need method whitch uses coordinates from application (x,y, and x_put, y_put) take object from one position and DRAG and DROP that objet to other position. Also it would be great if that methot can WORK FAST.
I appretiate your help,
|
|
|
|
|
Lots of information here[^].
|
|
|
|
|
I created an small pop3 application(with help of articles present here) to retrieve emails, its working for small emails. But when it comes to large emails say 5 MB+ it stuck.
Can't able to retrieve whole data from pop3 server.
I tried check thru telnet also, but it also got stuck in infinite loop, and continue to remian same.
Can any one plz help me, how to retrieve whole message from pop3 ?
So that i can strip whole message.
regards
|
|
|
|
|
Hi!
I'm trying to check my database if an entry on a field is already exists in the DB.
My Sql command is this:
string Sqlcommand = "SELECT Name FROM Students WHERE Id LIKE '" + TextBox1 + "'";
and I'm executing this as follows
SqlCeCommand com = new SqlCeCommand(Sqlcommand, conn);
SqlCeDataAdapter da = new SqlCeDataAdapter(com);
after these, just to be sure, I want to check if the query returned some rows or not
what should I do?
note: I've tried these ->
DataSet s = new DataSet();
da.Fill(s);
if( s == null)
if( s.Tables.Count == 0)
if( da == null)
can anybody help? :/
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:19am.
|
|
|
|
|
Oh THANK YOU!
but now it started to give an error
da.Fill(s) says
SqlCeException was unhandled
There was an error parsing the query. [ Token line number = 1, Token line offset = 61, Token in error =)]
I don't know why, this line did not give an error just 5 minutes ago, I erased new codes and still it gives an error
what should I do? :/
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:19am.
|
|
|
|
|
well it seems like a bug, but this is a very simple action to encounter a bug, maybe I should ask in a seperate topic
thank you for your answers
|
|
|
|
|
I found that I just made a stupid syntax error in my SQL command
thank you, my problem is solved
oh the code project, you're a saint
|
|
|
|
|
Hi
{
using (SqlCeConnection ceConn = new SqlCeConnection("Data Source=" + (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)) + "\\Northwind.sdf; Persist Security Info=False"))
{
ceConn.Open();
SqlCeException was unhandled
There was an error parsing the query. [ Token line number = 1, Token line offset = 61, Token in error =)]
I don't know why, this line did not give an error just 5 minutes ago, I erased new codes and still it gives an error
what should I do?
sravanthi veerisetti
|
|
|
|
|
|
Maybe you're screwing up the SQL if you add '" + TextBox1 + "' instead of '" + TextBox1.Text + "'
|
|
|
|
|
Thank y'all
|
|
|
|
|
Try the following......
Function:
<PRE>
string strSqlQuery= "SELECT Name FROM Students WHERE Id LIKE '" + TextBox1 + "%'";
object retValue;
try
{
ObjSqlCommand = new SqlCommand(strSqlQuery, ObjSqlConnection);
ObjSqlConnection.Open();
retValue = ObjSqlCommand.ExecuteScalar();
}
catch (Exception ex)
{
return (object)ex.Message.ToString();
}
finally
{
ObjSqlConnection.Close();
ObjSqlCommand = null;
ObjSqlConnection= null;
strSqlQuery = null;
}
return retValue;
</PRE>
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.
|
|
|
|