5,346 Posted Topics
Re: Use setPreferredSize with Jscrollpane, [code=java] JScrollPane j1=new JScrollPane(chatArea); JScrollPane j2=new JScrollPane(users); j1.setPreferredSize(new Dimension(100,100)); j2.setPreferredSize(new Dimension(100,100)); topPanel.add(j1); topPanel.add(j2); [/code] | |
Re: Welcome nukabolhi, Use code tags. Source code must be surrounded with code tags. This way you can add items into form: StringItem data[] = new StringItem[] { new StringItem("Name, ", "Mr.X"), new StringItem("Age", "12") }; form1 = new Form("Items are", messages); You may read string data and write by using … | |
Re: You may store a value at given key (name) - use Hashtable class. | |
Re: Session is the answer. page1.jsp [code=jsp] <form method="post" action="page2.jsp"> No <input type="text" name="no"/> <input type="submit" name="cmd" value="Next"/> </form> [/code] page2.jsp [code=jsp] <% String cmd=request.getParameter("cmd"); if(cmd!=null){ String ar[]=new String[3]; ar[0]=request.getParameter("no"); session.setAttribute("ar",ar); } %> <form method="post" action="page3.jsp"> Name <input type="text" name="name"/> <input type="submit" name="cmd1" value="submit"/> </form> [/code] page3.jsp [code=jsp] <% String cmd=request.getParameter("cmd1"); … | |
Re: Acegikmo, getImage and getCodeBase are methods of Applet class. [code=java] Image image = new ImageIcon("test.JPG").getImage(); ... [/code] | |
Re: May be you are missing some values on second time. | |
Re: Will you please attach an xml document with next post? | |
Re: I think OP didn't explain his/her question. [QUOTE]my problem , the running of form1 continue before cloding of second form I want to break it running when form2 activated > and when I close form2 ,form1 will continue from break point [/QUOTE] Try Visible property - Hide/Show. | |
Re: Key factors are : 1. In-depth project-subject know-how. 2. Technology awareness. Web, Database, and so on. 3. Know-how of Programming elements - XHTML , JavaScript, CSS , PL-SQL (triggers, stored-procedure, etc), Program design - OOP, and Design pattern. | |
Re: Welcome debolin, Show us your code which writes struct data into a datafile. Use code tags. Source code must be surrounded with code tags. for example, [noparse] [code=c] ... statements ... [/code] [/noparse] | |
Re: Look at this article - [URL="http://www.ddj.com/cpp/184401639"]Creating STL Containers in Shared Memory[/URL] | |
Re: CellEnter - Occurs when cell receive input focus. CellDoubleClick - It will be raised after CellEnter event. | |
Re: Donish, You must read [URL="http://msdn.microsoft.com/en-us/library/ms178472.aspx"]ASP.NET Page life cycle.[/URL] | |
Re: Welcome nrobidoux, I have try to answer the following question. [QUOTE]I'm trying to figure out how to attach a class with pure virtual <</>> operators to other classes for the purpose of saving/loading the application state.[/QUOTE] Overload a << (insertor) method; it must be friend. Insertor operator method requires two … | |
Re: You didn't say which problems are around you. I suggest a product for the same - [URL="http://qwhale.net/products/editor/"]http://qwhale.net/products/editor/[/URL] | |
Re: Use Formula field or select Format Object menu option of context menu. [code] if col1=1 then "A" else "B" [/code] | |
Re: This is C# forum. Ask web related question in ASP.NET forum. You need to create relative path of uploaded file. [code=asp.net] string relpath="~/images/" + FileUpload1.FileName; string abspath=MapPath("~/images/" + FileUpload1.FileName); FileUpload1.SaveAs(abspath); string sql; sql=string.format("insert into tablename (filename,filepath) values ('{0}','{1}')",FileUpload1.FileName,relpath); ..... [/code] | |
Re: Use GroupName property of radio button. It creates a group of radio buttons. Another control - [B]RadioButtonList [/B]can be used for same purpose. | |
Re: Welcome itzcrakalakin, Use code tags to post source code. What will be the value of Tag property? I think you have to set value of Tag property. | |
Re: anuj576, 88th post and you forgot to use code tags. chithrasujith, Source code must be wrap up with bb code tags. [noparse] [code=asp.net] .... [/code] [/noparse] | |
Re: Dictionary is the answer. [code=c#] Dictionary<string, Numbers> a = new Dictionary<string, Numbers>(); a.Add("a1", new Numbers()); a.Add("a2", new Numbers()); a["a1"].A1(); a["a2"].A1(); [/code] | |
Re: I presume that your program uses DataTable. Here is sample, [code=c#] DataTable dt = new DataTable(); dt.Columns.Add("No",typeof(long)); dt.Columns.Add("Name"); dt.Rows.Add(1, "A"); dt.Rows.Add(2, "B"); listView1.View = View.Details; int i; // Header for (i = 0; i < dt.Columns.Count; i++) listView1.Columns.Add(dt.Columns[i].ColumnName); // Rows for (i = 0; i < dt.Rows.Count; i++) { string[] … | |
Re: Is there any problem buddy? Post #5, function GetCDHandle returns 0. | |
Re: class SendKeys and it's method are used to develop such a type of application. | |
Re: Create an html page with following content: I presume that your applet class name is - package.Applet_className. test.html [code=java] <applet code="package.Applet_className" width="200" height="200"> </applet> [/code] [URL="http://java.sun.com/j2se/1.4.2/docs/guide/misc/applet.html"]http://java.sun.com/j2se/1.4.2/docs/guide/misc/applet.html[/URL] | |
Re: ishamputra, [code=asp.net] String ext=System.IO.Path.GetExtension(FileUpload1.FileName).ToUpper(); if(ext==".TXT") { String content=System.Text.Encoding.ASCII.GetString(FileUpload1.FileBytes) String []ar=content.Split(';'); GridView1.DataSource=ar; GridView1.DataBind(); } [/code] | |
Re: Nasa2014, Read this article - [URL="http://www.developer.com/net/asp/article.php/3299641"]http://www.developer.com/net/asp/article.php/3299641[/URL] | |
Re: Use Ajax script or Ajax controls (third party). | |
Re: I have some links of api: [URL="http://www.savarese.com/software/rocksaw/"]RockSaw[/URL] [URL="http://www.wireshark.org/"]wireshark[/URL] | |
Re: benatschool, I think you are looking for - [URL="http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/contents.html"]http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/contents.html[/URL] | |
Re: Function definition of g() should be: [code=cplusplus] void g(){ int *p=(int *)this; typedef void (*pfun)(int); pfun p1=(pfun)*(int*)*(int*)p; // value of vptr. (p1)(25); } [/code] | |
Re: Modify it, [code=cplusplus] _message = new wchar_t [messageLength+1]; [/code] | |
Re: Another good link to learn C# Language - [URL="http://msdn.microsoft.com/en-us/vcsharp/aa336809.aspx"]http://msdn.microsoft.com/en-us/vcsharp/aa336809.aspx[/URL] | |
Re: Use container controls (panel, splitContainer) and set Doc property. | |
Re: If sorting is the only issue them fixed it with java.util.Collections.sort() method. | |
Re: To watch for changes in all files, set the Filter property to an empty string ("") or use wildcards ("*.*"). Look at WaitForChanged Method. - A synchronous method that returns a structure that contains specific information on the change that occurred. Read more on FileSystemWatcher - [URL="http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx"]http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx[/URL] | |
Re: I didn't find any problem in your code: [code=C#] TcpClient oTcpClient = new TcpClient(); IAsyncResult oIAsyncResult = oTcpClient.BeginConnect("www.daniweb.com", 80, null, null); bool success = oIAsyncResult.AsyncWaitHandle.WaitOne(5000, true); if (!success) { oTcpClient.Close(); Console.WriteLine("Timeout..."); return; } oTcpClient.EndConnect(oIAsyncResult); NetworkStream oNetworkStream = oTcpClient.GetStream(); StreamReader oStreamReader = new StreamReader(oNetworkStream); StreamWriter oStreamWriter = new StreamWriter(oNetworkStream); oStreamWriter.AutoFlush = … | |
Re: [QUOTE]"If I delete a pointer, does it delete the data in the current address or all of it?" [QUOTE]If you delete a pointer that variable no longer exist so every thing it contains also gets deleted.[/QUOTE][/QUOTE] delete operator [icode]releases (deallocates) a block of memory[/icode]. The cast-expression argument must be a … | |
Re: Good Evening everybody, It's 7:10 PM. Classes - When the size of data is unknown (it can be grow or shrink during runtime) then we must have to use class. Reference types uses managed heap. Structs - Fixed length or fixed size data. Value type uses stack memory (size of … | |
Re: Welcome to daniweb, I think this link will help you to solve your problems. [URL="http://www.daniweb.com/search/search.php?q=Excel"]http://www.daniweb.com/search/search.php?q=Excel[/URL] | |
Re: In addition to scott's post - Read this article - tutorial [URL="http://msdn.microsoft.com/en-us/library/aa302326.aspx"]http://msdn.microsoft.com/en-us/library/aa302326.aspx[/URL] | |
Re: May be this will help you, [code=php] header("Cache-Control: maxage=1"); //In seconds [/code] | |
Re: BestJewSinceJC>Nope. And even more strangely, [icode]if I put that code that I showed you guys inside the main method - it works. But if I put it inside the constructor - it doesn't work.[/icode]. I skip SWT statements and test your code. It's working. [code=java] package test; import java.io.*; import … | |
Re: robben, Did you find any solution? If 'no', then show us your current code work. | |
Re: Welcome, [LIST=1] [*]Java language is a simple language is that there is good chance most people will use it the same way. [*]Huge library. [*]Write once. Run everywhere. [/LIST] | |
Re: I didn't find any mistake in your code. Embed fields with apostrophe - may be a name of field violates mysql. [code=php] mysql_query("UPDATE `users` SET `key` = '$keys' WHERE `id` = '$id'"); [/code] | |
Re: From the field explorer create a "Running Total Fields". |
The End.