5,346 Posted Topics
Re: Welcome to Daniweb. Yes, you can style the text if you're working with Graphical user-interface APIs. For more details read threads - [1](http://www.daniweb.com/software-development/cpp/threads/5652/how-do-i-make-a-gui-in-c)[2](http://stackoverflow.com/questions/1186017/how-do-i-build-a-gui-in-c) | |
Re: Line #3 - class name must be System.Drawing.Pen | |
Re: [b]>how can i achieve this????[/b] Think about HttpSession. | |
Re: Have a look at [URL="http://social.msdn.microsoft.com/Forums/en/winforms/thread/d081d7bd-014d-4e50-90a2-556568e38bcf"]FAQ[/URL] and an [URL="http://www.codeproject.com/KB/grid/ElvinDataGridEx.aspx?msg=3059229"]article[/URL]. | |
Re: Use RecordSelectionFoumula, [code] ReportsourceObject.RecordSelectionforumal="{tableName.colName}=1" [/code] | |
Re: [VideoLan DotNet](http://vlcdotnet.codeplex.com/) works perfectly for me. Dim cnt As New Vlc.DotNet.Forms.VlcControl cnt.Media = New Vlc.DotNet.Core.Medias.PathMedia("x:\file.mp4") cnt.Dock = DockStyle.Fill Me.Controls.Add(cnt) | |
Re: Sorry I did't get you. Do you want to fetch some data when user hits `Next` button? Is it web or winForm app? | |
Re: Hi! Do not use [icode]Show[/icode] method of contextMenuStrip and no need to handle cell mouse events. In fact, Show() method parameters - ColumnIndex and RowIndex represent column and row index values not the region of datagridview location. Here is code (from your snippet :) ). [code] private void Form1_Load(object sender, … | |
Re: >What is the field type of `kickoff`? If it is DateTime then `$TodayDate` as bindParam variable. $STM->bindParam(':kickofftime', $TodayDate); $STM->execute(); $rows = $STM -> fetchAll(PDO::FETCH_ASSOC); foreach($rows as $row) { .... } | |
Re: Resource variable `$result` is null. You need to verify the value of `id` and also the result of `SQL statement`. $result = mysql_query("...... "); if($result) { while($row = mysql_fetch_array($result)) { ... } } Important: Do not use [mysql_* extension](http://in1.php.net/manual/en/intro.mysql.php). Always use MySqlI or PDO. | |
Re: This thread is already been marked as *solved* without adding justification. In opening post, there are issues with properties definition especially to `set` accessor where `value` parameter replaces the field. public double Length { get { return length; } set { // value = length; <-- length = value; } … | |
Re: [code] db.DMSDataContext.DOCUMENTs.InsertOnSubmit(new DOCUMENT() { name = TextBox_Form_Judul.Text, description = TextBox_Form_Deskripsi.Text, VERSIs = new System.Data.Linq.EntitySet<VERSI>() { new VERSI() { UrlFile = "Uploads/" + strFileName; Size = size_file; Type = type_file; ModifiedOn = DateTime.Now; } } }); db.DMSDataContext.SubmitChanges(); [/code] PS: I haven't tested. | |
Re: There are many different kinds of barcodes. Most all third-party component libraries can generate these codes but there are also other options for generating barcodes. Have a look at codeproject articles: 1. [url]http://www.codeproject.com/KB/graphics/ean_13_barcodes.aspx[/url] 2. [url]http://www.codeproject.com/KB/graphics/barcodeimaging2.aspx[/url] | |
Re: Open [B]httpd.conf [/B]file located under conf folder in apache folder. (apache/conf/httpd.conf) Edit (httpd.conf)it in Text editor and change the path of root directory. [code] DocumentRoot "d:/newdirectory_name" .... .... <Directory "d:/newdirectory_name"> # # Possible values for the Options directive are "None", "All", # or any combination of: .... [/code] | |
Re: [QUOTE=neutralfox;865110]Hello everyone, I got a small question on encryption, actually I am trying to learn the various techniques to encrypt a message. Now I am trying AES, using the built in security package in Java. The problem is that I am having a problem with this encryption algorithm. Actually I've … | |
Re: You need to set Relay IP-Address. (Relay restrictions). Steps: 1. Open IIS applet from the control panel 2. Go to0 [b]Default SMTP Virtual Server[/b] 3. Select tab [b]Access[/b] + Click on [b]Relay[/b]. 4. Add IP of localhost [b]127.0.0.1[/b] | |
Re: >FileSystemWatcher class is not giving this facilities. Nope! Please read these articles - 1. [URL="http://msdn.microsoft.com/en-us/library/ch2s8yd7.aspx"]http://msdn.microsoft.com/en-us/library/ch2s8yd7.aspx[/URL] 2. [URL="http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.includesubdirectories.aspx"]http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.includesubdirectories.aspx[/URL] 3. [URL="http://www.codeproject.com/KB/files/monitor_all_filesystem.aspx"]http://www.codeproject.com/KB/files/monitor_all_filesystem.aspx[/URL] | |
Re: Hi, This link will help you to design your application: [URL="http://pareeksha.sourceforge.net/"]http://pareeksha.sourceforge.net/[/URL] | |
Re: There are number ways to do it. The most efficient and economic way is to use WebServices (paid or Free). Please refere this link [URL="http://www.codeproject.com/KB/cpp/SendSmsThroughWS.aspx"]http://www.codeproject.com/KB/cpp/SendSmsThroughWS.aspx[/URL] | |
Re: Use ReportDocument property of CrystalReportSource class/control. | |
Re: Take a look at [URL="http://www.w3schools.com/JS/js_popup.asp"]sample[/URL]. | |
Re: If you've ASP.NET MVC project then 'PrepareCheckout()' should be an action method and you can request via `jQuery.ajax`. If not then create AJAX Service component, add `PrepareCheckout` method in it and request it via jQuery.ajax function. | |
Re: Please read this thread - [Recommended hash for passwords in ASP Classic](http://stackoverflow.com/questions/253673/recommended-hash-for-passwords-in-asp-classic) | |
Re: >I want a group of users to be able to work offline... Well you need to plan local-storage. You can use XML,CSV, Serrialization etc. >I have an application that is running on the inernet, done in asp.net(webforms).... You should have to deploy WCF service components along with the webapp. Fore … | |
Re: In order to insert/update/delete rows, you need to configure UpdateCommand, InsertCommand and DeleteCommand properties of OldDbDataAdapter. Well I'm suggest you to learn/use the EDM. | |
Re: [b]>Resizing ContentPlaceHolder in Master Page.[/b] You can't. Because it has no user interface or html markup. ContentPlaceHolder allow us to declare the portion of page where we can insert custom/page-specific content. | |
Re: I hope this article might help you. [URL="http://www.codeproject.com/KB/audio-video/SpeechReg.aspx"]http://www.codeproject.com/KB/audio-video/SpeechReg.aspx[/URL] | |
Re: Friends! Please do not resurrect threads that are years old. By doing so you run the risk of confusing current posters. If you have any questions please ask. You are welcome to start your own threads. Have a look at forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. Thread Locked. | |
Re: Read "C Program Structure" section from your text book. I am sure, you will get the answer. | |
Re: Friends! Do not resurrect old threads. This thread is quite old (3 years). Thread closed. | |
Re: [b]>I've already tried using Jquery but while it works in firefox it doesn't work in IE7 or IE8. [/b] Check this [URL="http://beckelman.net/post/2008/11/04/Right-or-Left-Click-Context-Menu-Using-jQuery-Demo.aspx"]sample[/URL]. | |
Re: Use DataSet class, [code=c#] // Populate DataSet using Database SqlDataAdapter adp = new SqlDataAdapter("select * from tableName", "your_conn_str"); DataSet ds=new DataSet("MyDB"); adp.Fill(ds,"tableName"); // Write Data into XML ds.WriteXml("file.xml"); [/code] [code=c#] // Load(Read) XML data DataSet ds=new DataSet(); ds.ReadXml("file.xml"); DataTable dt=ds.Tables["tableName"]; dt.Rows.Add("val1","val2"); // Adding row [/code] [code=c#] // Update database SqlDataAdapter … | |
Re: This is C# forum. Ask web related question in asp.net forum. You can bind one dim array with grdiview, [code=asp.net] String []ar={"A","B","C"}; GridView1.DataSource=ar; GridView1.DataBind(); [/code] Use may bind dataTable: [code=asp.net] DataTable dt=new DataTable(); dt.Columns.Add("No",typeof(int)); dt.Columns.Add("Name"); // default type is string dt.Rows.Add(1,"A"); dt.Rows.Add(2,"B"); GridView1.DataSource=dt; GridView1.DataBind(); [/code] | |
Re: Check your database located at Debug\Bin folder. A database in your project folder get copied at Debug\bin each time a changes occurs in your database(mdf). | |
Re: [CODE=C#] dataGridView1.AllowUserToAddRows = false; [/CODE] | |
Re: In order to select rows from database, you need to use SELECT with appropriate WHERE clause. Include necessary code and description of problem in your post. PS: I'd like to suggest you to learn/use LINQ and Entity Framework. | |
Re: [QUOTE=Sonic42;1140191]Hi- How can I change the content of the PictureBox control based on user entry? I'm assuming it would be similar to this: [CODE]If (TextBox1.Text = "Test") Then Picturebox1.Picture= (testpic.jpg) End If [/CODE][/QUOTE] Use Image class. [code] PictureBox1.Image= Image.FromFile("c:\folder\file.gif") [/code] | |
Re: Root (~) operator is only used with Server Controls. | |
Re: Please have a look at this POST : [What's the difference between “Layers” and “Tiers”?](http://stackoverflow.com/questions/120438/whats-the-difference-between-layers-and-tiers) | |
Re: Please read these posts: 1. [IE 10 fails to display styles locally](http://foundationphp.com/blog/2013/09/07/ie-10-fails-to-display-styles-locally/) 2. [A webpage that uses CSS styles does not render correctly in Internet Explorer](http://support.microsoft.com/kb/262161/en-us) | |
Re: You are adding same named JavaScript methods in both .ascx. ![]() | |
Re: Have a look - [url]http://www.gnupg.org/[/url] and [url]http://www.codeproject.com/answers/69866/Encrypting-and-Decrypting-files-with-PGP-and-Cshar.aspx#answer5[/url] | |
Re: >session?global variables? No. You have to use `Application` object. Post your code if possible. | |
Re: You need to correct the parameter name and SELECT statement. You can either use `?` or `@paramName`. cmd.CommandText = "SELECT username FROM Users WHERE username=@username"; cmd.Parameters.AddWithValue("@username", txtNewUser.Text); PS: ExecuteScalar() returns value from 1st column and 1st row. | |
Re: [b]>How can I select button that is nested in table (in table cell) in Visual Studio in a design view.?[/b] You can't select that child button through design view. Open source view instead. | |
Re: Take a look at - [url]http://forums.asp.net/t/1120278.aspx[/url] | |
Re: You should have to use [b]Value[/b] property of DateTimePicker control. [code] Dim dtfr, dtto as Date dtfr=DateTimePicker1.Value dtto=DateTimePicker2.Value str="select * from table where curdt between #" & dtfr & "# and #" & dtto & "#" [/code] | |
Re: You should have to create wrapper class to manage cookies and session data. For example, public class CookieWrapper { /* Username property */ public static string Username { get { return GetCookie("Username"); } set { SetCookie("Username", value, false); } } /* Role property */ public static string Role { get … |
The End.