|
Anyone know how to do this????
|
|
|
|
|
what do you mean by database labels?
|
|
|
|
|
Can someone please answer me a question??????????
I am trying to create a deployment project. Under the Launch Conditions window, I am trying to do a registry search to make sure that DirectX 8 is installed. The registry key is as follows:
Software/Microsoft/DirectX
Under the Key, there is "Version" under the name column and "4.08.01.0810" under the data column. Under the Launch Conditions, in the properties, I type Software/Microsoft/DirectX under the RegKey property. The problem is that under the value property, it seems to only want to work with Name properties and not value Properties. For instance....it will detect DirectX if I type "Version" in the value property. It will not detect DirectX(even though it exists) if I type 4.08.01.0810 in the value property. How can I effectively detect DirectX version in the registry????????????
Someone please help,
Thanks,
Kendal
|
|
|
|
|
Hi,
I have a method to render HTML from XSLT. Here is the method:
///
/// Method that renders HTML from XSLT document
///
/// <param name="writer" />
protected override void Render(HtmlTextWriter writer)
{
XPathDocument xdoc = new XPathDocument(Context.Server.MapPath(sourceFilePath));
XslTransform xslt = new XslTransform();
xslt.Load(Context.Server.MapPath(transformFilePath));
xslt.Transform(xdoc, null, writer);
}
I am now getting this warning:
warning CS0618: 'System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.IXPathNavigable, System.Xml.Xsl.XsltArgumentList, System.IO.TextWriter)' is obsolete: 'You should pass XmlResolver to Transform() method'
I need some help resolving this warning. Can you help?
Kyle
|
|
|
|
|
kyledunn wrote:
I need some help resolving this warning. Can you help?
Try this:
protected override void Render(HtmlTextWriter writer)
{
XmlDocument xdoc = new XmlDocument();
xdoc.Load(Context.Server.MapPath(sourceFilePath));
XPathNavigator nav = xdoc.CreateNavigator();
XslTransform xslt = new XslTransform();
xslt.Load(Context.Server.MapPath(transformFilePath));
xslt.Transform(nav, null, writer);
}
-Nick Parker
|
|
|
|
|
Thank you Nick!
I did need to use an XPathNavigator but even then the error message about using XmlResolver still appeared. Upon further research I found that XmlResolver is a argument in the Transform method.
Transform(XPathNavigator, XsltArgumentList, TextWriter, XmlResolver);
I still have no clue as to when or why to use a XmlResolver but found when I inserted a null for the arguemnt that the error disappeared.
Transform(nav,null,writer,null);
I suspect you can create custom resolvers to influence the Transform but that's for another day. Problem solved. Thank you.
Kyle
|
|
|
|
|
I need combo1 tied to tableA 'customers'
table is ID, Name
I need combo2 tied to tableB 'Stores"
table is CustomerID, Store Number
what is the best way to tie these together?
|
|
|
|
|
Hello,
I want to allow the user to edit columns but not delete or add new columns..
How can I do this??
Note: The read-only attribute allows me to edit, delete and add rows.. how can I only enable the "edit" without the "delete" and "add"
Thank you!!
|
|
|
|
|
defaultview.allownew = false;
|
|
|
|
|
Hi,
Does anyone know/ recommends an installer for distributing C# windows applications??
Does the installer make sure the .net framework is installed??
|
|
|
|
|
You can use the install wizard that comes with Visual Studio .NET (that is if you use VS.net) & it does check for .net framework installation...
If you are looking for a professional install maker try InstallShield. It is a powerful tool for creating MSI installers.
|
|
|
|
|
I have a form with a combo box and I dont wnat text editing at all. How do I guard against it?
|
|
|
|
|
|
but i want to allow them to choose from the list
|
|
|
|
|
Set the DropDownStyle property to DropDownList.
|
|
|
|
|
I need combo1 tied to tableA 'customers'
table is ID, Name
I need combo2 tied to tableB 'Stores"
table is CustomerID, Store Number
what is the best way to tie these together?
|
|
|
|
|
|
but I'm binding to table with ID, Name with the displaymember on name and value on id. how would I databing to the ID?
|
|
|
|
|
|
When the windows is shown, it will take focus.
What I did was call native fun GetActiveWindow()
do a show and then call SetActiveWindow(activeWindow)
|
|
|
|
|
You can use AK's suggestion, or you can use the ShowWindow() API with the SW_SHOWNOACTIVATE flag.
[DllImport("user32.dll")]
protected static extern bool ShowWindow(IntPtr hWnd,int nCmdShow);
protected const int SW_SHOWNOACTIVATE = 4;
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
I am sure the answer to this question is simple...but I sure haven't found an answer on my own.
In my spare time, just to relax, I've been coding the Conway Life algorithm. I am currently doing a fairly good, and fast display of the Automaton generations growth. However I want to incorporate scaling as well as a much larger viewing world than I have today.
The problem I have is getting a graphic control implemented that supports scroll bars. I am currently using a PictureBox control which supports both the drawing of the ellipses as well as recognizing the mouse_down event.
Do I have to blend a picture box with another control to get it to present scroll bars? Or is their another graphic control I can deploy? The basic idea here is I have a fixed windowed area, with buttons in a GroupBox to control the generation machine (turn on/off/load pattern/etc) and the graphic window to show the generations.
At the moment the graphics are tightly bound to the fixed array I'm using but I want to alter my algorithm to use blocks in a list with a hashtable for lookup similar to how Allen Hensel is doing it in Java. This will support up to 4 million generations for a 'mover' which requires a movable graphic window.
Thanks to anyone that can answer this!
MJ
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
|
Everybody here has probably used :
MessageBox.Show("Hello");
The problem I am working on is that when you create a message box in this way it puts an 'OK' button and this button has focus so if you press return it closes the box.
Is there a way to display a messagebox where the 'OK' button doesnt have focus, therefore forcing the user to click the button?
|
|
|
|
|
doesnt that violate the user experience rules?
but just inherit the thing and impose your own rules.
|
|
|
|