5,346 Posted Topics
Re: Have a look at MSDN tutorial - [url]http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument(v=VS.90).aspx[/url] | |
Re: [code] str=DataGridView1.SelectedCells(0).Value.ToString() if str="topaz" Then //open topaz form end if [/code] | |
Re: Choose printer paper size. You need to set custom size. | |
Re: [code] Name.Value = Request.Form["Name"]; Email.Value = Request.Form["Email"]; ContactNo.Value = Request.Form["ContactNo"]; City.Value = Request.Form["City"]; Branch.Value = Request.Form["Branch"]; [/code] OR [code] Name.Value = Request["Name"]; Email.Value = Request["Email"]; ContactNo.Value = Request["ContactNo"]; City.Value = Request["City"]; Branch.Value = Request["Branch"]; [/code] | |
Re: >What The Different Between Html Pages And Asp Pages ?????? ASP or ASP.NET pages are called programmable web page templates. They are parsed, interpreted/compiled and executed by the runtime environment which produce dynamic content of html, css, and javascript. | |
Re: Sorry! Do you have a problem to compare attribute's value? [code] var vClickedUnit = from Unit in vUnits where Unit.vTypeIndex == vIndexString && Unit.vType == textBox2.Text select Unit; [/code] | |
Re: You may use [URL="http://photobucket.com/developer"]Web Service API[/URL] of photobucket. | |
Re: Welcome fawi. >But I need to know how to use wor automation and save the new file in other location then print it when need, that was first. I guess! you are about [URL="http://www.google.com/webhp?hl=en&tab=Tw#sclient=psy&hl=en&site=webhp&q=word%20automation&aq=1&aqi=g4g-o1&aql=&oq=&gs_rfai=&pbx=1&fp=ca05a7bb65e82229&pf=p&pdl=300"]Word Automation[/URL]. >I also need to know how to play a specific video from a path using … | |
Re: > create Flash manu bar in ASP.Net Create Flash movie and embed it with <object> tag in your web-page. | |
![]() | Re: Stream - Transfer of data from a stream into a data structure and vice-versa. Stream can support - reading from , write to and seeking operations. and File - Read [URL="http://en.wikipedia.org/wiki/Computer_file"]wiki[/URL]. |
Re: Because that page was not requested by the web-browser. It was requested by AJAX (; . | |
Re: >Is there a way to determine which table was used when the DataSet was created? Or you can say which tables are added into the DataSet? Basically, a DataSet instance has Tables collection through which you can add/remove DataTable instances. | |
Re: First of all I'd suggest to use List<T>. [code] public class Category { public int ID {get;set;} public string Name {get;set;} public string Description { get;set;} } [/code] Create a List<Category>. [code] List<Category> list=new List<Category>(); list.add(new Category() { ID=cat_id, Name=cat_name, Description=cat_desc }); [/code] | |
Re: You need to read a stream line by line or read all lines at once and split each line one after one. [code] string[] alllines = System.IO.File.ReadAllLines("times.txt"); int val1 = 0, val2 = 0; int i = 0; foreach (string line in alllines) { string[] data = line.Split(new string[] { … | |
Re: >error C2664: 'mciSendStringW' : cannot convert parameter 1 from 'System:tring ^' to 'LPCWSTR' Please show us your "DllImport" declaration. Take a look at this sample: [code] using namespace System; using namespace System::Text; [System::Runtime::InteropServices::DllImport("winmm.dll")] System::Int64 mciSendString(System::String ^strCommand, StringBuilder ^strReturn, long iReturnLength, int hwndCallback); int main(array<System::String ^> ^args) { String^ spcom1 = … | |
Re: Try to put value of string type. [code] this.sqldsCustomerDetails.SelectParameters.Add("ID","value"); [/code] | |
Re: [code] strSQL = "Select Answers.Color,Sum(Answer2)/7 as TotAns2 FROM Answers WHERE Answers.Color = '" & strColor & "' GROUP BY Answers.Color" [/code] | |
Re: Have a [URL="http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?UsingCopyingObjects.html"]look[/URL] at [URL="http://threesharp.codeplex.com/"]C# Library and Code for Amazon S3(codeplex)[/URL]. | |
Re: >Object reference not set to an instance of an object. Meaning: An object is not created or you can say "An object is missing". Array of city objects: 1. Declare an array variable [code] CITY []ar; [/code] 2. Create some object variables of type CITY. (Instantiate the array) [code] ar=new … | |
Re: You need to define the primary-key in your table. | |
Re: Use [b]System.Diagnostics.Process[/b] class. [code] Process.Start("c:\windows\system32\calc.exe") [/code] | |
| |
Re: @savitasagar I don't think that this software is freeware/open source. Read forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL] : [B]Do not ask about obtaining pirated software, nor link to it[/B] Asking/giving link of pirated software is against the forum rules. Thread Closed. | |
Re: Welcome @DaveatWinton Does your program report any errors? I'll go with method one. Here is little correction. [code] upcommand.CommandText = "update [Employee Table] SET [On a Job] =0 where [Employee ID] = '101'" [/code] | |
Re: Error says that the first argument of GetFiles method has invalid characters or pattern. Use wild card chars - [b]*[/b] or [b]?[/b] e.g. *.txt | |
Re: >Please tell me the best and quickest way because it is a matter of great urgency. ASP.NET globalization & localization. 1. [url]http://msdn.microsoft.com/en-us/library/c6zyy3s9.aspx[/url] 2. [url]http://www.codeproject.com/Kb/aspnet/localizationByVivekTakur.aspx[/url] | |
Re: >My question is cant it be installed in someother drive. If it cant someone pls tel me the way to change the location of the database from the default C drive. Store database connection in app.config file and read it programatically. 1. Add app.config in your project (Application Configuration file. … | |
Re: > want to set Window1 as the owner of Window2. Owner [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.form.owner(v=VS.90).aspx"]Form.[/URL] >Furthermore I want the controls on Window1 to be inherited by Window2. Take a look at - [URL="http://msdn.microsoft.com/en-us/library/s82eeh07(v=VS.90).aspx"]How to: Inherit Windows Forms[/URL] | |
Re: >im trying to delete the selected item. [code] if (lstresult2.SelectedIndex != -1) lstresult2.Items.RemoveAt(lstresult2.SelectedIndex); [/code] | |
Re: Please read these threads: 1. [URL="http://social.msdn.microsoft.com/forums/en-US/wpf/thread/ef66f6a7-eb9d-42f6-86ba-7fbefb72fa95"]Converting WPF Desktop app to XBAP[/URL] 2. [URL="http://blog.davidsandor.com/post/Convert-a-WPF-Browser-Application-project-to-a-WPF-Application.aspx"]Convert a WPF Browser Application project to a WPF Application[/URL] | |
Re: Steps: 1. Add [URL="http://msdn.microsoft.com/en-us/library/yy2ykkab(v=VS.90).aspx"]web.sitemap[/URL] file into root of webapp. 2. In master page, add [URL="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.sitemappath(v=VS.90).aspx"]SiteMapPath [/URL]control 3. Deploy & run your app. | |
Re: Don't use Process.GetCurrentProcess().Id instead find it by process name in case you are not sure about process id. [code] RemoteHooking.Inject( Process.GetProcessesByName("Hook Test.vshost")[0].Id , InjectionOptions.Default, "TestInject.dll", "TestInject.dll", ChannelName); [/code] | |
Re: Have a look at this thread - [url]http://www.daniweb.com/forums/post960794.html#post960794[/url] | |
Re: [code] dim barray() as byte = DS.Tables("LocationInfo").Rows(0).Item(5) Dim ms As New System.IO.MemoryStream(barray) Dim img As Image = Image.FromStream(ms) [/code] | |
Re: Go with your interests and what you know best. In-depth know-how of project subject is essential. Collect project specific information from the books, internet resources I think web search should give you some research materials to help you get started. | |
Re: Store result (field value) into Date variable and use Day, Month, and Year property. | |
Re: >how to set maximum length of character in the textbox of rdlc report? Why you want to do so? | |
Re: Store connection string in [URL="http://www.daniweb.com/forums/post1434932.html#post1434932"]app.config[/URL] or Put your databases inside the folder where your executable is and use |DataDirectory|. [code] Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|\Project.mdb;") [/code] | |
Re: Here are [URL="http://www.connectionstrings.com/"]connectionStrings[/URL]. | |
Re: >i'd like to show instead the username of the user. Use Joins if "username" column is in different but related table. >Also in the date column Date[URL="http://msdn.microsoft.com/en-us/library/aa337190(v=sql.100).aspx"] format[/URL] in ms report. | |
Re: >Crystal report title programmatically Define "[URL="http://vb.net-informations.com/crystal-report/vb.net_crystal_report_parameter_string.htm"]Parameter[/URL]" in report design and assign value to that parameter programatically. | |
Re: RowFilter, [code] dv.RowFilter="ID=1"; //or //dv.RowFilter="Id=" + varName; //or //dv.RowFilter="SurName like 'A%'"; [/code] | |
Re: Try, [code] List<List<string>> lst = new List<List<string>>(); List<string> a = new List<string>() { "One", "Two" }; List<string> b = new List<string>() { "Three", "Four", "Five" }; lst.Add(a); lst.Add(b); //Iterate list foreach (var t in lst) { foreach (var ele in t) { //code } } [/code] | |
Re: Add IsPostBack statement in page_load event. [code] protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { var files = Directory.GetFiles(Server.MapPath("~/Uploads/Folder3")); gvFiles.DataSource = from f in files select new { FileName = Path.GetFileName(f) }; gvFiles.DataBind(); } } [/code] | |
Re: To display multi-lingual chars set Unicode font. [code] string[] lines = System.IO.File.ReadAllLines(@"c:\file.txt", System.Text.Encoding.Unicode ); label1.Font=new Font("Arial Unicode MS",10f); foreach (string l in lines) label1.Text += l + "\n"; [/code] | |
Re: Please use BB code tags while posting source program. >dataset showing count as 1 when should be 0 This statement return 1 (count of tables) ` int c=dt.Tables.Count;` This statement return 1 or 0 (rows count) `int c=dt.Tables[0].Rows.Count;` | |
Re: You need to debug your app to test where the array's first index contains correct int ( digits) value or not. | |
Re: Welcome @noamo48 on board. I'd suggest [URL="http://msdn.microsoft.com/en-us/library/4as0wz7t.aspx"]MSDN[/URL]. This is a good place to start and what about [URL="http://msdn.microsoft.com/en-us/netframework/first-steps-with-wcf.aspx"]WCF[/URL] (Windows Communication Foundation)? I think you never wanted to give up learning WCF! I've read Tcp/IP socket.. (suggested by Danny in prev. post) is good book indeed! and have a look at … |
The End.