|
Well, thanks, but I sorta knew that... that's exactly what I can't get to work so a little more explanation is what I'm looking for.
I've hunted high and low for a working example of this with no luck... if anyone has got this working I'd sure appreciate a glimpse at some working code just to see what I'm missing or have screwed up!
Mike
|
|
|
|
|
Have you tried to take the cookies collection you get in the response, and just put that in the requests that you send?
You might have to keep a cookie collection, and for each response update it with the new cookies you might get.
---
b { font-weight: normal; }
|
|
|
|
|
Hi all,
Does anybody know how to remove the border from around the PropertyGrid control? I've tried overriding OnPaint and doing custom drawing but can't seem to get anything to work...
Any ideas would be appreciated
rob
|
|
|
|
|
I am writing a simple tool that extracts data from an xls and uses it to write an XML file using the XmlTextWriter class. I have a test harness written, problem is I keep getting the following error:
"VS cannot debugging the target as the <projectPath>....exe is missing. Please build the project and retry, or set the OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly."
I have added the reference "Excel 11.0" so that isn't the problem. I am using a file dialog and have added the "System.Windows.Forms" reference so there is no problem there.
Has anyone ever had this problem beofre when dealing with Excel or XmlTextWriter?
|
|
|
|
|
I've had the same problem before when VSS gets its hands on the executable for the application. I normally end up deleting the contents of ProjectName\Debug\bin and then rebuild the project, seems to sort things out.
On a different note, are you referencing Excel directly or using the Primary Interops (PIA) from Microsoft? I've found c# doesn't like a lot of the methods in Excel if referenced directly, but i don't think it's causing this problem.
HTH
Russ
|
|
|
|
|
I've had the same problem before when VSS gets its hands on the executable for the application. I normally end up deleting the contents of ProjectName\Debug\bin and then rebuild the project, seems to sort things out.
On a different note, are you referencing Excel directly or using the Primary Interops (PIA) from Microsoft? I've found c# doesn't like a lot of the methods in Excel if referenced directly, but i don't think it's causing this problem.
HTH
Russ
|
|
|
|
|
I have the ListBox and UserControl on my form, the problem is: how to scroll ListBox when the UserControl is focused and user rolls the mouse wheel. It seems that the easiest way is to send the message to ListBox that weel was rolled, but how to this. Or maybe there is another way to solve this problem?
|
|
|
|
|
in a project i used richtextbox, i saved richtextbox, but i cannot see images on rrf file. I tried all possibilities.
RichTextBox1.SaveFile("", RichTextBoxStreamType.PlainText)<br />
RichTextBox1.SaveFile("", RichTextBoxStreamType.RichNoOleObjs)<br />
RichTextBox1.SaveFile("", RichTextBoxStreamType.RichText)<br />
RichTextBox1.SaveFile("", RichTextBoxStreamType.TextTextOleObjs)<br />
RichTextBox1.SaveFile("", RichTextBoxStreamType.UnicodePlainText)
I think 4th is true way, but it doesnt working.
And another question, I have to do something to this file so that Word pad cannot open this file, how could i do this. I intend to this file only can be opened by my program.
|
|
|
|
|
Greeky wrote:
I have to do something to this file so that Word pad cannot open this file
If you do that, you're program isn't going to be able to open it either. Since you're using the RichTextBox's methods to load and save files, anything you do to the file to stop WordPad, which is a glorified RichTextBox itself, will stop you from loading the file too.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
The shape have a line and a empty triangle that joined the end of the line.
Can you give me some code?Thanks!
|
|
|
|
|
I think you want this:
e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
GraphicsPath capPath = new GraphicsPath();
Point[] cappoints = new Point[] { new Point(0, 10), new Point(-10, 0), new Point(10, 0), new Point(0, 10) };
capPath.AddLines(cappoints);
CustomLineCap myCap = new CustomLineCap(null, capPath);
Pen capPen = new Pen(Brushes.Black, 1);
capPen.CustomEndCap = myCap;
capPen.CustomStartCap = myCap;
myCap.StrokeJoin = LineJoin.Round;
myCap.WidthScale = 2;
e.Graphics.DrawLine(capPen, new Point(100, 100), new Point(300, 100));
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,brother.Thanks for your help!:->
|
|
|
|
|
Can you tell me why set cappoints variable like this way.If I changed the array of the points,the line will not anchor the middle point of the bottom line triangle.Because I am a beginner in GDI+,please help me in any case.Thanks a lot!;)
|
|
|
|
|
I am accessing database (Informix) using ADO.NET and not using any transaction, what could be the default transaction status? In this case is system suppose to have dirty read? [ReadUnCommited]
If yes, any idea, what is the difference between using transaction with read Uncommited, or not using transaction.
Are there any performance difference?
Appreciate your help
- ashish
|
|
|
|
|
Hi
I am facing one problem while opening my Dot net project ?Error is coming like there "There is error on 1 Line:Expected '<' but found Auto attach" and the corresponding project file is not a valid project.
if anybody knows please help me out
dimp
|
|
|
|
|
I've never encountered this before but you can try to open the class that is causing the problem with a text editor (recommend CrimsonEditor as it color codes c#, vb, j# etc..) and have a look at the code yourself to try and determine the problem.
Thats the only thing I can suggest.
Sorry I couldn't be more help!
|
|
|
|
|
two projects,BusinessLayer and DataAcessLayer.
DataAcessLayer includes CustomerDB.cs, App.config.
App.config is like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ConncetionString" value="Server Port Address=;Server Name='';Character Set=iso_1;Network Protocol=Winsock;Provider='Sybase.ASEOLEDBProvider.2';User ID=;Password=;Initial Catalog=" />
</appSettings>
</configuration>
CustomerDB class has method GetCustomers
public DataTable GetCustomers()
{
string ConnectionString =
ConfigurationSettings.AppSettings
["ConncetionString"];
............
}
when i call GetCustomers() in BusinessLayer, the ConncetionString is always null.
but i did have a successful try before.
please help me,thanks.
-- modified at 23:06 Tuesday 27th September, 2005
|
|
|
|
|
just a WAG...
You might want to try including an \ before each of the quotes in your connection string.
There also seems to be a missing quote after Server Name ="
If the value needs to be null I would try:
Server Name =\"\"
Provider might also need to use \" instead of '
but alas it's just a WAG and I'm sure someone else will point me (or you) the right way
Let me know if it works.
www.lovethosetrains.com
|
|
|
|
|
i delete some detail of the connection string because here is messageboards.
i can get right value of connection string if i call GetCustomers() in project
DataAccessLayer.
but if i call GetCustomers() in BusinessLayer the conncetion string is always
null.
thanks anyway.
|
|
|
|
|
Using \ as escape character does not work in xml.
If you check closely, there is no quoute after server name, it is two apostrophes.
---
b { font-weight: normal; }
|
|
|
|
|
How are the projects related? Have you referenced the business layer in the web project?
---
b { font-weight: normal; }
|
|
|
|
|
there were two project BLL and DAL, BLL use DAL to complete
some CRUD jobs. i have referenced DAL in BLL.
thanks ^_^
|
|
|
|
|
Ok I'll byte again...
by chance are u creating a new instance of your DAL in BLL and then not reading the app.config? If the variable holding your connection string is not static then it would be null when you created a new instance of DAL. You could try declaring your connection string variable in DAL as static (might not be good practice) and see what you get.
I was thinking maybe your method only returns a (GET) value and does not actually go out and read the app.config.
:+)
www.lovethosetrains.com
-- modified at 22:20 Wednesday 28th September, 2005
|
|
|
|
|
Is it possible to have the menustrip and toolstrip have Office XP 2000 look and feel?
Thanks
|
|
|
|
|
I'm trying to implement a functionality that will allow the user to rename a node in a treeview by right clicking on the node and selecting 'Rename'(the same as in windows explorer). How do I trigger the editting event for the nodes from within the code?
Thank you in advance
|
|
|
|