|
Sounds like you need to investigate the system tables. Getting a list of tables and their columsn from sql server is easy enough - check out the information_schema views. Fromthis you should be able to generate your search.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi,
I have error : Access to the path'c:\abc.text' is denied
I run my applications so many times before this error occur
What's the problem?
Thanks
|
|
|
|
|
By the defenition of "..run my applications..", do you mean that you start the program, open/read file, then close the program? If your not actually closing this program, it sounds like your not disposing the file handle properly.
I've used up all my sick days, so today I'm calling in dead.
|
|
|
|
|
Whatt you are trying to do,Reading or updating the file?
Cheers!!
Brij
|
|
|
|
|
Hi,
I am developing a C# application which launches a couple of other applications (non-C#). I can use the System.Diagnostics.Process class to start the child applications, but how can I embed these child applications into my Window forms and dock them at fixed positions in my MMI so that the whole thing looks like a single application? I dunno whether what I am asking makes sense, it's something like XWindows or Remote Desktop, where the remote application runs inside my own C# Form... Any suggestions? Thanks in advance.
|
|
|
|
|
You can make a hosted application window show up in a Panel or other container control in your form but you cannot make it look like it is an integral part of your application. You have no control over how the hsoted app's window is rendered. Docking is pretty much just moving the hosted window so it's up against the side of yours, but you can't stop the user from just grabbing the title bar and moving it.
You will need to look into the Process class' MainWindowHandle property and the Win32 function SetParent[^].
Keep in mind, that any child windows that the hosted app shows could very well show up outside your application window. Also, some applications do not like having their main window hosted by another parent, but most will. You could run into rendering problems or other strange issues.
|
|
|
|
|
|
For my application, I really need a timeline editor (a keyframe-like editor like can be found in Flash and Director and movie and sound editing software).
I'm guessing something like this has already been implemented somewhere. Does anybody know of anything that could be harvested? If not, does anyone know of a tutorial that suggests how to create one?
Thanks!
|
|
|
|
|
hi evryone
i have some quetion about xml file's
1. how i create xml file in c# code ?
2. how i can delete some records in xml file ?
3. how i can search record in xml file ? (like sql query)
i whant to work on xml file like Databse
my project is in c#
than'k alot for any help
|
|
|
|
|
Take a look at System.Xml.XmlDocument
|
|
|
|
|
i asked the same question before.
try LINQ to query XML! but not as good like using a real database
download here samples about that subject(xml), not the hardest thing to learn, i think!
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
E_Gold wrote: how i create xml file in c# code ?
Using XMLDocument or XMLTextWriter .
E_Gold wrote: how i can delete some records in xml file ?
Load it to XMLDocument instance and work with RemoveChild[^] method.
E_Gold wrote: how i can search record in xml file ? (like sql query)
Either use XPath or Linq-XML .
|
|
|
|
|
Hi All,
In my current C# app I need to write what seems to be a non-standard format XML file to be loaded into a very picky application.
I'm limited to this kind of format:
<rootnode name="preset #1" attribute1="" attribute2="">
<childnode index="0" />
</rootnode>
If there are any namespace (like xmlns the app won't load the file, if there is an encoding="" the app wont load the file also.
And to top it off the file needs to use UNIX ANSI not Windows ...
Does anyone have any ideas or info/links on how to achieve this?
Thanks,
|
|
|
|
|
Maybe if I could see it?
|
|
|
|
|
On the other hand, there appears to be very little data, so I bet it loads real fast.
"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." - Jason Jystad, 10/26/2001
|
|
|
|
|
"Ah, but what is the sound of no data loading?" -- Anonymous monk
|
|
|
|
|
|
Ummmm... Your code ain't showin' up. Try escaping all of your pointy brackets, and then put it in a pre tag.
"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." - Jason Jystad, 10/26/2001
|
|
|
|
|
<rootnode name="preset #1" attribute1="" attribute2="">
<childnode index="0" />
</rootnode>
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Yes, but I wanted him to do it.
But while I'm here... I see nothing wrong with that XML; it seems well-formed.
The worst thing I see is the #, which might be better off escaped/encoded.
|
|
|
|
|
I generally use an XmlDocument to hold XML and write it to a file with code like:
WriterSettings = new System.Xml.XmlWriterSettings() ;
WriterSettings.Indent = true ;
WriterSettings.Encoding = System.Text.Encoding.UTF8 ;
WriterSettings.OmitXmlDeclaration = true ;
WriterSettings.CheckCharacters = false ;
using
(
System.Xml.XmlWriter writer
=
System.Xml.XmlWriter.Create
(
File
,
WriterSettings
)
)
{
Doc.WriteTo ( writer ) ;
}
You may need to tweak WriterSettings.NewLineChars and WriterSettings.Encoding .
|
|
|
|
|
where can i see c# project specification where i can practice my skills
thank you
www.parkerituk.com
|
|
|
|
|
There are plenty of examples here on Code Project where you can take an application written in another language, and upgrade them into C#.
|
|
|
|
|
Thanks
www.parkerituk.com
|
|
|
|
|
Do you mean the XML schema for a C# project file?
|
|
|
|