|
I want to write a project in a folder how do that ?
thanks for your idea.
|
|
|
|
|
I appreciate that English is not your first language, but could you please clarify what you mean here? I am not really sure what you are trying to achieve.
"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
|
|
|
|
|
Please give some detail, so that it is easy to answer your question.
Give some code or more description, exactly what you want ??
Hope you understand!
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
You don't.
This is the relm of NTFS security. You contorl access to the folder by understanding how Windows and NTFS security works first, then setting NTFS permissions on the folder appropriately for your situation. And judging by your previous questions, you've got a lot of reading to do first.
|
|
|
|
|
Dave Kreskowiak wrote: And judging by your previous questions, you've got a lot of reading to do to learn to read first.
FTFY!
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|
Hi Experts,
I am trying to set the width of my list view to a value. This value is getting reflected but it is not going below a certain value. I have 3 columns in it and their widths are very less but i am still getting some white spaces after the last column. I tried the following
this.Width = 30;// 200 is getting reflected here.
this.Size = new System.Drawing.Size(30, 88);// 200 is getting reflected here.
Please help!
Thanks in advance!
Regards,
Samar
|
|
|
|
|
Make sure the MinimumSize property for the ListView is set to "0,0".
.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 John,
The Minimum Size is already set to 0,0. Any other things which i might be missing??
Regards,
Samar
|
|
|
|
|
Just a guess but is the control redrawing afterwards or not redrawing at all?
if it is not redrawing I think you can force it to by calling the 'Refresh' method on the control.
V.
|
|
|
|
|
I have a form with a button.
It sends a XmlDocument (which I load from a xml-file) to a Webservice (webmethod) and it also receives a XML-file to
acknowledge/ACK (or not acknowledge/NACK) the file just being sent.
Code for the button (client-side):
private void button2_Click(object sender, EventArgs e)
{
ServiceReference1.Service1SoapClient webservice = new ServiceReference1.Service1SoapClient();
XmlDocument xmlReceived = new XmlDocument();
XmlDocument xmlSend = new XmlDocument();
xmlSend.Load("C:\\incoming.xml");
xmlReceived = webservice.PostNotify(xmlSend);
}
On the server-side I made a simple Webservice. It receives a XML-file and send a XML-file back with a acknowledge or
not acknowledge. I use this code:
[WebMethod(CacheDuration=30)]
public XmlDocument PostNotify(XmlDocument xml)
{
xml.Save("C:\\save_XML.xml");
XmlDocument xmlAck = new XmlDocument();
xmlAck.LoadXml("C:\\acknowledge_XML.xml");
return xmlAck;
}
I already tried the communications with just sending strings and it worked fine. But when I run it when passing
XmlDocuments it says:
Argument '1': cannot convert from 'System.Xml.XmlDocument' to 'System.Xml.XmlElement'
And it refers to the function in the client-side code, the post ...webservice.PostNotify(xmlSend);-part
modified on Thursday, May 6, 2010 5:56 AM
|
|
|
|
|
Well, you didn't tell us which line was generating theexception, but this line is suspect:
XmlDocument xmlAck = new XmlDataDocument();
Notice that you're trying to instantiate a XmlDocument with "new XmlDataDocument .
.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 John, this was my bad, I already changed it to XmlDocument but it didn't help.
The line which the error refers is in the client-side code:
xmlReceived = webservice.PostNotify(xmlSend);
Any suggestions?
|
|
|
|
|
Have you tried Debugger for service?Just put a breakpoint in the service method and check if its hitting or causing any errors.
|
|
|
|
|
Arun, the error I mentioned won't let me run so I can't set a breakpoint. I just think I can't use XmlDocument because it is maybe a to specific XML-format, because it says XmlDocument can't be converted to a XmlElement.
I already searched for people with the same problem but no solutions are offered.
Any more suggestions?
|
|
|
|
|
Then try to use xmlDocument.DocumentElement for communication between service and client.
|
|
|
|
|
This works. Use .DocumentElement;
|
|
|
|
|
Hi,
I have a client application that is used to read/write a database on my live server. I have a problem if the application is used behind the proxy it cannot establish a connection with the My Sql Server. It works fine if not behind proxy.
Looking forward to hear codeproject professional's comments.
Thank You
|
|
|
|
|
I am trying to copy one dataset to another and calling acceptchanges to update database but it is not working although not giving any error. here is the code.
SqlDataAdapter da2 = new SqlDataAdapter("SELECT * FROM " + DestinationTableName, consql);
DataSet dsDest = new DataSet();
dsDest.CaseSensitive = false;
da2.Fill(dsDest, DestinationTableName);
dsDest.Tables[0].TableName = DestinationTableName;
DataTable dt = new DataTable();
dt.TableName = DestinationTableName;
foreach (DataRow dr in dsSource.Tables[0].Rows)
{
DataRow drdata= dsDest.Tables[0].NewRow();
foreach (DataColumn dc in dsSource.Tables[0].Columns)
{
drdata[dc.ColumnName] = dr[dc.ColumnName];
}
dsDest.Tables[0].Rows.Add(drdata);
dsDest.AcceptChanges();
da2.Update(dsDest.Tables[0]);
}
Whats wrong with above code..?
|
|
|
|
|
|
m making a web application on e-commerce/shopping using c# with ASP.NET . for the same
i need a code(c# with ASP.NET) to add items in a cart. session layer should be there ....and it should be added in the database...later when we go for payment it has to be removed from the cart....
in my application everything is OK but once i log off or once the session expires we wont be able to see the previous items in that cart.i want the items should b there until i go for payment.
will u please help me out..
|
|
|
|
|
ASP.NET 2.0 Visual Web Developer 2005 by D Sussman and A Homer (Wrox, 2006 ISBN 0-7645-8807-9) has exactly this in it.
Two points (a) it's in VB not C# and (b) there's probably a later edition (or at least something like it).
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
The only valid measurement of code quality: WTFs/minute.
|
|
|
|
|
manila dahal wrote: i need a code(c# with ASP.NET)
Try a starter-kit[^].
I are Troll
|
|
|
|
|
Hi,
I have a two form application, the 1st form (Main Form) and a rich text box field on the 2nd form for comments. I have a hidden comment field on the 1st and I would like to update the comments field on the 1st form with the comments from the RichTextBox on the second form. How do I do this?
Thank you,
Glenn
|
|
|
|
|
Follow the steps and you will achieve what you want.
1. Declare object of form2 from inside form1.
Form2 f2;
2. In the same manner declare object of form1 from inside form2 (public).
Public Form1 f1;
3. Instantiate form2 from form1 and assign object of form1(f1) to this.
f2 = new Form2();
f2.f1 = this;
f2.show();
Now you have object of form1 in form2.
This way you can pass information of form1 to form2 and by doing reverse you
can pass information of form2 to form1.
Hope this will help!
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
You should never couple a child object to the parent like this when it's possible the child could exist without the parent. Doing so makes the child non reusable. The correct way to do this is for the child to raise events.
Also, you should not expose fields as public. Fields should be private and exposed via a public/internal/protected property as appropriate. This allows for validation and other logic as required later plus the use of locks for multithreading etc...
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|