33 Posted Topics
Hello Can anyone please help me out in how to get or read two values from single textbox. i.e when i read the first value it should be stored in string str1 , when i click button the textbox shld be cleared and shld wait to accept second value.The second … | |
Hello everyone, I am very new to asp.net and asp.net mvc as well. I am stuck with the following problem please help. I have the following javascript [CODE]<script type="text/javascript"> var allMarks = []; google.load("maps", "2"); var geocoder; var lat; function initialize() { var map = new google.maps.Map2(document.getElementById("map")); map.setCenter(new google.maps.LatLng(37.4419, -122.1419), … | |
Hi Please help me, i am stuck with this. My xml will be generated dynamically .i.e it is not the same always and it doesnot have the same elements or same number of nodes always, it may grow or shrink. How to convert this kind of xml to html in … | |
Hi I know this is an simple problem, i have an 2 stackpanels, i n one stackpanel i have button and in other stackpanel i have frame these two stack panels are on Grid. Now when i maximize my window the contorls wihtin stackpanel are not getting resized, but stackpanel … | |
Hello everyone, How can i display multiple pages in a wpf window.The condition is only one portion of the window will be provided to display these pages. The rest of the window will contain a standard template with some images and with some controls. So how can i display my … | |
Hello everyone I am creating a simple chat application using wcf. The problem is on callback i am not able to display the message on to client rich text box. i.e when the user clicks on whisper button the server makes a callback to client the callback is successfull, but … | |
Hi Can anyone please provide source code or links for how to create simple windows chat application using WCF that works on LAN. I have gone through these Links but they are using xaml http://www.codeproject.com/KB/WCF/WCFWPFChat.aspxand this link does not explain about callback operation http://www.codeproject.com/KB/WCF/Chat_application_using_WC.aspx . Please provide C# source code … | |
Hello everyone How can i get all the table names of database and display these table names using combo box. Or store the table names in an array . I am using sqlexpress and c# | |
Hello everyone, Is it to possible to validate cells of datagridview using regular expression? Also i am loading datagridview using combo box i.e table names are provided in the combo box depending on the selection corresponding tables data will be loaded on to the grid view. And all the tables … | |
Hello everyone, Please someone help me out from this problem. I have an datagridview which is bound to an datasource which contains two tables CompDetails and Orders. Now when i click on button and if texbox.text=1 data will be displayed fine, if i click the button for second time the … | |
Re: Ya Momerath is right you need to deal with p/Invoke. You need to hook on to the other program and intercept its action i.e you need to inject the DLL into the adress space of the application whose actions u need to record. Take a look at mouse hook concept, … | |
Re: They are like %d or %f or %s of printf syntax in c or c++ | |
Re: Hope this helps [CODE]static void Main(string[] args) { string[] s={"hello,how,are,u", "this,is,second,string"}; for (int i = 0; i < s.Length; i++) { for (int j = 0; j<=s[i].Length; j++) { string[,] s2=new string[20,20]; string[] s3 = s[i].Split(','); s2[i,j]=Convert.ToString(s3[j]); Console.WriteLine(s2[i,j]); } } Console.Read(); } }[/CODE] I have hardcoded the string array. You … | |
Re: Check for the keypress, when key is return then make textbox.visible property to false. [CODE]private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) textBox1.Visible = false; }[/CODE] To Display text on picture box check this [URL="http://www.fordevs.com/2009/02/convert-text-to-image-using-c.html"]http://www.fordevs.com/2009/02/convert-text-to-image-using-c.html[/URL] Try this, [CODE]private void pictureBox1_Paint(object sender, PaintEventArgs e) { Font myfont = … | |
Re: How can you convert string to an string array?? Use pointers and increment the pointer to concatenate ur strings string *str1,*str2; for(;; ) if(str1++!=".") str2++=str2++ + str1++; Hope this is works | |
Hi Since i am a newbie to win32 programming i am facing difficulty in understanding how to use these GetMessage(), SendMessage(), PostTHreadMessage() apis, please help me ... Here is the code [CODE]#include "stdafx.h" #include "windows.h" #include "stdio.h" #include "conio.h" #include "windef.h" #include "winbase.h" HINSTANCE hins; HOOKPROC hkprc; HHOOK hk; HANDLE … | |
HI Can any one please give some idea on how to read contents of active window. i.e say i have opened some notepad file say somefile.txt n it contains some text data ....how to read the contents and display it on console or write to some log file .... user … | |
Hi Is it possible to obtain complete path name using mouse click i.e when i click on a file say file.txt on c:\ i shld get the result as c:\file.txt. Or say if i have opened the file and the file is my active window how to get the path … | |
Hi everyone I have an application which hooks to notepad and records the keyboard strokes, this works fine only when i have an notepad open before executing my application. Once the appl is running and then i open notepad my appl doesnt work. My ques is suppose i have first … | |
Hi all, Can any one please help me how to call an function from dll in vc++. [CODE]// test1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "windows.h" #include "conio.h" #include "windef.h" int _tmain(int argc, _TCHAR* argv[]) { HINSTANCE instcall=LoadLibrary(TEXT("c:\\test2.dll")); if(instcall==NULL) printf("Failed to load dll"); … | |
Hello everyone, Is it possible to use controls of other applications using c#? I mean for example i run realplayer music player or any other application. Now is it possible to access file menu or edit menu or tools of these application using c#. i.e on a button click i … | |
Can anyone please help me in finding out whether the below code causes memory leak or not. If it doesnt cause leak wat modification i can do to make it leak. Thank You Here is the code in FORM1 [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using … | |
Hello everyone I have an windows application proj which contains 4 to 5 forms and an database in it. One form performs insertion operation, other performs search operation and other form displays data from DB. Now how to find the total memory or the minimum memory required for this app … | |
Hello I have an windows form with two button, i have converted this windows form to an dll. The dll is here namespace projdll { public partial class abc : Form { public int i = 0; public abc() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { MessageBox.Show("BUTTON … | |
Hello I have created an dll for my windows application ...the app contains two buttons which on click displays message box with some message. Now i create another windows application which contains one button, when i click this button my dll has to be executed . i.e the form with … | |
Hello I have an dll which is added at runtime using assembly.loadfrom(). Now how to call a particular method within dll at runtime on button click .The dll name is trial.dll and the dll contains one method called demo() which just display a messagebox on call. How can i invoke … | |
Hello everyone , Is there any way to add dll reference to a c# proj at runtime ..... FOr eg i hav windows form called form1.cs and dll called projlib.dll. Now when i click a button the reference to the dll should be added at runtime. I.e programatically add dll … | |
Re: make use of insert query .... insert into tablename values(1,2,3) ..... pass the value of datagridview column in the query and use da.update(dataset,tablename) | |
Hello everyone, Is there a way to limit the number of records to be inserted into a table using ado.net. For example i need to insert only 5 records into table, the table should not allow me to insert the 6th record. I am new .net can anyone pls help... … | |
Can anyone pls help how to dispose objects by my own. i.e i should not allow the garbage collector to dispose my object automatically when object is out of scope, instead it should leave the job of disposing the object to me whenever i need. Thank You all | |
Can anyone please help me out in creating an .exe file. I have a database included in my project as a backend. When i publish my application n run tat in my sys it works fine. When the same application is installed on other machine which doesnt contain sql server … | |
Re: there shld be a placeholder for writeline to print the value on to display writeline syntax shld be like Console.WriteLine("time={0}",time.ToString()); or Console.WriteLine("time=" +time.ToString()); | |
Hello everyone , I am new to this xslt, can anyone please help me out solving my problem. Its very urgent, as i am doing my final year engeneering project. And my project is based on this xslt My problem is to convert html created by MSWORD to clean html … |
The End.