|
help as an alias wrote: vb6 application does not need any frame only make exe and run
That is not correct. A VB6 program needs the VB runtime library to run, just like a .NET program needs the .NET framework to run. It's just that VB6 has been around so long that the runtime library comes pre-installed on all current versions of Windows.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
No. You need the framework. There are very expensive tools out there that allow you to not use the framework, but all it does is bootstrap the framework to the .exe. Not worth the money for bloatware.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
No you cant ... and why bother your self so from the beggining ?! most windows PC's now adays have the .NET framework installed.
Sincerely Samer Abu Rabie
Note: Please remember to rate this post to help others whom reading it.
|
|
|
|
|
You can, surprisingly. Mind you, you will have to be prepared to throw shedloads of money at the problem and use something like Thinstall.
|
|
|
|
|
hi all ,
i m try to buil an application that is go to tak bar near time clock. but i have no logic and idea. plz help me
|
|
|
|
|
Follow these steps:
1) Drag a NotifyIcon control onto the form from the toolbox. Choose an icon and text for the notify icon
2) Add these two event handlers to the code:
<code>
private void Form1_Resize(object sender, EventArgs e)
{
if (FormWindowState.Minimized == this.WindowState)
this.Hide();
}
<code>
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
{
this.Show();
this.WindowState = FormWindowState.Normal;
}
Good luck
zafer
|
|
|
|
|
You need the NotifyIcon control for to be able to do this. Google it and you should find many examples. I think the MSDN page itself has an example.
HTH
|
|
|
|
|
|
That article is a good one, I may add
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hello,
I'm working on a little app which retrieves info from an XML-file
and shows the info to the user in a listbox.
Here's my XML-file:
<?xml version="1.0"?>
<Orders>
<Order OrderID="001">
<Job>VHS till DVD</Job>
<Price>800</Price>
<Status>Ej betalt</Status>
<Name>Erik Stendal</Name>
<PersonalNum>881107-0252</PersonalNum>
<Address>Gutegatan 122B</Address>
<ZipCity>566453 Göteborg</ZipCity>
<Phone>0708888988</Phone>
<Email>erik@hotmail.com</Email>
</Order>
</Orders>
And here's my C# code:
private void Form1_Load(object sender, EventArgs e)
{
FileStream docIn =
new FileStream(docPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
ordersDoc = new XmlDocument();
ordersDoc.Load(docIn);
DisplayContacts();
}
private void DisplayContacts()
{
XmlNodeList ordersList = ordersDoc.GetElementsByTagName("Order");
for (int i = 0; i < ordersList.Count; i++)
{
XmlAttributeCollection attrColl = ordersList[i].Attributes;
listBox1.Items.Add(attrColl[0].Value + "\t" +
ordersList[i].FirstChild.InnerText + "\t");
}
}
Now, if you look at my XML-file I also want to access the rest
of the info.. Like the price and the status. All I can find is
"lastchild.innertext", but obviously that's not what I need. So, what can
I do to accomplish my goal?
/Joplinazz
|
|
|
|
|
all you have to do is change
listBox1.Items.Add(attrColl[0].Value + "\t" + ordersList[i].FirstChild.InnerText + "\t");
to
listBox1.Items.Add(attrColl[0].Value + "\t" + ordersList[i].InnerText + "\t");
hope it helps
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
Thanks a lot for your answer.
Well, you see, what I want to do is to get them one by one so to speak..
I want to have the four first "children" in the listbox and do some
other stuff to the other ones.. So I need to split them all somehow,
I have no idea how though..
|
|
|
|
|
Try looping through all the child nodes of each Order node, like so:
for(int i = 0; i < ordersList.Count; i++){
XmlNode child = ordersList[i].FirstChild;
for(int j = 0; j < ordersList[i].ChildNodes.Count; j++){
listBox1.Items.Add(child.Name + "\t" + child.InnerText + "\t");
child = child.NextSibling;
}
}
The key here is child = child.NextSibling. I think this might be what you're after.
Dybs
|
|
|
|
|
Thanks a lot, that did it!
|
|
|
|
|
Actually, I just thought of a better approach. Instead of using
child = child.NextSibling
Just use
ordersList[i].ChildNodes[i]
No need for the NextSibling bit.
Dybs
|
|
|
|
|
In the addetion to manipulate throgh the xml, you can deserialize the xml to an entity then manipulate the entity, I find it this way more readable, unless there is not much of data manipulation you have.
Sincerely Samer Abu Rabie
Note: Please remember to rate this post to help others whom reading it.
|
|
|
|
|
|
|
That's because your SMTP server doesn't allow mail relay. The from address has to be an account on the SMTP server, or it won't send.
"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
|
|
|
|
|
Good Day,
My organization (School Club) will give a seminar. All attendees will get a certificate for attending the seminar.
All of the Attendees information will be saved on a database.
Basically, the Certificate was already designed using Photoshop. However, details like Name, Control Number and Date Printed needs to be filled-up.
I'm thinking of having 3 textboxes placed on top of the Imagebox (the Certificate Image), filling the textboxes with the name, control number and date, and then printing it. However, I don't know how to proceed.
What can you guys suggest?
Thanks!
It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.
|
|
|
|
|
I think you should use Crystal Report. Design your Certificate on Crystal Report [ that alredy designed as image ] please Value field and Print !!!!
|
|
|
|
|
Abhijit Jana wrote: should use Crystal Report
He could, but it might not be cost-wise beneficial for him since it for the school club. Clubs are usually on a tight budget of what they can spend. You might want to suggest something freeware for him to check out.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
You could just do something along the lines of using the PrintDocument class in your app for adhoc reporting. If not, there are plenty of free reporting tools out there, this google search on freeware reporting tools for .net[^] turned up a few good ones. Report Sharp Shooter Express is a nice one.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi,
I am using Save As Dailog box in my application. On running the application, when i try to save a file using Save As dialog box, i found a strange problem. When selecting "My computer" directly, the drives ( c:, d: ) are not visible. however when clicking on drop down box, the whole tree is visible(i.e My Desktop--> My Computer --> C:, D: etc). on doing some r&d i found out that this problem is with OS Windows XP only as with other OS, the above problem doesnt exists. Further my application applies MTA apartments.On shifting to STA, it works fine even with XP OS. Please help me out as i am bound to use Windows XP and MTA.
Regards
Saumik V
|
|
|
|
|
Hi, As i want the small example on how to write a function to insert an integer into a sorted array of integers using c#.Net. So can anybody help me in this regard?
|
|
|
|