|
HA HA HA... I thought that when many people have suggested such elite answers, i might not be understanding problem correctly... ha ha ha...
cheers!!!
|
|
|
|
|
I just finished a little article on the subject, see here[^]. Hope you like it.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
i made web application to scan pages from scanner and worked well but when i made the project on IIS it is not work well and get me this problem
Description: An unhandled exception occurred during the execution<br/> of the current web request. Please review the stack trace<br/> for more information about the error and where it originated in the code<br/> Exception Details: System.UnauthorizedAccessException: Creating<br/> an instance of the COM component with CLSID {850D1D11-70F3-4BE5-9A11-77AA6B2BB201}<br/>from the IClassFactory failed due to the following<br/> error: 80070005. ASP.NET is not authorized to access the requested resource.<br/> Consider granting access rights to the resource to the ASP.NET request identity.<br/> ASP.NET has a base process identity </br>(typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is <br/>not impersonating. If the application is impersonating via <br/>identity impersonate="true, the identity will be the anonymous user (typically IUSR_MACHINENAME)<br/> or the authenticated request user.<br/> To grant ASP.NET access to a file, right-click the file in Explorer,<br/> choose "Properties" and select the Security tab.<br/> Click "Add" to add the </br>appropriate user or group. Highlight the ASP.NET account,<br/> and check the boxes for the desired access.Source Error:
Line 26: int x = 0;<br />
Line 27: <br />
Line 28: CommonDialogClass class1 = new CommonDialogClass();<br />
Line 29: Device d = class1.ShowSelectDevice(WiaDeviceType.UnspecifiedDeviceType, true, false);<br />
Line 30: if (d != null)
please any one know the Answer please reply to me quickly i need this now
|
|
|
|
|
I am also getg the same pblm tried all gave rights to all users for the dll still getg the same error can sme one post me the solution....
|
|
|
|
|
Hi,
Did any one got solution, am also facing same problem
Chandrashekar T N
|
|
|
|
|
I want to deploy my application which requires .Net framework, SQL Express as prerequisites. So i created a setup project in VS2008 and selected .Net framework and SQL Server 2005 Express.
Now while installing my application at client's site, it first installs .Net framework followed by SQL Express 2005. But while installing SQL Express it does not prompt for the user to set the password for 'sa' user. There is no dialog displayed for user selection. It installs windows authentication mode. Is there a way to set the SQL Server autentication mode. Please note that i dont want to install SQL Server Management studio.
Your help is appreciated
Thanks
|
|
|
|
|
I have an managed C++ dll lib. It has claas info like below
namespace tests
{
public enum class clours
{
Start = 0;
Red = 1;
Green = 2;
Blue = 3;
End = 4;
}
}
I have written a client application in C# and load the dll dynamically(I am using reflection). I want to access the enum members and values between 'Start' and 'End' from the client application.
|
|
|
|
|
var fields = (from field in type.GetFields()
where (field.Attributes & System.Reflection.FieldAttributes.Literal) != 0
select field).ToArray();
Don't forget that without enum class or enum struct this code won't work.
The criteria in the where clause assumes that for a CLR enum, no fields other than the enum's constants marked as literal. I'm not completely sure if there are no special cases but you should research that a little bit before trusting that criteria.
Eslam Afifi
|
|
|
|
|
GetRawConstantValue() Method is not supported in .NET CF 2.0
anyone have any idea about how to get the value of enum constant?
Enum.GetNames() is not supported in .NET CF 2.0, but i could getting the name of enum constants.
Thanks.
---
Hossam Ahmed
|
|
|
|
|
Is there a way to display digital waveform in c# and also change its values?
|
|
|
|
|
You could always use this[^] to display the graph. If you want to change values, you want to manipulate the underlying data rather than the graph itself, and let the graph reflect those changes.
"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
|
|
|
|
|
|
How can i call image from a folder in my Solution to picturebox by coding (dynamically)!
|
|
|
|
|
Load of ways:
PictureBox.ImageLocation = @"c:\images\...
or
PictureBox..Load(@"c:\images\...
or
PictureBox.Image = Image.FromFile(@"c:\images\...
You are going to have to learn to use Google one day, you know! Why not today?
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|
|
picturebox1.ImagLocation="....";
|
|
|
|
|
I wanna to use the image in solution but not in debug folder (I mean that after i build the project i dont want to show the image to user client!)
in user computer they wont have the folder that i used in my solution!
|
|
|
|
|
as i know when you build the program you cannot add components to it (as i know)
instead you can make the folder that you will get the photos hide(it an idea!!!!)
|
|
|
|
|
I wont add components .as i said before i wanna to add photo to picturebox that get the photo from the folder in solution and the folder wont be seen after building the project( like folder :Bussinesslayer/DAL/BLL)
|
|
|
|
|
first you should import the photos from picturebox.image properties then you will find them in SolutionName.properties.Resources.PhotoName:
picturebox.image=SolutionName.properties.Resources.PhotoName;
|
|
|
|
|
Dear All,
I created a Windows Service and a installer project for it. The problem is that ofter unistalling the service through the setup file or through 'Add/Remove Progrmes' in Win XP, the service is still present in the 'Services' list in the system.' I have to use the command prompt of Visual Studio to remove the service from the list.
How can i fix this problem?
Thanks in advance.
|
|
|
|
|
Did you try google?
http://support.microsoft.com/kb/816169[^]
.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
|
|
|
|
|
Thanks for response,
Yes i did, unfortunately nothing found yet.
|
|
|
|
|
For windows I change the color of the cursor depending on what background color is now.
Code below. Unfortunately, from time to time (too often) gets an exception:
System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI +
At System.Drawing.Bitmap.GetHicon ()
and the end of the program.
A year ago I wrote an earlier version, a mechanism to change the cursor the same, the same code, but then I used VisualStudio 2005, at 32bit Vista. And never once I had such an exception.
vs2008 and now the win7 x64.
I don't checked yet whether to build VS2005 help ...
However, it may be any known explanation and a solution to this problem.
I use IntPtr as a handle to the icon, and 64 bit systems, it is 64 bit and 32-bit Win 32 .. but not further Jazee what the problem ...
Shows the error both on and win764 win xp32 ...
private void changeCursor(int type)
{
int _cursorSizePx = Convert.ToInt32(((200.0 * _cursorSize) / _calibration));
Bitmap b = new Bitmap(_cursorSizePx + 1, _cursorSizePx + 1);
Graphics g = Graphics.FromImage(b);
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
switch (type)
{
case 0:
g.FillEllipse(new SolidBrush(_cursorColor), 0, 0, _cursorSizePx, _cursorSizePx);
break;
case 1:
g.DrawEllipse(new Pen(new SolidBrush(_figureColor), 3), 1, 1, _cursorSizePx - 3, _cursorSizePx - 3);
g.FillEllipse(new SolidBrush(_sqreenColor), 1, 1, _cursorSizePx - 3, _cursorSizePx - 3);
break;
}
IntPtr ptr = b.GetHicon();
Cursor c = new Cursor(ptr);
this.Cursor = c;
}
modified on Monday, January 25, 2010 4:21 AM
|
|
|
|
|
I have a treeview and when I hit a title that has is something like this
Title = "Berenstains' B Book"
Obviously it has the ' in it and needs to be escaped.
I tried putting the @ infront of the this.treeview........
but that didn't help..
I'm trying to pass it to my navigation filter as follows.
<pre>
this.bookListBindingNavigator.BindingSource.Filter = string.Format(@"Title LIKE '*{0}*'", this.treeview.SelectedNode.Text.Trim());</pre>
thanks for the help
i thought I might be able to do something like
string escaped = treeview.selectednode.text.trim();
escaped = escaped.replace("'","\'");
but that doesn't work because of course \ is looked as an escape character in that string
I'm confused. Knockin on the door but evidently I can't come in yet :P
|
|
|
|
|
You answered this yourself:
tonyonlinux wrote: have a treeview and when I hit a title that has is something like this
Title = "Berenstains' B Book"
Obviously it has the ' in it and needs to be escaped
tonyonlinux wrote: escaped = escaped.replace("'","\'");
Puttin the backslash in front of the quote provides the escape mechanism.
So your string becomes:
Title = "Berenstains\' B Book";
You can also use the atsign in front of the string:
Title = @"Berenstains' B Book";
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|