Forum: C 2 Hours Ago |
| Replies: 2 Views: 59 C string is an array of characters. You may set or get a character at specific index.
char str[20]="ABC";
str[0]='a'; // replace 'A' with 'a'
C String (char array) is terminated with a '\0'... |
Forum: C# 7 Hours Ago |
| Replies: 7 Views: 67 Add a handler for KeyPress event by double clicking on event name KeyPress at Properties windows and put the code inside the keypress handler suggested by Mr. DdoubleD. |
Forum: XML, XSLT and XPATH 11 Hours Ago |
| Replies: 1 Views: 73 XSLT is written in a very functional style, and in this style there is no equivalent of a exit/break statement.
<xsl:for-each select="nodes">
<xsl:if test="some condition">
body of... |
Forum: XML, XSLT and XPATH 12 Hours Ago |
| Replies: 3 Views: 214 Take a look at libcurl (http://curl.haxx.se/libcurl/dotnet/). libcurl.NET Internet Client API. |
Forum: C# 12 Hours Ago |
| Replies: 3 Views: 100 If you want to select a random row from MS-SQL database then use,
SELECT TOP 1 column FROM table ORDER BY NEWID() |
Forum: VB.NET 12 Hours Ago |
| Replies: 3 Views: 109 It's a registry entry. Take a look at this article - http://www.codeguru.com/vb/gen/vb_system/directoriesandfiles/article.php/c4837/ |
Forum: C# 12 Hours Ago |
| Replies: 3 Views: 93 Use BETWEEN caluse - BETWEEN returns TRUE if the value of test_expression is greater than or equal to the value of begin_expression and less than or equal to the value of end_expression.
SELECT... |
Forum: VB.NET 12 Hours Ago |
| Replies: 2 Views: 74 >how do i get the coordinates of the button in the form?
Use Location Property of button control.
>how do i get the coordinates of starting and endpoints of the line?
Handles MouseDown,... |
Forum: C++ 1 Day Ago |
| Replies: 2 Views: 90 Read this page - http://dev.mysql.com/doc/refman/5.1/en/connector-cpp.html
SUMMARY: For windows platform, MySQL Connector/C++ supports only Microsoft Visual Studio 2003 and above on Windows. |
Forum: C# 1 Day Ago |
| Replies: 2 Views: 94 You have to use ADO.NET provider classes. Read more about ADO.NET (http://msdn.microsoft.com/en-us/data/aa937699.aspx) and show us your code. |
Forum: C# 1 Day Ago |
| Replies: 7 Views: 132 You cannot change DataType of column if it has data already. Why not just add a column and remove a column than in this case? |
Forum: C# 1 Day Ago |
| Replies: 3 Views: 92 Use SplitContainer instead of MDI. Check this out - The docking library for .Net Windows Forms. (http://sourceforge.net/projects/dockpanelsuite/) |
Forum: ASP.NET 2 Days Ago |
| Replies: 1 Views: 147 Here is a good article - Adding ASP.NET AJAX to an Existing ASP.NET Application. (http://www.codeproject.com/KB/ajax/EnableAjax.aspx) You will find more details on ajax from http://www.asp.net/ajax/... |
Forum: C# 2 Days Ago |
| Replies: 2 Views: 102 >How to put New record at the end of Database Table.
A table is an unordered recordset. The position of a record in the table is not relevant unless you impose an order on it.
If your table has... |
Forum: ASP.NET 2 Days Ago |
| Replies: 3 Views: 148 To deploy asp.net web application you need IIS. Take a look at this article - Creating Virtual Directories in IIS.... |
Forum: C# 2 Days Ago |
| Replies: 3 Views: 135 Hi danny.
You have to handle formclosing event along with singleton (http://hashfactor.wordpress.com/2009/03/31/c-winforms-create-a-single-instance-form/) - single instance of Form. |
Forum: C++ 3 Days Ago |
| Replies: 2 Views: 115 Purchase a good book. I suggest Network Programming for Microsoft Windows (http://www.amazon.com/Network-Programming-Microsoft-Windows-Professional/dp/0735605602) by Anthony Jones. It is a good book. |
Forum: ASP.NET 3 Days Ago |
| Replies: 1 Views: 177 Your question is bit unclear. Please elaborate it. |
Forum: ASP.NET 3 Days Ago |
| Replies: 3 Views: 163 Show us your code work please. You will find some useful information from this MSDN page - http://msdn.microsoft.com/en-us/library/aa479339.aspx |
Forum: ASP.NET 3 Days Ago |
| Replies: 3 Views: 138 To develop a website,
1. You need to regsiter a domain name.
2. You will have to get a web host.
3. Use HTML to create the front end. Plus CSS and maybe JavaScript. If you need dynamic content... |
Forum: Java 3 Days Ago |
| Replies: 5 Views: 135 Don't paint when value of x & y variable is zero.
public void paintComponent(Graphics g){
if(x>0 && y>0) {
g.drawString("X: " + x + ",Y: " + y + "",x,y);
g.drawString("Click #: " +... |
Forum: VB.NET 3 Days Ago |
| Replies: 2 Views: 127 The theoretical limit may be 2,147,483,647, but the practical limit is nowhere near that. Since no single object in a .Net program may be over 2GB and the string type uses unicode (2 bytes for each... |
Forum: VB.NET 3 Days Ago |
| Replies: 1 Views: 211 Check your control references and see if you have something labeled DHTML Edit Control for IE5. |
Forum: VB.NET 3 Days Ago |
| Replies: 4 Views: 145 Handles (http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/37e4f691-7831-42a7-b491-6fd884eb0bc0) clause is missing with Event handler. |
Forum: VB.NET 3 Days Ago |
| Replies: 1 Views: 137 Use Aggregate (http://msdn.microsoft.com/en-us/vbasic/bb737904.aspx#aggsimp) Method.
Dim s() As String = {"AA", "BB", "CC"}
Dim Str As String
Str = s.Aggregate(Function(P, Q) P & " " & Q) |
Forum: VB.NET 3 Days Ago |
| Replies: 2 Views: 115 >could not. But I can still open other files such as XML, PDF,
Check the path of flash file (.swf or .flv) and take a look at this link -... |
Forum: PHP 3 Days Ago |
| Replies: 3 Views: 123 Take a look at this link - http://php.net/manual/en/function.require-once.php |
Forum: VB.NET 3 Days Ago |
| Replies: 4 Views: 248 You can use Extension Method (http://msdn.microsoft.com/en-us/library/bb384936.aspx) - Extension methods enable you to "add" methods to existing types without creating a new derived type,... |
Forum: PHP 3 Days Ago |
| Replies: 3 Views: 123 You can use the following code,
<?php
$cn = new mysqli("localhost","user","pw","db");
if(!$cn) die("Fails");
$result=$cn->query("select * from TableName");
if(!result) die("Fails");
... |
Forum: C# 4 Days Ago |
| Replies: 8 Views: 159 Try,
FileStream fs = new FileStream(System.IO.Path.GetTempPath() + @"\MyTempDir\" + listBox1.SelectedValue, FileMode.Create); |
Forum: PHP 4 Days Ago |
| Replies: 2 Views: 119 session.gc_maxlifetime is based off of the last time a session file was modified. So every time a session file is modified or a session_start() is called in a separate page, the countdown to... |
Forum: PHP 4 Days Ago |
| Replies: 2 Views: 103 If you're setting the 'To' and/or 'Recipient' header multiple times, the SMTP server could interpret that as separate e-mail address, thus you'll receive the multiple e-mails.
Maybe check your... |
Forum: PHP 4 Days Ago |
| Replies: 19 Views: 248 You can use AJAX to post form data. Take a look at this link http://www.captain.at/howto-ajax-form-post-request.php |
Forum: Java 4 Days Ago |
| Replies: 1 Views: 95 You may increase to 4GB on a 32 bit system. If you are on a 64 bit system you can go higher.
use the cmd-line flags.
>java -Xmx6144M -d64 |
Forum: ASP.NET 4 Days Ago |
| Replies: 2 Views: 196 Read ASP.NET data binding overview (http://support.microsoft.com/kb/307860). |
Forum: ASP.NET 4 Days Ago |
| Replies: 1 Views: 157 Bulk Editing (http://blogs.msdn.com/mattdotson/articles/490868.aspx). |
Forum: ASP.NET 4 Days Ago |
| Replies: 1 Views: 135 You have to read DotNetNuke Module Developers Guide... |
Forum: ASP.NET 4 Days Ago |
| Replies: 1 Views: 154 Take a look at - http://exploding-boy.com/images/cssmenus/menus.html |
Forum: ASP.NET 4 Days Ago |
| Replies: 1 Views: 171 I think the following link will help you to understand How to use NUnit with ASP.NET mvc.
http://stackoverflow.com/questions/21137/asp-net-mvc-and-nunit#23481... |
Forum: ASP.NET 4 Days Ago |
| Replies: 1 Views: 154 Use Page_Load event to create, initialize and add controls to the page.
protected void Page_Load(object sender, EventArgs e)
{
_control = Page.LoadControl("WebUserControl.ascx")... |