|
se99ts wrote:
Does anyone have any ideas on how i can impliment basic version management in any readily available system (CVS, RCS, etc.) im getting so fedup of trying to get this to work im even debating writing my own version management system but i know there must be one out there that will be fairly quick to get working?
Why not either use:
1. CVS (free, open source solution) and the command line client,
or
2. Perforce (http://www.perforce.com) with it's integrated tools or command line. It's free for up to 2 users, or totally free for open source solutions.
You'll never get anywhere 'rolling your own' solution.
Jerry Dennany
|
|
|
|
|
I have been weeding through everything I had to do to implement IDocHostUIHandler and now I am at the point where I've succeeded in blowing off the Framework.
I have the fat client form displaying the web control as an mdiChild within its' parent container.
In my first implementation I just put in the webBrowser control and set it to navigate to a website. That worked without a problem.
Now:
I have a form with the webcontrol in it and everything I need to do for implementing the IDocHostUIHandler interface. The form is loading and the web control succeeds in browsing to the site then executing the NavigateComplete method.
In this method I am setting my address so that it is accessible via the javascript code as follows:
<br />
private void showWebPage_NavigateComplete2(object sender, AxSHDocVw.DWebBrowserEvents2_NavigateComplete2Event e)<br />
{<br />
AxSHDocVw.AxWebBrowser wb = (AxSHDocVw.AxWebBrowser)sender;<br />
IHTMLDocument2 hDoc = (IHTMLDocument2)wb.Document;<br />
((ICustomDoc)hDoc).SetUIHandler((IDocHostUIHandler)this);<br />
}<br />
When this is done executing (immediatle after setting hDoc) I get
<br />
An unhandled exception of type 'System.ExecutionEngineException' occurred in system.windows.forms.dll<br />
<br />
<br />
Fatal execution engine error.<br />
<br />
The exception points to the Main() method in my parent that begins the thread for the application.
Any suggestions to even BEGIN to look?
Thanks
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
Have you been lurking around this article[^] ?
Try to build your app with this starting point instead.
|
|
|
|
|
Yup, this was one of the many articles I've read. My code, unfortunately, has ended up being merge of the many pieces of articles and posts I've read. Pulled down the sample app this time and did some comparisons. I found I had two definitions of the interfaces. Killed the second def, got the interface implementation changed to reflect the new source of the interface, and added one include. Voila. I now have it implemented. Now if my second test works well then I can dance in the hallways, kiss the girls, and celebrate!!!
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
Hi
I use Microsoft.Data.Odbc
It's OK but if I want to read a database within large memo fields that ExecuteReader failds
same is in VC++ & MFC but there I can increase the memo reader field in RFX_Text
Who knows how could I read these memos?
Thanks
|
|
|
|
|
Hi All,
Is there any easy way to create a deep copy of an ArrayList? If I use the ='s it seems to create a shallow copy and it's the same deal with the Clone method of the ArrayList. Is there some other function that I can use to create a deep copy?
Thanks again
- monrobot13
|
|
|
|
|
The quickest way, if you don't need top performance, is: serialize it and deserialize it.
It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)
|
|
|
|
|
Kinda new to C# so could you explain how you serialize and deserialize an ArrayList?
Thanks for the reply.
- monrobot13
|
|
|
|
|
I use C# to develop a web embed application, and I find that using WebClient is very easy to raise a web request and get the response. But I don' know how to set the TIMEOUT property(or something like that) to prolong the request time.
|
|
|
|
|
|
You mean I cann't use WebClient anymore(I have to use WebRequest and WebResponse instead)????
Do you know some resolution that can extend the functionality of WebClient and realize the function I need?
Tnanks.
|
|
|
|
|
Sorry, I thought that WebClient had a way to access the WebRequest that it was using internally - but I was wrong, so maybe you will have to use WebRequest/WebResponse
The only other idea I have is that if you know in advance the URLs you will be accessing you could use WebRequest.RegisterPrefix to register a class of your own (for just the URL you want) that implements the IWebRequestCreate interface, and that class could return an instance of one of the standard WebRequest objects (e.g. an HttpWebRequest) with the timeout set to whatever you want. See the web page I referenced in my previous answer for more details. However, I must stress that I haven't tried this, and it's based only on my understanding of the information on the www.dotgnu.org website.
Good luck!
Chris Jobson
|
|
|
|
|
Hello All,
I am trying to do this:
using System.Web.Mail;
and Visual Studio tells me that:
The type or namespace name 'Mail' does not exist in the class or namespace 'System.Web' (are you missing an assembly reference?)
What am I missing here?
Thanks!
Ed
|
|
|
|
|
ekuhner wrote:
using System.Web.Mail;
Hi,
You have to add a reference to System.Web.dll before you can access the namespace.
jody
|
|
|
|
|
Under your references in your solutions explorer (right click) add a new reference to System.Web
That will help!
Leon v Wyk
|
|
|
|
|
Helo
I know that I have done this before, controling how the output-xml is formated.
The default i:
<NewDataSet>
<table>
<col1>val</col1>
<col2>val</col2>
</table>
<table>
<col1>val</col1>
<col2>val</col2>
</table>
<NewDataSet>
But I want it to be:
<NewDataSet>
<table col1="val" col2="val">
<table col1="val" col2="val">
</NewDataSet>
What is the property to set ????
|
|
|
|
|
Do you have a schema? You need one to achieve this.
In VS, open the <yourschema>.xsd file,and click on DataSet tab at the bottom. You will see a table named table (as your example) and the columns with their types. You will see in the first column an E, change it to an A and there you go.
If you don't have a schema, simply build by hand a XML file that will look like what you want. Open it with VS and choose, from the XML menu, Create Schema.
In your program, before loading the DataSet with data from an XML file, or before saving to an XML file, use one of the myDataSet.ReadXmlSchema methods. When reading, always use the XmlReadMode.Auto and maybe set the myDataSet.EnforceConstraints property to true to detect any schema errors.
Have fun!
|
|
|
|
|
You can set the ColumnMapping property on each column to MappingType.Attribute .
Without nipples, breasts would be pointless.
|
|
|
|
|
:-DGreat!
That was the best and eazyest solution.
To solve it with XMLSchema created alot of overhead and
puluted the xml with alot of xmlns-information...
|
|
|
|
|
Hi,
I have two lists (A and B).I want to add some items from A to B and remove the items from A. I've used two ListBoxes for this situation.
I want to display Name of items and for adding and removing I have to know ID of each item. So I use ListBox.DataSource to fill items. First I define a class:
<br />
public class USState<br />
{<br />
private string myShortName ;<br />
private string myLongName ;<br />
<br />
public USState(string strLongName, string strShortName)<br />
{<br />
<br />
this.myShortName = strShortName;<br />
this.myLongName = strLongName;<br />
}<br />
<br />
public string ShortName<br />
{<br />
get<br />
{<br />
return myShortName;<br />
}<br />
}<br />
<br />
public string LongName<br />
{<br />
<br />
get<br />
{<br />
return myLongName ;<br />
}<br />
}<br />
<br />
public override string ToString()<br />
{<br />
return this.ShortName + " - " + this.LongName;<br />
}<br />
}<br />
Then for filling list items :
<br />
ArrayList USStatesA = new ArrayList() ;<br />
ArrayList USStatesB = new ArrayList() ;<br />
USStatesA.Add(new USState("Alabama", "AL"));<br />
USStatesA.Add(new USState("Washington", "WA")) ; <br />
USStatesA.Add(new USState("West Virginia", "WV"));<br />
USStatesA.Add(new USState("Wisconsin", "WI")) ;<br />
USStatesB.Add(new USState("Wyoming", "WY"));<br />
<br />
ListBoxA.DisplayMember = "LongName" ;<br />
ListBoxA.ValueMember = "ShortName" ;<br />
ListBoxA.DataSource = USStatesA ;<br />
<br />
ListBoxB.DisplayMember = "LongName" ;<br />
ListBoxB.ValueMember = "ShortName" ;<br />
ListBoxB.DataSource = USStatesB ;<br />
Everything is OK by above codes. But the problem is: When I Remove an object from ListBoxA and then Add it to ListBoxB; no changes will be appear in ListBoxA.Items or ListBoxB.Items .
How can I update ListBox Items same as its DataSource updated?
regards,
Mehdi
|
|
|
|
|
One method that will work is to invoke the Refresh method of the Currencymanager objects involved, e.g. after you've moved an object from one ArrayList to the other:
CurrencyManager cm = BindingContext[USStatesA] as CurrencyManager;<br />
if (cm != null) cm.Refresh();<br />
cm = BindingContext[USStatesB] as CurrencyManager;<br />
if (cm != null) cm.Refresh();
A nicer method might be to wrap the ArrayLists (or derive from them) in an object of your own which implements the IBindingList interface. This allows an event to be raised when the list is changed, and I assume that the CurrencyManager traps this event and automatically updates the bound controls (but this is based only on my understanding of the documentation - I haven't tried it ).
Chris Jobson
|
|
|
|
|
Thanks Chris.
I think I didn't write the problem clearly. I tell you it again.
I write below method to remove an item from ListBoxA and add it to ListBoxB:
<br />
void TransferItem()<br />
{<br />
object SelectedObject = ListBoxA.SelectedItem;<br />
((ArrayList)ListBoxA.DataSource).Remove(SelectedObject);<br />
((ArrayList)ListBoxB.DataSource).Add(SelectedObject);<br />
}<br />
By this method the DataSource of ListBoxA and ListBoxB has been changed, but no changes will be appear in ListBoxA.Items and ListBoxB.Items .
I couldn't change the Items directly because of using DataSource for ListBoxes.
Can you help me please.
Mehdi
|
|
|
|
|
Mehdi,
If you add the code I gave, or the following modified version of it, at the end of the TransferItem method in your previous posting it should work:
CurrencyManager cm = BindingContext[ListBoxA.DataSource] as CurrencyManager;<br />
if (cm != null) cm.Refresh();<br />
cm = BindingContext[ListBoxB.DataSource] as CurrencyManager;<br />
if (cm != null) cm.Refresh();
Chris Jobson
|
|
|
|
|
Hi there,
Is it possible to add a ProgressBar control to a status bar or do you simply have to make the status bar panel owner drawn?
Thanks in advance
- monrobot13
|
|
|
|
|
Hi, I may be mistaken but I think that you cannot place controls into a StatusBar control in the designer. However, you can add any number of Controls to the StatusBar programatically through it's Controls property.
Hope this helps
Hey don't worry, I can handle it. I took something. I can see things no one else can see. Why are you dressed like that?
- Jack Burton
|
|
|
|