|
its a access db and i have stored it in a folder called data which is attached to my project ..............fine my problem is solved and thank's allot for ur valuable advice
its me sid
|
|
|
|
|
Hi all,
I want to do one projects in C# 2005
For same field I want to do one project in web application and onther in windows application.
So can I do both project in one project.
The View will be after splash screen main page will come. there will be 2 link options say 1.RFQ/ENQ control (web app) 2.Stock taking(windows app)
Can I do this ? If yes please tell me how to do?
Thanks in advance
Ashwini
|
|
|
|
|
No, you can't. A windows app lives on the local machine, a web app lives on a server. That's just the first of your problems.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Hai Everybody,
I have used the following code to send the mail using the System.Net.Mail namespace:
string host = "192.168.0.22";<br />
int port = 85;<br />
string userid = "un";<br />
string password = "pwd";<br />
<br />
MailMessage message = BuildMessage();<br />
<br />
SmtpClient smtp = new SmtpClient(host, port);<br />
smtp.Credentials = new NetworkCredential(userid, password);<br />
smtp.SendCompleted += new SendCompletedEventHandler(smtp_SendCompleted);<br />
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;<br />
try<br />
{<br />
smtp.Send(message);<br />
<br />
MessageBox.Show("Success!", "Sample", MessageBoxButtons.OK, MessageBoxIcon.Information);<br />
}<br />
catch (Exception ex)<br />
{<br />
MessageBox.Show(ex.InnerException.Message);<br />
MessageBox.Show("Failed! \r\n" + ex.Message, "Sample", MessageBoxButtons.OK, MessageBoxIcon.Warning);<br />
}
When i am giving the invalid IP Address / port number it is giving the error "Unable to connect to Remote Server".
But when I am giving invalid user name or password it is just sending the mail.
Can any one tell me how to protect sending mail if wrong credentials are specified.
Thanks in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Do you use your own mailserver and if that's the case have you set it up so that users must login to send mail?
|
|
|
|
|
Yes I am using my own mail server.
Johan Martensson wrote: set it up so that users must login to send mail
Where can i set this?
Is it in the Exchange Server or can we set this in the program itself?
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
I have no experience with Exchange Server myself but there should be some option to make the users login to send mail.
I have only used CMailServer and Kerio Mailserver and they have this option.
|
|
|
|
|
i need a program that use TAPI and H323 TSP to answer a call ??
|
|
|
|
|
i need a program that use TAPI and H323 TSP to amnswer a call ??
|
|
|
|
|
I loaded up a DataSet from an SQL table and was able to read it within the class in which I loaded the ds. However when I try to call the data from another class there is no data in the ds.
Please help,
Michael
|
|
|
|
|
Hi,
Please Please Give Us Your Code So We Can Help Solve U'r Problems
Regards,
Tomi
|
|
|
|
|
yeah , please provide us with your code section
I know nothing , I know nothing
|
|
|
|
|
I have 2 pieces of code one for datasets and the other a class in which I have a similar problem, I did not include all of the code but the general idea is there. I will place the second in a different thread. Note that some of the syntax comes from a program called OleDBProNet for loading data from a database though this should not matter see where I can read data in "***".
Class1
{
DataSet_I dsI = new DataSet_I();
DataSet_I.BSecDataDataTable BSD = new DataSet_I.BSecDataDataTable();
public void buttonFillDataTables_Click(object sender, EventArgs e)
{
if (checkBoxOleDBProNet.Checked == true)
{
if (checkBoxFilldsIDataTables.Checked == true) FilldsI_DataTablesOleDBProNet();
string strGroup = BSD[200].strGroup;
******* Data does not show here line above*****
}
}
}
Class2
{
DataSet_I dsI = new DataSet_I();
DataSet_I.BSecDataDataTable BSD = new DataSet_I.BSecDataDataTable();
FilldsI_DataTablesOleDBProNet();
{
ShowRowset();
string strGroup = BSD[200].strGroup; ******* Data shows here *****
}
public void ShowRowset()
{
Rowset.MoveFirst();
while (!Rowset.IsEOF)
{
BSD.NewBSecDataRow();
BSD.Rows.Add(nUseRecNumID);
if (Rowset.GetData(1) != null) BSD[nUseRecNumID].nRecNumID = (Int32)Rowset.GetData(1);
Rowset.MoveNext();
}
}
}
}
|
|
|
|
|
public class NameInfoCS
{
public int historyHandle = -1;
public int nRecNumID = 0;
public string Name = "";
public int item = 0;
}
public class FillNamesInfoArrayCS
{
NameInfoCS[] NameInfoArray
public void FillArray()
{
NameInfoArray = new NameInfoCS[Names.Length];
for (int idx = 0; idx < Names.Length; ++idx)
{
NameInfoArray[idx] = new NameInfoCS();
NameInfoArray[idx].Name = Names[idx];
NameInfoArray[idx].nRecNumID = idx + 1000;
}
}
}
private Class1
{
private NameInfoCS[] NameInfoArray = new NameInfoCS[100];
******* if I load data from FillNamesInfoArrayCS here there is no problem, but if I load FillNamesInfoArrayCS from outside of this class and then call this class the class has no data in it. “info.” Below shows as null, “NameInfoCS info in NameInfoArray” error message says I must use new ****************
public void DATAMultipleHistory()
{
if (program.IsEntitled != 0)
{
program.ReleaseAllDATA();
foreach (NameInfoCS info in NameInfoArray)
{
info.historyHandle = program.get_RequestHistory(info.Name, info.strDATATP, IProgram.DATAType.btDATA, info.nNumberOfDATA);
}
}
}
}
|
|
|
|
|
Hi,
I want to draw/write some text on the top of the screen when I play a full screen game.
How to do that in C#?
Many thanks in advance.
//Dirwir
Dirwir
|
|
|
|
|
I remember seeing this article a few weeks ago that seems appropriate, I wouldn't recommend using it for a multiplayer game as punkbuster,etc might class it as a cheat.
|
|
|
|
|
Many thanks! nice article!
|
|
|
|
|
I am working on a project in C# that involves some rather convoluted formulas to calculate values. The resulting code has been very difficult to write and even harder to read/debug. What I want to do is overload some operators to make the math a bit quicker to write and easer to read. (Especially since I know that some of these formulas will change in the future)
For example; I would rather do something like “10^(somevariable* somethingelse)” than “math.pow(10, (somevariable* somethingelse)” since things like this are often buried deeper in a more complicated formula. [I have at least one formula involving 12 operators, 3 of them are raising part of the equation to the power of another part]
I have looked up Operator Overloading and they all refer to using it on user defined classes or UDT’s. There must be an easer way.
David Wilkes
|
|
|
|
|
|
Basic?!?! Wish I had, but far along enough now that I don't want to start over.
Thanks for the link. I will see if it helps.
David Wilkes
|
|
|
|
|
You could abuse the XOR operator ^ by wrapping your numbers in a struct with overloaded operators.
You cannot introduce new operators, but you can do something similar with C# 3.0: you can go from the prefix notation "Math.Pow(b, e)" to the infix notation "b.Pow(e)" by defining an extension method.
static class ExtensionMethods
{
public static double Pow(this double b, double e)
{
return Math.Pow(b, e);
}
}
|
|
|
|
|
I have made a windows. added toolStripContainer and added a Menustrip and toolstrip to the Toppanel and added a statusstrip to bottom panel of StripContainer.
Then I set the Dock property of toolstripContainer to Fill. and set the Anchor property of toolstrip to Top,Right.
Now my problem is Just the toolstrip.
When I resize my form the Statusbar and Menu just work fine but the toolstrip stays in its original place.
Any Ideas?
|
|
|
|
|
HI,
I like to know where i can get a template for
Adding a Control in DataGridView Cell
MS Got DataGridViewButtonColumn etc.
I'm tring to build a one of my own
(I want to Add the Image Property to The DataGridViewButtonColumn)
(i do not want to use the "dataGridView1_CellPainting" Event)
but i do not Know What methods to Override and so..
Can anyone refer me To a Good Guide
THANKS
Have Fun
Never forget it
|
|
|
|
|
Is there a way to draw a new line when something is triggered? Thanks in advance, and I hope that doesn't confuse anyone...
- "Achieving all knowledge does not mean achieving all wisdom."
- "Welcome to the end."
|
|
|
|
|
MasterSharp wrote: and I hope that doesn't confuse anyone...
Didn't confuse me. It's crystal clear that you posted a completely ambiguous and utterly useless message.
Also the answer to your question is, yes.
|
|
|
|