|
You have a fundamental design problem, an exe by definition is atomic, you need to pick one of your program files (EXE) as the applicaion launcher and turn all the others into DLLs that are referenced by the application exe.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thanks for your quick response.But in that code exe seperated by different module type.eg.one exe per one module.I will try it once.
|
|
|
|
|
I have an windows application there are different modules.for each module i created seperate project.so there are different exes for each module.now i am trying to combine those modules and trying to build whole application with one exe.they are working when i build individual exe.when i install the exe i am getting 4 exes for 4 modules.
|
|
|
|
|
You have, as has been stated, a serious fundamental design flaw in your application.
There is NO WAY to combine seperate .EXE's to into a single .EXE.
|
|
|
|
|
If you truly have 4 sep. exes, then break them out into their own respective executable. Then build a Menu type app that can launch each of the 4.
Otherwise, break the exes into sep objects as recommended by the previous members.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
I am using XML as data storage. In below code data is added but problem is Previous data losing.
The Previous data deleted and new data is added give me any solution.
This is code I m using.
Dim xml_write As New XmlTextWriter(Application.StartupPath & "\sam.xml", System.Text.Encoding.UTF8)
With xml_write
.Formatting = Formatting.Indented
.Indentation = 8
.WriteStartDocument(False)
.WriteStartElement("CP")
.WriteStartElement("rec")
.WriteAttributeString("no", "Male")
.WriteElementString("f1", "5001")
.WriteElementString("f2", "5002")
.WriteElementString("f3", "BOB")
.WriteElementString("f4", "BOB")
.WriteElementString("f5", "BOB")
.WriteElementString("f6", "BOB")
.WriteElementString("f7", "BOB")
.WriteElementString("f8", "BOB")
.WriteEndElement()
.WriteEndElement()
.WriteEndDocument()
.Flush()
.Close()
End With
Thanks in advance.
|
|
|
|
|
Yep, that's what New means you are asking for a new writer, adding data to the NEW writer and then writing it out which overwrites any existing file.
Suggestion
Use a datatable
1 create the table adding colums as required
2 insert data into the datatable
3 using the datatable's dataset you can write the table to an xml file (you may be able to use the table direct to xml)
2nd time in
1 look for the file
2 read the file into a dataset
repeat 2 & 3 from stage 1
This article uses the above methodology C# only[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Load the XML file into XMLDocument instance. After adding the new values, call XMLDocument.Save . This will preserve the existing data.
|
|
|
|
|
|
Hello every one,
I need some help with text format in rich text box.
I am using a rich text box in which a user can past the text from text editors like Word. There the original format of the text (fonts, size, color)is shown.
But when i get the text and sen it in a db text field and get back i loose all the formatting
How do i retain all the formatting
Regards
Nishkarsh
|
|
|
|
|
I was able to do it by using .rtf property
Now i am facing another issue...
When i get the .rtf text from the rich text box, it is of really big size and the increase in size depends on formatting and things like use of table and other objects.
Not i am not able to find how big the field should be in the db to accommodate text of size 500 char...
I wrote 50 formatted char and it gave 483 char as output. I added a table (no data inside) and it increased to 1093
any idea
Regards
Nishkarsh
|
|
|
|
|
If you don't know how big the text will be, use the MAX version of datatypes. As per documentation, VARCHAR(MAX) can hold 2^31-1 bytes.
|
|
|
|
|
Is the .rtf property the most efficient way to serialize/deserialize the contents of a RichTextBox? Deserializing seems to take time n^3.
|
|
|
|
|
I have searched Google and the message boards but I can't find an answer to this.
strFileName = My.Computer.FileSystem.SpecialDirectories.MyDocuments & "\" & Me.dgvData.SelectedRows(0).Cells(0).Value.ToString & ".kml"
Dim sw As StreamWriter = New StreamWriter(strFileName)
sw.WriteLine(strXML)
sw.Close()
strFileName = Chr(34) & strFileName & Chr(34)
procID = Shell(strFileName, AppWinStyle.NormalFocus)
As soon as it hits Shell if stops with file not found, yet the file exists as it has just been created.
As you can see I tried enclosing the file name with "", but that has not helped either.
I am assuming that since a kml file extension is registered to Google Earth that I don't need to specify GE. The file runs just fine if I find it in My Documents and double click it.
Anyone out there who can help?
|
|
|
|
|
Thanks Folks. Question answered in the "How do I..." about the screen saver.
Process.start works just fine.
|
|
|
|
|
hello friends.
i know little knowledge of vb.plz help me if u can.
i want to rotate a text line of about 5oo characters on a single label or any other object which can be changed in the output.
the project is like we read news on the bottom of a news channel which marquees from left to right or right to left.
thanx 4 giving ur precious time but plz help
|
|
|
|
|
|
thanx for d reply it helped me to understand.
please xplain where to find this superMarquee control in vb. which version conain this.
and please tell me how i can change the element text at runtime.
thanks 4 ur concern
|
|
|
|
|
dahras wrote: please xplain where to find this superMarquee control in vb. which version conain this
No Visual Studio version contains that. It's written by the person who wrote the artice. You can download it from the article page and using Visual Studio you can compile it (assuming you cave C# installed) and you have a dll which yo can refer n your project.
dahras wrote: please tell me how i can change the element text at runtime
I'm not familiar with the control so I'm not able to help yo uin that, but you could open the aricle, go to the bottom where you see messages section. Add a new message to contact the author of the article and ask dim for advice. You could also ask if he has VB version of the control
|
|
|
|
|
thanks sir
this tool is mainly 4 c# can u give me idea about how to implement this control in vb.
or is there any other way ???
thanx
|
|
|
|
|
dahras wrote: this tool is mainly 4 c# can u give me idea about how to implement this control in vb.
The tool is only written in C#. That doesn't mean that it can only be used in C#. You can write a DLL in any .Net language (for example in C#) and use it in another language (for example in VB.NET).
As I said, you should ask the author of the article if he has written a VB version (or if someone else has). However, that's not mandatory since you can also use the C# version. It would only be more comfortable for you if you're more familiat with VB
|
|
|
|
|
Hello ! I need to create application that will monitor printer and save backup of every document that is printed on that printer ... It's enough to be in plain text. Printer is connected to a computer and is shared via LAN. Computer is running Windows XP.
Is it possible ? Could you give me some advice, what to use, where and what to read
|
|
|
|
|
|
Thanks, I'll look into it
|
|
|
|
|
From your question, it looks like you want to monitor all printjobs that go to the network-printer. Printers have their own methods of caching pages that need to be printed, and it depends on the driver of the printer that the vendor supplied.
Lastly, a warning; you should check with a lawyer before peeking into other people's documents. Let me add that I'd sue your ass off, if I found out that you're reading my print-outs
If you're just spending too much money on ink on that printer, then try and find a network-admin who can setup some cover-sheets and permissions.
Hope this helps,
I are troll
|
|
|
|