Hi all, I'm beginner developer and I want to develop a software telephone in .NET. I prefer C#. After some googling, I started to code in C# using the prewritten VoIP components of [Ozeki's VoIP SIP SDK](http://www.voip-sip-sdk.com). Now I have a simple softphone that is able to make and receive audio calls. But I want to extend my program with video calling functionality. Can anybody help me how to move on?

Member Avatar
Member Avatar
+0 forum 9

I have heard that table security for data stored in the table can be made by storing Hashbyte data in a column. So anyone comes and change values manually in a table will be identified and that record be ommited for further calculation Need help on these areas CREATE TABLE [dbo].[sample1]( code varchar(50) NULL, [hashcol] varchar(100) NULL ) ON [PRIMARY] GO using 2012 VS and ADO .NET with sql server 2008 1. this is my table and trying to insert hashbyte data to hashcol column from csharp application HOW TO GENERATE HASHBYTE VALUE FROM CSHARP ? I have used this …

Member Avatar
Member Avatar
+0 forum 1

How do I detect left mouse button down and up events on the 'Close' option of the system menu that appears when the mouse is clicked on the top left corner of a form?

Member Avatar
Member Avatar
+0 forum 6

I have some c# code using the tweetsharp library and when I run it with mono it gives this error: Missing method .ctor in assembly /home/freddy/rubystack-1.9.3-16/apache2/htdocs/yrs/c_backend/TweetSharp.dll, type System.Runtime.CompilerServices.ExtensionAttribute Can't find custom attr constructor image: /home/freddy/rubystack-1.9.3-16/apache2/htdocs/yrs/c_backend/TweetSharp.dll mtoken: 0x0a000019 Missing method ToList in assembly /home/freddy/rubystack-1.9.3-16/apache2/htdocs/yrs/c_backend/ConsoleApplication1.exe, type System.Linq.Enumerable Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. File name: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. File name: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' The exe was generated by …

Member Avatar
Member Avatar
+0 forum 1

I have an MDI application containing an MdiParent form and few MdiChild forms. The MdiParent has a fixed MenuStrip, a fixed ToolStrip and a fixed StatusStrip. The MdiChild forms have one or more ToolStrips and a StatusStrip along with other controls in them. The ToolStrips and the StatusStrip of the MdiChild are generally hidden and are only shown when the form is opened in the MdiParent. Based on this scenario I have the following objectives: 1) When an MdiChild is opened in the parent, its ToolStrip(s) should be shown along with the fixed Menu and ToolStrip of the parent. Please …

Member Avatar
+0 forum 0

hi i am validating cells in the datagrid in datagrid celleditending event. if the validation fails message is diplayed in the message box when i click ok in the message box the focus move to the previous row .i want the focus in the current validated cell i try this code but it didn't work. int index = attendancegrid .SelectedIndex; attendancegrid .SelectedItem = attendancegrid .Items[index]; attendancegrid .ScrollIntoView(attendancegrid .Items[index]); if anyone knows how to focus the current cell when validation fails give some sample code

Member Avatar
Member Avatar
+0 forum 1

I am new to c# and I am working with a xml file. I have appended to an existing sample file, but the formatting is off and some of the xml elements are missing. What I am working toward is appending to it 10 times just changing the number for the element D100 but keep the same data I have just appened for D100 number 2. Here is the sample xml file I am using <flp:Tab xmlns:flp="http://www.w3.org/2001/flp" Title="Testing"> <flp:Form Number="0" id="1005" /> <flp:Rev Time="2013-01-21T15:08:00"> <flp:Author Name="Brad" Aid="15" /> </flp:Rev> <flp:Designs Id="D100"> <flp:D100 Number="1"> <flp:Code>A</flp:Code> <flp:Documented>true</flp:Documented> <flp:Note>In Process</flp:Note> <flp:Testers> <flp:Tester Name="David"> …

Member Avatar
Member Avatar
+0 forum 1

Hi Everyone, I need to write to a text file that is located on my website Currently, I have the following code to let me read from a text file on my website [CODE]HttpWebRequest reqFP3 = (HttpWebRequest)HttpWebRequest.Create("http://jamesgeddes.com/tracknan/phone3.txt"); HttpWebResponse rspFP3 = (HttpWebResponse)reqFP3.GetResponse(); Stream st3 = rspFP3.GetResponseStream(); using (StreamReader sr3 = new StreamReader(st3)) { WebTextPhone3 = sr3.ReadLine(); }[/CODE] What do I need to do to write to that file instead? Thanks everyone! James

Member Avatar
Member Avatar
+0 forum 2

Hi, I need just simple help. Could you just give me a tip for some good TCP server/client library for Csharp? It should be easy to use, and can handle big data size. Because I was using a Netcomm library, and while sending Image bytes, It has god frozen. Thanks for your help.

Member Avatar
+0 forum 0

Hello everyone, I've encounterred a problem that I cannot seem to overcome. For the program to compile there are a few steps necessary to take: from the website [Click Here](http://osl.iu.edu/research/mpi.net/software/) on the download page, one would need to download and install: 1. MPI.NET SDK 2. Microsoft Compute Cluster Pack SDK(this one is the one that I used,this needs to be installed in the x86 version of Program Files,this was the only solution that I found to be able to install it); 3. Also there is a tutorial for installing the previous programs and a small introduction to the MPI program …

Member Avatar
Member Avatar
+0 forum 4

Hi every body, i want to get a data from List<T> so; class Npc : IDisposable { public short id; public float fX; public float fZ; public float fY; } internal List<Npc> m_arNpcArray = new List<Npc>(); I want to get data like this; m_arNpcArray.GetData(int id); GetData() { for(int i = 0; i < List.Count; i++) { if(List[i].id == id) { return List[i]; } } } how can i declare m_arNpcArray.GetData ??

Member Avatar
Member Avatar
+0 forum 3

I found a C# script to copy any irregular portion from an image (using free hand drawing) and put it on another image. I have never worked with C#. All I want is to copy the irregular part and save it as a new image with transparent background (png format) with fixed width and height, say 140x50. Can anyone make the necessary code changes and post here?? URL to the script: [Click Here](http://blog.csharphelper.com/2010/04/18/copy-an-irregular-area-from-one-picture-to-another-in-c.aspx)

Member Avatar
Member Avatar
+0 forum 1

Hi, i have csharp server(console application) and java client. I need to get a java client ipaddress, can someone tell me what is the function in csharp? I am new in csharp. I was searching on web and nothing help me.

Member Avatar
Member Avatar
+0 forum 2

Hi, I have problem with my connection to the database generate from entity data model of Ado.Net Entity framework. I work in Console Application. My code looks like that: public static void Main(string[] args) { string connectionString = "Data Source=(localdb)\v11.0;Initial Catalog=BarDatabase;Integrated Security=True"; using(SqlConnection con = new SqlConnection(connectionString)) { string queryStatement = "SELECT TOP 5 * FROM dbo.Persons ORDER BY PersonId"; using(SqlCommand cmd = new SqlCommand(queryStatement, con)) { DataTable customerTable = new DataTable("Top5Customers"); SqlDataAdapter dap = new SqlDataAdapter(cmd); con.Open(); dap.Fill(customerTable); con.Close(); } } Throw me a statement: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The …

Member Avatar
Member Avatar
+0 forum 7

I created a UserControl that contains a custom ToolStrip Control. While using the UserControl throughout an application, the ToolStrip control cannot be accessed directly, as logically it's embedded in the UserControl. So, to access the items of the ToolStrip I defined a readonly property in the UserControl class that returns the items of the ToolStrip. Now programmatically the items of the ToolStrip can be edited by using the UserControl.Items property, but I cannot do the same in the design mode. Like someone drags the UserControl from the ToolBox to the form, goes to the property grid, chooses the Items property …

Member Avatar
Member Avatar
+0 forum 2

Hi There; I am learning how to establish a connection to mysql in c#. Here are my codes : using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using MySql.Data.MySqlClient; public partial class _06_web_form_elemanlari_08_button : System.Web.UI.Page { protected void connect(Object Sender, CommandEventArgs arguman) { try { MySqlConnection connection; // bağlantı nesmenizi tanımladık string connString; MySqlConnectionStringBuilder builder = new MySqlConnectionStringBuilder(); //" MySqlConnectionStringBuilder" bize bağlantı kurmamızı kolaylaştıran yapı builder.UserID = "root"; builder.Password = "123456"; builder.Database = "connectcsharptomysql"; builder.Server = "localhost"; connString = builder.ToString(); connection = new MySqlConnection(connString); connection.Open(); Response.Write("Connection is successfull."); connection.Close(); } catch (Exception ex) { Response.Write("Bağlantı başarılı …

Member Avatar
Member Avatar
+0 forum 3

Greetings, I have a User Control called: Share.ascx I have a page called: News.aspx In News.aspx I created a ModalPopupExtender, then I addeda Panel and inside the Panel I added the User Control: Share.ascx so that when the Popup Extender is called the Panel with the User Control is displayed. The problem: I can only HIDE the ModalPopupExtender from News.aspx because ModalPopupExtender is defined there but I need to call the HIDE funciton of ModalPopupExtender from the User Control: Share.ascx.cs How do I do that? Thank you.

Member Avatar
+0 forum 0

Hello, I have an image in one of my project folders: Lets say its in: ~/App_Themes/Default/images/SomeImage.png I want to load this image into a System.Drawing.Image, how do I do that? If I try using the FromFile method of the Image class: Image img = Image.FromFile("~/App_Themes/Default/images/SomeImage.png", true); I get a "FileNotFoundException". I have read some suggesting to store the image into the Server but that's not an option. Is there any way to load this into the Image?

Member Avatar
Member Avatar
+0 forum 4

Greetings to all, I have two functions: Function 1: ImageToByteArray: Is used to Convert an Image into a Byte Array and then Store in an Oracle Database, in a BLOB Field. public byte[] ImageToByteArray(string sPath) { byte[] data = null; FileInfo fInfo = new FileInfo(sPath); long numBytes = fInfo.Length; FileStream fStream = new FileStream(sPath, FileMode.Open, FileAccess.Read); BinaryReader br = new BinaryReader(fStream); data = br.ReadBytes((int)numBytes); return data; } Function 2: ByteArrayToImage: Is used to Convert a Byte Array from the Database into an Image: public System.Drawing.Image ByteArrayToImage(byte[] byteArray) { MemoryStream img = new MemoryStream(byteArray); System.Drawing.Image returnImage = System.Drawing.Image.FromStream(img); return returnImage; } …

Member Avatar
+0 forum 0

Hello, i am working on a section of a project, that uses large number of sum methods. These sum methods are applied on a Datatable To test the best method, i use the following **Datatable structure** Class ParseLog { public DataTable PGLStat_Table = new DataTable(); public LogParser() { PGLStat_Table.Columns.Add("type", typeof(string)); PGLStat_Table.Columns.Add("desc", typeof(string)); PGLStat_Table.Columns.Add("count", typeof(int)); PGLStat_Table.Columns.Add("duration", typeof(decimal)); PGLStat_Table.Columns.Add("cper", typeof(decimal)); PGLStat_Table.Columns.Add("dper", typeof(decimal)); PGLStat_Table.Columns.Add("occurancedata", typeof(string)); } } **Following method is used to Fill the table** LogParser pglp = new LogParser(); Random r2 = new Random(); for (int i = 1; i < 1000000; i++) { int c2 = r2.Next(1, 1000); pglp.PGLStat_Table.Rows.Add("Type" + i.ToString(), …

Member Avatar
Member Avatar
+0 forum 1

Hi, I've got 2 forms, after click on the button I'm hiding first and showing second.. How to put the second form to the same location as first one? I've tried: MMenu m = new MMenu(); // MMenu is the first form this.Width = m.Width; //Width and Height lines are working OK. this.Height = m.Height; this.Left = m.Left; //These two are not. I have already tried this.Location = m.Location - no success this.Top = m.Top; Thanks for you help :)

Member Avatar
Member Avatar
+0 forum 1

I have a project in visual studio 2010 and i use c# and asp.I want to use a part of code that uses dll files.I don't know to import the dll to my project. I do know for example,how to use css and javascript: But i think for dll is a lot different.

Member Avatar
Member Avatar
+0 forum 1

actually, i'm developing dynamic template using asp.net and c#. in my usercontrol page i have a listview which is include dynamically created table. once the user edited any of the rows and press the save button before the PageLoad or PageInit i want to execute the ItemUpdating function to save the data to the database. my listview code is as follow: [CODE]<asp:ListView ID="lv_Uc_Module" runat="server" OnItemEditing="lv_Uc_Module_ItemEditing" OnItemDeleting="lv_Uc_Module_ItemDeleting" OnItemCanceling="lv_Uc_Module_ItemCanceling" OnItemDataBound="lv_Uc_Module_ItemDataBound" OnSorting="lv_Uc_Module_Sorting"> <LayoutTemplate> <asp:Table runat="server" ID="table_Lv_Layout"> <asp:TableRow runat="server" ID="tr_Table_Layout"> <asp:TableCell runat="server" ID="td_Table_Layout"> <asp:Table runat="server" ID="itemPlaceholderContainer"> <asp:TableRow runat="server" ID="tr_Table_IphContainer"> <asp:TableHeaderCell runat="server"> <asp:PlaceHolder ID="th_Ph_Lv_header" runat="server"></asp:PlaceHolder> </asp:TableHeaderCell> </asp:TableRow> <asp:TableRow runat="server"> <asp:TableCell runat="server"> <asp:PlaceHolder runat="server" ID="itemPlaceholder" /> …

Member Avatar
+0 forum 0

actually i'm developing web template using asp.net and c#. i have mainTemp.aspx page which is include usercontrol page. in my usercontrol i have a listview which in this listview i have to create dynamic table inside the ItemTemplate based on a XML file. my listview code including the ItemTemplate is: [CODE] <asp:ListView ID="lv_Uc_Module" runat="server" onitemediting="lv_Uc_Module_ItemEditing" onitemcanceling="lv_Uc_Module_ItemCanceling" onitemdeleting="lv_Uc_Module_ItemDeleting" OnItemDataBound="lv_Uc_Module_ItemDataBound" OnSorting="lv_Uc_Module_Sorting"> <LayoutTemplate> <asp:Table runat="server" ID="table_Lv_Layout"> <asp:TableRow runat="server" ID="tr_Table_Layout"> <asp:TableCell runat="server" ID="td_Table_Layout"> <asp:Table runat="server" ID="itemPlaceholderContainer"> <asp:TableRow runat="server" ID="tr_Table_IphContainer"> <asp:TableHeaderCell runat="server"> <asp:PlaceHolder ID="th_Ph_Lv_header" runat="server"></asp:PlaceHolder> </asp:TableHeaderCell> </asp:TableRow> <asp:TableRow runat="server"> <asp:TableCell runat="server"> <asp:PlaceHolder runat="server" ID="itemPlaceholder" /> </asp:TableCell> </asp:TableRow> </asp:Table> </asp:TableCell> </asp:TableRow> <asp:TableRow runat="server" ID="tr_Validate_Table_Layout"> <asp:TableCell runat="server" …

Member Avatar
+0 forum 0

Actually i'm creating web template using asp.net and c#. in my user control page i have to create the table dynamically. i just read the data from XML file then retrieve the name and number of columns and rows of each table. while i'm creating the table i assign the name and id to each cell. because i have one row including some textbox for adding the data to database. but after i have created the table i can not access to the textbox cells based on id to get their data and insert it to database. my dynamic table …

Member Avatar
Member Avatar
+0 forum 2

This gives me error..how to solve this... class nameex { public object call() { dynamic expando = new ExpandoObject(); var p = expando as IDictionary<String, object>; p["Demo"] = "New val 1"; } } } class de { dynamic n = new nameex(); x.call(); n.Demo = "Welcome"; Console.WriteLine(n.Demo); }

Member Avatar
Member Avatar
+0 forum 1

HI I am using - ASP.Net - C# - SQL Server Express 2008 R2 I have a table called customers which contains all customer details and a stored procedure which gets: - Total No Of Customers - Total No Of Customers in Region1 - Total No Of Customers in Region2 etc etc... I would like to then populate these results into a "statistics" page on my site/app using the label control (or any other method if easier). So far I have the Stored Procedure: [CODE] CREATE PROCEDURE [usp_getStats] AS -- Count Region1 Accounts SELECT COUNT(custID) FROM custDetail WHERE region = …

Member Avatar
Member Avatar
+0 forum 10

I am trying to develop (on c#) a Point of Sale program(deployed on machine 1), with integrated kitchen display system(deployed on machine 2). I pretty much have an idea how to develop the individual programs, however, I haven't tried integrating thee machines (to function as one) before. Here's a brief overview of the system im trying to do: Machine 1 : Point of Sale function - Enter customer orders(do basic POS functions), then PUSH the list of order from the POS to the kitchen display system. Machine 2 : Kitchen Display System function - Basically what it needs to do …

Member Avatar
Member Avatar
+0 forum 9

Is there anyway to optimized application performance? I already try to change setting at [B]Visual Studio 2005[/B] and tick [B]Optimized code[/B] at application properties on [B]Build[/B] section. When I tested and deploy the application at my Windows Mobile device, it seem does't have much different. I want to make the application running faster rather waiting about 25 second to load to the login screen.

Member Avatar
+0 forum 0

Hi all, i have a scenario in which there are two subscribed users (to database) in my web app.......now if one of it wants to send a message (just like mail but not sms) to another without using any email account...... but with the help of that website and some magical method is it possible, if yes than what would be the magical method could be used to acheive this......I am a new bie therefore asking such questions???

Member Avatar
Member Avatar
+0 forum 3

The End.