|
hello everyone...
i'm using the new ToolStripMenuItem instead of MenuItem but i couldn't find the Index property which gives the position of the menu item if it is a submenu...can somebody tell me how to get it...
|
|
|
|
|
also i noticed that there's no MenuItem property!!!which of course returns the submenuitems...
|
|
|
|
|
I've been developing a small app in C#, that uses an Access DB.
When the idea to sell it came, I began to wonder... Can I?
I mean. I use an access created .mdb file to store my data. So... does anyone know how the licencing things are handled on matters like this?
Thanks.
|
|
|
|
|
Verify this for yourself, this is what I have found...
There are three cases:
1. If the developer builds a solution in an application that includes Jet but does not have a runtime version, for example Microsoft Excel or Microsoft Office, they must purchase and install a copy of the application on each user's desktop for their solution to run correctly.
2. If the developer builds a solution in an application that includes Jet and provides a runtime license or compilation, for example Microsoft Access (with the Microsoft Access Developers Toolkit), Microsoft Visual Basic, or Microsoft Visual C++, subject to the end user license agreements accompanying each of these products, they can build and distribute their solution to users with a runtime version or as a compiled application (.EXE).
3. If the developer builds a solution in an application which does NOT include Jet, but relies on Jet, (for example, Microsoft Project or Microsoft Visual FoxPro™) they face two requirements. First, they must adhere to the license agreement for the application they used to develop the solution. Second, they must purchase and install a copy of a Microsoft application or tool which DOES include Jet on the user's desktop.
You want #2 and #3 I believe. I'm no good at decyphering this lawyer speek.
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnaraccessdev/html/ODC_JetDatabaseEngineLicensingandSolutionDistribution.asp[^]
Also found this:
Access 2003 Developer Extensions are part of the new Visual Studio Tools for the Microsoft Office System software package.
Licensing and Distribution Rights
The licensing agreements included with Access 2003 Developer Extensions simplify the distribution of solutions or code segments. They include a royalty-free Access Runtime, which allows for the distribution of Access solutions and Access Data Projects, and free use and distribution of portions of the tools source code as part of your solutions.
http://msdn.microsoft.com/office/technologyinfo/devtools/accessextensions/default.aspx[^]
Matthew Hazlett
Sometimes I miss the simpler DOS days of Borland Turbo Pascal (but not very often).
-- modified at 23:08 Friday 27th January, 2006
|
|
|
|
|
Hi,
Am running the .NET Framework 1.1 and need to send e-mail via an SMTP connection via an SSL-enabled connection (for example, a GoogleMail account connection).
I have worked around the POP3 connection to receive e-mail using open source components online. But can anyone either give me, or point me in the direction of, advice on how to implement Secure Socket Layer on the SMTP connection in .NET 1.1
Thanks in advance!
Fred
|
|
|
|
|
In .NET 1.1, I don't think there is any support for SSL SMTP. In 2.0, there is the System.Net.Mail implementation that is a SMTP client that I think implements SSL.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am having problems getting the column order in a DataGridView object to display how I want it. Here are my objects:
Data object
<br />
class CData<br />
{<br />
private uint id;<br />
private string name;<br />
private object otherstuff;<br />
...
public uint ID{<br />
get{ return id; }<br />
set{ id = value; }<br />
}<br />
...
I then create multiple CData objects and place them in a List<CData> object "myList". When I go to bind this list to a DataGridView I use the following code
<br />
BindingList<CData> bindlist = new BindingList<CData>(myList);<br />
myDataGridView.DataSource = bindlist;<br />
myDataGridView.Refresh()<br />
the problem comes when my form is shown and my data is presented. Currently I can not figure out how to order the columns generated from my CData class properties. By default I thought they would show up in the order that they are declared like:
| ID | Name | OtherData |
but I find that the order is chosen at random (or some other factor I can not figure out) and they display something like:
| OtherData | ID | Name |
Now normally this wouldnt be too big of a problem but in my real world application I am using a Data object with over 100 fields which are generated from a file with a strict structure layout and it is critical that I see my columns in the proper order.
I hope I explained this properly and would appreciate any help that can be offered on the matter.
Thank you.
PS: If some moderator or something feels I will get more response in the C# forum, please move this post or advise me to move it.
There are only 10 types of people in this world; Those who understand binary, and those who don't.
-- modified at 17:30 Friday 27th January, 2006
|
|
|
|
|
bump to the first page. I still need help on this issue.
There are only 10 types of people in this world; Those who understand binary, and those who don't.
|
|
|
|
|
Hi,
I heard 2.0 is not compatible with 1.1. Is that truee? and do all the code written by vs 2003 can be compiled without change?
I am thinking move to vs 2005!
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
Are they compatible? In most cases, yes! But it depends on the specific code.
Does all code written in 2003 compile without change in 2005? No, but most does. Some modification will be necessary in some places, but again, it depends on the specific code.
You can read through the Breaking Changes in .NET Framework 2.0[^] for more information.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote: You can read through the Breaking Changes in .NET Framework 2.0[^] for more information.
Dave,
Thanks for the link. I've been wondering about any issues between 1.1 and 2.0 migrating.
Paul
|
|
|
|
|
I have a Dataset that has returned data from SQL Server. I would like to read in what the SQL Server type is for each Column and what the size is. For instance is the column is a nvarchar(20) I would like to be able to find out that the column has a size of 20. Is this possible? I can't seem to figure this out even using the DataColumn.
DataColumn.MaxLength is returning -1.
I tried also SQL Command:
SELECT COL_LENGTH('MyTable','MyColumnName') AS 'MyColumnLength'
it's running fine in SQL Query analyzer but it's returning 0 in C#
Any idea?
thanks
|
|
|
|
|
dear all,
I want to know manually dispose() is better than destructor().If you know that, sent message for me. (thanks.)
With Regards.
hk,linn
|
|
|
|
|
Ummm... What?
Are you asking which is better? Neither! Each individual object has its own requirements for calling .Dispose . Such as all the GDI objects (Graphics, Bitmap, Image, Icon, ...) all require you to call their .Dispose methods when you're done with them. Not doing so will result in OutOfMemory Exceptions sooner or later.
Pretty much, the rule of thumb is if the object requires an underlying system handle or other unmanaged resource, you MUST call .Dispose on that object when you're done with it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i am a beginner to .Net Framework. I want to know some of the website to visit
sowjanya kumar
|
|
|
|
|
|
There's hundred of them! All you need to do is Google for ".NET Framework tutorials"...
But The Code Project is a good place to start!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote: There's hundred of them! All you need to do is Google for ".NET Framework tutorials"...
But The Code Project is a good place to start!
Dave is right. Myself, I have this site bookmarked, heck, even as the default startup page for that matter, and numerous other sites that pertain to anything for .Net bookmarked. This site is a definite starting point.
Happy .Net programming,
Paul
|
|
|
|
|
Other than this site:
* msdn.microsoft.com/[^] - The Microsoft Developers Network is the premium resource from MS.
* DotNetRocks[^] - Podcasts that teach you about various aspects of .NET
* dnrTV[^] - Video tutorial/interviews from DotNetRocks team.
I recommend listening to DotNetRocks when you are driving or doing your daily commute. It is an excellent source of information during an otherwise dead time.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
This[^] is a good source of tutorials. And of course, right here at CodeProject!
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Greetings all.
I've made an e-mail module for a client where they can send e-mails with attachments to their clients.
To minimize against faulty entered e-mails I've made some functionality which removes e-mail adresses which are rejected by the server (error 550).
However, then I found something strange.
When ever I try to send an e-mail, the attachments get cleared, meaning that my recovery functionality will remove 550-faulty addresses and resend the e-mail but this time withouth the attachment.
I've found that if I send the mail successfully - the attachment is also removed after the send.
I'm using a wrapper-class around System.Web.Mail namespace and using smtp.mail.send(mailobject) to send the e-mail. There is not much to this wrapper class except some functionality to check whether recipient(s) and sender have been added.
Attachments get added by: "myMailObject.Attachments.Add(New MailAttachment(fileName))"
Now - to make the short story longer ....
Is this "clearing" of attachments inherit .net behaviour? Or would the problem lay elsewhere?
Regards
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
Never tried it, so I never noticed it. But, a workaround is pretty easy. Keep track of the email attachment filenames yourself and don't rely on the MailMessage object to do it for you. If you need to put the attachments back, you already have your own list to refer to so you can do it again.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yep - it is no problem doing a workaround, I did that myself along the same line you mention because my attachments are already persisted in a database.
I was just wondering if it was .net behaviour (or messed up code I'm using) and possible if anybody knew something about why
Thanks for the reply.
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
No idea. I don't see anything in the System.Web.Mail classes that would clear out the Attachments collection. The code never deletes anything from the collection and the collection is never refreshed from the contents of the underlying COM object either.
From the Framework's perspective, if the collection is being cleared out, you're doing it somehow.
But I find that hard to believe.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the feedback.
I didn't read anything about this in the framework description either, but I just couldn't read out of the wrapper code that it would do something like this.
I'll try to debug the wrapper intensely and test it, to see if I can find this disparity.
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|