|
I am working on project in c#.net that requires desktop dialing.
Requirement: We want to connect EPABX with the Computer Server machine(which is connected to other Client machines by Local Area Network-LAN). When user initiate a event on the client machine for dialing(etc) the request goes to server machine and then server machine sends request to EPABX.
Question:
1. How we can connect EPABX with computer server.
2. How server machine send request to EPABX.
Please guide.
Ashwani
|
|
|
|
|
HI,
Anyone can tell me how to to save the doc files in C.
arun
|
|
|
|
|
Do you mean C, C++, or C# ? By doc files, do you mean Word documents, or a document format of your own choosing ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi
i have a win form... and i'm changing it's properties at runtime (e.g. BackColor) at some point i want to get back the orginal BackColor.. the color i specefied at design time.
when i'm creating a new instance of the form and trying to copy the BackColor from it it's not working! it's as if i changed the class not an instance of it at runtime!!!
please help me
|
|
|
|
|
If you create a new instance of the form that means you have a new form and you change the color of the new form. If you just want to change the backcolor, then use:
this.BackColor = Color.Red; //(for example)
|
|
|
|
|
LOL - I just answered this on MSDN. Your form needs to call InitialiseComponent in order to have it's properties set. Create a method that sets the default properties, call it after InitialiseComponent and then call it again if you need to reset.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello,
Before you change the Forms BackColor you have to save it at a global Color variable
<code>
private Color oldBackColor;
private void youreMethod()
{
//save your color
oldBackColor = this.BackColor;
this.BackColor = Color.???;
}
private void youreothermethod()
{
//get back youre color
if(Iwhantit()==true)
this.BackColor = oldBackColor;
}
</code>
Hope that helps you.
All the best,
Martin
|
|
|
|
|
Hi all,
Greetings...I'm using range validator for date validation.In that i've channged the Type as 'Date'...but the Maximum Range of the Date is no accessing...can any one tell me how to rectify this...
Babu
|
|
|
|
|
Please tell me what I am doing wrong. I have some problems using Crystal Reports. I have for an example an Access database with a table called "Authors". I connect to the database using the server explorer in VS.NET 2005, I create an OleDbConnection and a DataAdapter. I use the Generate Dataset option from the DataAdapter to generate a Typed DataSet called dataSet1. I load data into the DataSet using the Fill method from the DataAdapter. Then I insert a new Crystal Report Document Using the Wizard and I add as data source From the Project Data/ADO.Net Datasets the dataset1.Authors. I add all the fields from the dataset and I add an Crystal Report Viewer control to the main form. I use the folowing code to set the ReportSource filed of the viewer:
CrystalReport1 cs = new CrystalReport1();
this.crystalReportViewer1.ReportSource = cs;
Ok, when I run the Application the Crystal Report Viewer it lists nothing from the DataSet data. What is wrong?
|
|
|
|
|
Yay I found a solution just by adding one line of code to the code from above:
CrystalReport2 cs = new CrystalReport2();
cs.SetDataSource(this.dataSet11);
this.crystalReportViewer1.ReportSource = cs;
|
|
|
|
|
Thanks for this - much appreciated.
Wish I'd found it two days ago
Glen Harvy
|
|
|
|
|
The EnableAutoDragDrop property for the RichTextBox gives the ability to copy text when dragging. Is there anyway to fix this so that the text is moved instead?
Also, just overriding dragEnter and dragDrop with e.Effect = DragDropEffects.All; gives seemingly flawless DnD behavior without the use of DoDragDrop or having to trace the drop index using the coordinates. How come this method isn't mentioned anywhere?
Any suggestions on how to get DnD working on a RichTextBox would be greatly appreciated. Please and Thank you!
// Mikzi L. Freeman
|
|
|
|
|
Hi there,
can any one guide me, in how to create auto folder when i pass the path for ex: "C:\folder\subfloder\"
i want to create subfolder automatically when i key in this path in parameters. pls do the need ful.
|
|
|
|
|
Directory.CreateDirectory doesn't work ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Please help me!
I want set location of the MainMenu, ToolBar in Design time of WindowForms, norman that set as Top. If can please send mail:
hoatieukiem@yahoo.com
Thanks!
-- modified at 21:37 Tuesday 25th July, 2006
|
|
|
|
|
Can you please explain better what are you trying to do because I don`t understand exactly. Thanks!
|
|
|
|
|
I think you cannot do that in standard mainmenu and toolbar from VS2003.NET.
See this:
http://www.codeproject.com/cs/menu/ToolBarDock.asp
|
|
|
|
|
Hello,
I am developing a web app and trying to use Enterprise Library 2.0. I am using it for logging for now. I achived the logging on a flat file but when I tried to start doing the logging by using a DataBase Listener. I failed.
Here's how I am using it after including all possible references to my web app.
I configured a datasource with following attributes setup:
-Server (my server name)
-Database (my database in my server)
-Integrated Security (I used API.. something, false, true and I even tested after removing this tag aswell).
-user (my user name)
-pwd (my password)
Then I configured a Database Listner and gave the reference of my datasource.
Then I configured a Logging block by adding different categories and then I added reference to my Database listner in categories.
I also tested by adding and removing following in web.config:
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs"
="" type="Microsoft.CSharp.CSharpCodeProvider,
System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" compileroptions="/d:SANDBOX,DEBUG">
----------------
After doing this all when I try to log an entry after specifing the category to the entry and other required attributes. NOTHING HAPPENS in tables I generated after running the script file provided by Best Patterns and Practices team. I couldnt log any data.
Is there anybody who can help me or tell me what I am doing wrong?
|
|
|
|
|
sorry, I copied and pasted the following b4:
type="Microsoft.CSharp.CSharpCodeProvider,
System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
compilerOptions="/d:SANDBOX,DEBUG" />
in the last line in codedom tag its /d:TRACE
|
|
|
|
|
I am trying to get each item from a listview and write it to an xml file. For instance lets say i have 2 items in the ListView: http://download.com/download1.zip & http://download.com/download2.zip. below is the code i have but it gives me an error: Unable to cast object of type 'System.Windows.Forms.ListViewItem' to type "System.String'.
XmlNode nodeDload = xmlDoc.DocumentElement;
XmlElement Dload = xmlDoc.CreateElement("Download");
XmlElement dataDload = xmlDoc.CreateElement(i.ToString());
XmlText textDload = xmlDoc.CreateTextNode("");
nodeDload.AppendChild(Dload);
foreach (string item in aUrlView.Items)
{
Dload.AppendChild(dataDload);
dataDload.AppendChild(textDload);
textDload.Value = item;
++i;
}
Example Below
<root>
<download>
<1>http://download.com/download1.zip</1>
<2>http://download.com/download2.zip</2>
</download>
</root>
Could someone help me out with this?
Thanks in advance
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
I have a program where I am importing data from a comma delimited file. The data is from years of user input that was not validated at time of input, therefore some of the data is useless. I have found my way around most of the problems except one. In this file there is a birthday for each customer. If the user inputed the date as "76/00/25", DateTime.Parse will not read it correctly. Should I put this in a try/catch block and set the data to something default ( like 1/1/1900 )?
Thanx in advance.
Jude
|
|
|
|
|
I have done a fair amount of data cleansing and what we usually do is dump the bad data into another file. Then apply human analysis to fix the solution for larger and large portions of data. Hopefully, you will then get to a relatively small set of data. For the final set make best guesses based on weighted importance of the data. (BTW, use nulls instead of defaults when you don't know. Some people born on 1/1/1900 might be offended otherwise)
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
Thanx for the response!
Ok, I have another question.
How do I set a DateTime value to null? I tried dtDate = null, but it did not compile.
Also, I am passing this value to a stored procedure and the column can hold a null value, but will the procedure allow that...IOW does it have to be defined as so in the procedure?
Thanx again!
Jude
|
|
|
|
|
Hi i am wanting to read an xml file and load the data into various strings:
<root>
<filename>
<1>First String</1>
<2>Seconed String</2>
</filename>
<fileinfo>
<1>First String</1>
</fileinfo>
</root>
string[] fileName;
string fileInfo;
Could someone point me in the right direction?
Thanks
------------------------------------------------------
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
XmlDocument document = new XmlDocument();
//Load your xml
...
//Then use XPATH
XmlNode node = document.SelectSingleNode("/root/filename/1");
or such
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|