|
Yusuf do u know how to read and write File summery Infomation....im tring ole etc thing....but cannot....can u understand the other reply....i tried other reply also but couldn't....???can u understand that reply...??
A S E L A
|
|
|
|
|
There is the AssemblyInfo.cs file. You can set the addition info in this file. And the the program will show it.
fish.fired at gmail.com
Skype://fish.fired.gmail
|
|
|
|
|
hi...i didn't get u....can u just explane bit more....thanks...
A S E L A
|
|
|
|
|
Following is to edit the Properties directly.
Click Properties -> Click [Application] tab
-> Click [Assembly Infomation] button. Then type the string.
fish.fired at gmail.com
Skype://fish.fired.gmail
|
|
|
|
|
hi.....can u post an example....sample code....thanks a lot...
A S E L A
|
|
|
|
|
Hi everyone,
I have created a new component and am trying to add menuitems to the design context menu.
Best way to explain what I am trying to do is to show it in another control that already has it.
If you add a TabControl to a form and right click on it, you get the normal copy, paste etc, but you also get an option to "Add tab" and "Remove tab" which are specific to the property. What I want to do is add a menuitem where the "Add tab" is for the TabControl.
Any help appreciated.
Thanks in advance,
David Bailey.
|
|
|
|
|
Check out the section PropertyTreeDesigner - interesting bits in Russell Morris'[^] article A designable PropertyTree for VS.NET[^]. It talks about how to add "verbs" to the design-time context menu.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi Curtis
Thanking you, that was just what I was looking for...
mVerbs = new DesignerVerbCollection();
mVerbs.Add(new DesignerVerb("Add PropertyPane",
new EventHandler(OnAddPane)));
mVerbs.Add(new DesignerVerb("Add PropertyPane as child",
new EventHandler(OnAddPaneAsChild)));
mVerbs.Add(new DesignerVerb("Remove PropertyPane",
new EventHandler(OnRemovePane)));
mVerbs[2].Enabled = false;
- David Bailey.
|
|
|
|
|
Hello,
I convert the pdf to JPEG picture using IMAGEMAGICK, but how i can have the best quality, beacause the picture was blur, thank you verry mutch.
|
|
|
|
|
check ImageMagick's documentation or forum.
Yusuf
|
|
|
|
|
I suggest you hire someone to do this for you, you really don't seem to have any semblance of a clue.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I have problem
at c#
i created interface that have signature OtherFrame(ref Byte[] data) and build for create dll
at visual c++
i use dll interface from c# I dont know function that have same signature interface
virtual void FirstFrame(array<Byte>^% frame)
{
unsigned char *tmp = new unsigned char [frame->Length];
for(int i = 0; i > frame->Length; i++)
tmp[i] = frame[i];
changepicture(tmp);
delete[] tmp;
}
i create function. it work but It cannot past by referrence becase of
a picture on picture box at c# it not change.
any one can help me
thank you
|
|
|
|
|
|
you did not specify your framework, so assuming you working with 3.5 see here[^]
Yusuf
|
|
|
|
|
I am using .Net Framework 2.0 sorry I should have included that in my original post.
|
|
|
|
|
When using this class how come the examples I see on the internet do not include statements for port number, username and password, and servername?
I'm going to be using this class on a client app and I think I need to supply this information but do not know how to code it.
|
|
|
|
|
|
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient([Host], [Port]);
smtp.Credentials = new System.Net.NetworkCredential([UserName], [Password]);
If you prefer, use the config file (web.config, app.config).
<system.net>
<mailSettings>
<smtp>
<network host="" port="" userName="" password="" />
</smtp>
</mailSettings>
</system.net>
|
|
|
|
|
I have seen many that give examples, but they wont give you real working one.
See here[^] and here[^] for code examples
Yusuf
|
|
|
|
|
The code file in the second link is very cool. Thanks!
|
|
|
|
|
use it responsibly.
Yusuf
|
|
|
|
|
|
Hi,
I have following function below but is not populating values from the table product?
private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
database = new OleDbConnection(connectionString);
System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand("Select * from Products", database);
database.Open();
System.Data.OleDb.OleDbDataReader dr;
dr=cmd.ExecuteReader();
while (dr.Read())
{
comboBox3.Items.Add(dr["ProductName"]);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
return;
}
}
regards,
|
|
|
|
|
- you probably want to clear out the old values from the combo box before you populate it with new data
- don't forget to close dr and database after you're finished using them otherwise you'll leak resources
- what happens when you step through this in the debugger? does your while loop properly iterate through all the rows in the DB?
- if the only column you're using from the DB table is ProductName then doing a Select * is rather inefficient.
- just for my own curiosity, why are you doing this in the SelectedIndexChanged event handler for the combo box?
Last modified: after originally posted -- grammar correction
|
|
|
|
|
Hi Jimmanuel,
...What else method or way u recommend instead of SelectedIndexChanged ? can u pls gimme example?
... I have 3 fields in that table so why it is inefficient?
i have changed code and following is here: to include dr.close method..
private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
database = new OleDbConnection(connectionString);
System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand("Select distinct ProductName from Products", database);
database.Open();
System.Data.OleDb.OleDbDataReader dr;
dr = cmd.ExecuteReader();
while (dr.Read())
{
comboBox3.Items.AddRange(new Object[] { dr[1].ToString() });
}
dr.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
return;
}
}
please help
|
|
|
|