|
The pointy brackets containing the <spindata> bits have been removed from the code by the editor in my previous reply, not sure how to override that when posting here.
Haz
|
|
|
|
|
haz13 wrote: The pointy brackets containing the bits have been removed from the code by the editor in my previous reply, not sure how to override that when posting here.
Put the following characters together for a "less than" character: < When you post it, it will look like <
For "greater than" character, use the combination >, which will result in >
Alternately, you can check the "Ignore HTML tags in this message (good for code snippets)" checkbox when you go to post, which will ignore HTML symbols such as the "greater than" and "less than" characters.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: And in this corner, the Party of Allah
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
No, the editor doesn't remove them. Consider it as html. You can check the little check box to tell it to ignore html tags or you can replace your <'s with <'s and >'s with >'s.
Logifusion[^]
If not entertaining, write your Congressman.
|
|
|
|
|
|
Thank you all
Haz
|
|
|
|
|
I am developing a windows service with Visual Studio 2005 that automates the FTP of files to a remote server. I am wondering if anyone knows of a way I can programatically retrieve the available drive space on the remote server prior to the FTP transfer? I know that I can use the GetResponse method of the FTPWebResponse class to retrieve a status code indicating that there is insufficient space when that occurs, but I would prefer to be proactive.
Thank you...
|
|
|
|
|
As far as I know there is no way to know the free space unless the server has a [realy twisted custom] command fot it.
IE: If you want to store a file you send a "STOR" command. To change the current dir, the command is "CWD". As far as I know there is no "standard" command for get the free space
-- modified at 10:51 Friday 18th August, 2006
I'm on a Fuzzy State: Between 0 an 1
|
|
|
|
|
Ok. So I have a function (below) that edits the contents of a web page (loaded in the WEbBrowser control). It works fine when filling in the values of text fields, checking check boxes, and clicking buttons. But I need it to also be able to select an OPTION from a SELECT box.
Actual HTML from page I'm trying to edit...
====================================
<select name="MM" dir="ltr">
<option value="">month
<option value="1" >1
<option value="2" >2
<option value="3" >3
<option value="4" >4
<option value="5" >5
<option value="6" >6
<option value="7" >7
<option value="8" >8
<option value="9" >9
<option value="10" >10
<option value="11" >11
<option value="12" >12
</select>
====================================
The C# function...
====================================
/// <summary>
/// Edit the web Form contents of WebBrowser.
/// </summary>
/// <param name="fieldName">Name of control to edit in web form.</param>
/// <param name="fValue">Value to place in fieldName control.</param>
/// <param name="click">0=textbox, 1=button, 2=checkbox 3=combobox</param>
public void fillField(string fieldName, string fValue, int type)
{
HTMLDocument myDoc = null;
try
{
myDoc = new HTMLDocumentClass();
myDoc = (HTMLDocument)WebBrowser.Document;
HTMLInputElement x = (HTMLInputElement)myDoc.all.item(fieldName, 0);
if (type == 0)
x.value = fValue;
else if (type == 1)
x.click();
else if (type == 2)
x.@checked = true;
else if (type == 3)
{
// ??
}
}
catch
{
}
finally
{
myDoc = null;
}
}
====================================
Any help would be much appreciated!
Scott Clayton
|
|
|
|
|
I´ve got this error when I use threads I don´t know the reason. THe aplicationwork perfect, that is I get all the data from all the threads but I don´t know the meaning of the exeption and the possible consecuencies.
|
|
|
|
|
What exactly are you trying to do when this happens and is that all the message says? "WSACancelBlockingCall"? Or does it say something like: "A blocking operation was interrupted by a call to WSACancelBlockingCall"?
|
|
|
|
|
This is the answer that i´ve got. I´m working with threads.
|
|
|
|
|
Dear Friends
I migrated my project to .net 2005 which was in .net 2003(windows application using C# language)
When I run the solution the forms and the controls are as if it is still in .net2003
then I opened the files(all) and changed the versions from 1.0,1.3,etc to 2.0
till then I did not got the .net 2005 control appearance.
What should I do.
Please reply soon...
My mail Id is rabindrapatra@gmail.com
Thanks
Rabindra Patra
|
|
|
|
|
I guess you're looking for the Application.EnableVisualStyles method:
static void Main()
{
Application.EnableVisualStyles();
Application.Run(new Form1());
}
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I used "Application.EnableVisualStyles();" and is working fine
Thanks for the quick reply.
Rabindra
|
|
|
|
|
How do you make a button the default button in a Windows form?
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
Set it's DialogResult property to OK. To really do the job, set the 'AcceptButton' property of the form to that button as well.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I´m working with Sql Server 2000 and C# Framework 1.1. I would like to create a nested transaction that is I would like the option to the following:
_ i ´ve got an object x with a subset of object y. How can i create a nested transaction? when i storing the objects i would like to have the possibilisty to store the objects x in the DB but i´ve got an exception while storing y i would like to have the possibility of rollback. That is:
Transaction X begin
Transaction Y begin
Transacation Y rollback --> Only rollback Y not X
Transaction X commit --> Commit X
|
|
|
|
|
Hello,
By default, if you click the header of the DataGridView control, it sorts that column. Is there a way to disable that?
Thank you.
|
|
|
|
|
Each column within the DataGridView has a SortMode property which you can alter to change the default behaviour.
|
|
|
|
|
Project Properties - Build - Advanced
in this dialogbox you can change the dll base address, but that ain't working for me, i always get the error DISP_E_BADVARTYPE. How come?
Am i entering an invalid number? Can someone help me out here?
thx
|
|
|
|
|
The Base Address must be a multiple of 64K (65536 decimal), cannot be lower than 64K * 256 and cannot be higher than 64K * 32768.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
One of the rare cases where the number 42 won't do.
---
b { font-weight: normal; }
|
|
|
|
|
Big thx, i would give each assembly a fixed address, but how do i know how much space i have to leave between the addresses given to 2 different dll's?
|
|
|
|
|
You don't really. Not without some work in the debugger to figure out what your resulting code size is anyway.
Why do you think you need to do this anyway? The only real benefit is to speed up loading assemblies, but only slightly. All you're doing is (trying to) save the loader from having to calculate a starting address for you.
This can also introduce unexpected problems. If an assembly won't fit in a hole that exists at the address you specify, or if the address is already being used by another assembly, then you actually increase the time it takes to load the assembly as the loader has to calculate a new address.
-- modified at 12:05 Saturday 19th August, 2006
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
yep that is why i'm using it, to speed up the time of loading. But i'm just testing it out, now i saw it makes almost no difference.
I also read by using NGEN, u can precompile your assemblies to use, does that help the speed of loading the application?
I'm using an installer for install my project on client pc. So then i have to add a function to execute NGEN in a custom action in my installer?
|
|
|
|