|
Hello guys,
I'm developing a mailing application where I want to deliver my mails to a relay SMTP server.
(This is a linux postfix server which is configured for outgoing performance).
So in my app I just use the smtpclient to connect to this server and send the messages.
Now I really would like to retrieve the message ID once I send a message.
I can't find where I can retrieve this.
It's sent back by the server like: 250 OK id=1K4Md1-0004B5-NO
The client just returns me a boolean.
Thanks !
|
|
|
|
|
I have been tasked with researching third party object-relational mapping and RAD frameworks for .NET
Our organization is just starting a long term migration from VFP to C# / .NET and wants to kick start this process by employing a third - party ORM framework.
I have not used any third party frameworks for ORM in .NET yet and don't want to get painted into a corner at this early stage.
One of the frameworks we are reviewing is called Mere Mortals.NET by Oak Leaf Enterprises Solution Design.
I have also heard of another product called IdeaBlade Dev Force.
Anybody had experience with these products or third-party ORM frameworks in general.
Thanks
Tim Holgerson
|
|
|
|
|
Tim - as you're new to the boards, I'd like to point out that it isn't good form to post on multiple forums; plus, this is a C# forum - hence you should ask a question that is more specific to C# here.
|
|
|
|
|
Sorry about that. Point taken. Was not sure which forum would be appropriate for the question
|
|
|
|
|
I prefer to just use the .NET framework. Many of these third-party "frameworks" seem to try to do a lot more than is really necessary and if you try to step out of scope you quickly make the framework your own worst enemy.
Writing C# code to access a database is surprisingly simple and so it authoring the corresponding objects. The honest truth, as I have seen from implementations at some of the big 500 is that overall cost would have been millions less without use of a "framework" on top of the .NET framework.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
I've no personal experience, but a quick google search[^] turned up lots of possibilities, many of which are open source so you can play without spending $$$
Although you're targeting C#, .NET is .NET regardless of language, so you may get a better, more informed response from the lounge[^]. Cross posting is frowned upon here so a quick post with a link to this thread may be the way to go!
Dave
|
|
|
|
|
i need to detect the edges of a picture.i need a simple algorithm to acheive this. i ll prefer this in c# language.
thanks
|
|
|
|
|
Check my image processing articles here on Code Project.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have a program that gets callback from an external program. It sends back a type object[] that is of variable length. I want to take the parts of the object[] and put them into native data types (int). In the callback, I get an object called 'ObjectOfIntegers'. It has a built in method (from the third party application) called 'get'. 'get' returns an object[] that has all the things i ask for. The third party program's 'get' function obviously is the barrier. so it looks something like this:
ObjectOfIntegers.get("Integer1,Integer2")
or it could be
ObjectOfIntegers.get("Integer1,String1")
If I know I am getting integers, I want to be able to put them in native data types and then use them (ie put them in myInteger1, myIntegery2, myString1, etc). so i declare the integers and strings globally and then want their assignment to be done in the callback. i've tried these two ways:
1)
private int[] intArraySize2 = new int[2];
private int myInteger1, myInteger2;
private void someCallbackFunction(ThirdPartyDataType ObjectOfIntegers)
{
Array.Copy(((Array)ObjectOfIntegers.get_Get("Integer1,Integer2")), intArraySize2, 2);
myInteger1= intArraySize2[0];
myInteger2= intArraySize2[1];
}
2)
private Object[] dataObject = null;
private int myInteger1, myInteger2;
private void someCallbackFunction(ThirdPartyDataType ObjectOfIntegers)
{
dataObject = (Object[])ObjectOfIntegers.get_Get("Integer1,Integer2");
myInteger1= (int)dataObject.GetValue(0);
myInteger2= (int)dataObject.GetValue(1);
}
Does anyone know which would be faster? Is there a better way to handle this? Speed is the most important issue to me. If anyone has any ideas of what to do, how to do it faster, or where to go for more information I would REALLY appreciate it. Thanks so much.
|
|
|
|
|
Hi there,
My problem is very simple.
I have a portal application with many subforms that can be called and the user can maximize or minimize these subforms.
What I want to do is to open a small-sized subform when my active subform is maximized.
But I'm not being able to do that since it is default that when you call another subform when one is maximized, the subform will TOO be maximized.
I tried finding something in the designer code... but nothing seems to be there about this.
Any ideas?
Thanks in advance!
Oscar
|
|
|
|
|
|
Yup exacly!
Thanks a lot!
But still... using that I figured that I need to do what I want in other way...
In my application I've just realized that maximizing the the form and then opening the other forms in normal state wouldn't be very elegant (I'll have to spread too much code, telling every form to open in normal state).
This way I'm thinking now in instead of maximizing the first subform, I want it to fill the portal application.
Let me try to explain this better:
I have a portal aplication wich uses everytime one of its subforms(monitor form). This way I want the monitor to be opened automatically with the portal.
Now, since it didn't work to start the monitor with maximized state... I want its normal state to have the size that fills the portal app. (Portal is just a form with a menu above with, File, Edit, View and all that stuff)
Fill the portal = make the monitor have the size of that empty space from the portal app.
The problem: When you change windows themes, constant size doesnt work... sometimes it is less, and sometimes it is bigger than it should be (scrollbars appear).
Is there a property, variable.. or something that gives me the size of that empty space?
Thanks in advance!.
|
|
|
|
|
Are you talking about an MDI Form with children?
If so, setting the start up position of the parent to manual and
this.Size = Screen.PrimaryScreen.WorkingArea.Size;
this.Location = new Point(0, 0); will make it fill the working area of the primary monitor.
For the children, if you want them to fill the parents client area then put this in the child's load method.
this.Size = Parent.ClientRectangle.Size;
this.Location = new Point(0, 0);
Dave
|
|
|
|
|
Thanks for the help Dave!
I think this can work, but I dunno why the parent form keeps enabling the scroll bars.
The parent form thinks that the Child form is bigger than its area and then enables the scroll bar.
To stop this I searched for Scroll functions and tried setting them manually:
public PortalForm()
{
InitializeComponent();
this.AdjustFormScrollbars(false);
this.AutoScroll = false;
this.HorizontalScroll.Enabled = false;
this.HorizontalScroll.Visible = false;
this.VerticalScroll.Enabled = false;
this.VerticalScroll.Visible = false;
this.HScroll = false;
this.VScroll = false;
this.SetAutoScrollMargin(0, 0);
this.SetScrollState(0, false);
}
But these function didn't work... when I start the child form, the portal scroll bar is activated...
Here is the code where it starts the child form:
private void PortalForm_Shown(object sender, EventArgs e)
{
Form frmMonitor = new MonitorRiscoResultadoFrm();
if (frmMonitor != null)
{
frmMonitor.MdiParent = this;
frmMonitor.StartPosition = FormStartPosition.WindowsDefaultLocation;
frmMonitor.WindowState = FormWindowState.Normal;
frmMonitor.Size = ClientRectangle.Size;
frmMonitor.Show();
}
}
Any ideas why the scroll bar keeps visible ?
Thanks again!
Oscar
|
|
|
|
|
Place this method in your MDI Parent form:
private void ChildFillClientArea()
{
if (ActiveMdiChild !=null)
{
Form activeChild = ActiveMdiChild;
Rectangle clientArea = Rectangle.Empty;
foreach (Control control in this.Controls)
{
if (control is MdiClient) clientArea = control.ClientRectangle;
}
activeChild.Bounds = clientArea;
}
} and call it after showing the form
MonitorRiscoResultadoFrm frmMonitor = new MonitorRiscoResultadoFrm();
frmMonitor.MdiParent = this;
frmMonitor.Show();
ChildFillClientArea();
Edit: No need to place any code in the child form's load method
Dave
|
|
|
|
|
I need to create WinForms DataGridView column which shows spaces between thousands and allows user to enter amounts, e.q
<br />
1 234.55<br />
22 444.44<br />
343 333.33<br />
3 333.45
I tried MSDN DataGridView MaskedTextBox column sample.
This sample displays mask only for current cell, not to whole column.
I tried to use
public MaskedTextBoxCell()
: base()
{
DisplayStyleForCurrentCellOnly = false;
...
But got error since DisplayStyleForCurrentCellOnly does not exist for TextBox cells.
How to apply mask to every row in column and allow user to enter numbers?
Andrus.
Andrus
|
|
|
|
|
Hi!
Can someone please tell me how to open MMS streams in C# (using a lib. or whatever), and play it using the DirectShow. I'm struggling with this issue for a week, and can't get it to work whatever I do. I was browsing the DirectShow MSDN library, but couldn't find anything. I know there is a way to open and play MMS streams from a WMP ActiveX ctrl., but I don't find this approach very convenient.
Thanks in advance,
A.
modified 20-Jun-22 21:01pm.
|
|
|
|
|
MMS? Do you mean Mutimedia messages as sent from a mobile (cell) phone?
Dave
|
|
|
|
|
No, I meant MMS as Microsoft Media Services (like in "Video/Audio Streaming")...
modified 20-Jun-22 21:01pm.
|
|
|
|
|
I am running VS2008 Professional version but I don't see the Profiling menu so i can monitory the my application performance. Most of the Profiling tutorials don't tell you how you can itegrate this addson to your VS2008 Pro. Can somebody help me to figure this issue out.
|
|
|
|
|
Profiling is included only with VS2008 Team Edition.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
VS6 had profiling built in. I've seen the claim that executables produced with VS6 run faster than equivalent executables produced with the later compilers.
Maybe Microsoft doesn't want to make it easy for people to find this out. Or maybe they want to sell a more expensive version that has the profiler included.
|
|
|
|
|
what are you talking about dude i couldn't understand what you are telling here VS6 what's that
|
|
|
|
|
VS6 is Visual Studio version 6. It was followed by Visual Studio .NET in 2003. After that Microsoft identified compiler versions by the year they were released, e.g. VS 2008.
|
|
|
|
|
Alan Balkany wrote: VS6 is Visual Studio version 6. It was followed by Visual Studio .NET in 2003. After that Microsoft identified compiler versions by the year they were released, e.g. VS 2008.
*Cough* Correction *Cough*. Visual Studio .NET was 2002 - that was version 1 of the compiler. It was followed up by VS 2003 in 2003 which introduced .NET 1.1 (hence the year numbers started in 2003).
|
|
|
|