5,346 Posted Topics

Member Avatar for geetajlo
Member Avatar for TheWhite

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]

Member Avatar for TheWhite
0
1K
Member Avatar for nukabolhi

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 …

Member Avatar for peter_budo
0
250
Member Avatar for Nada_ward
Member Avatar for andrewjm
Member Avatar for BestJewSinceJC
0
112
Member Avatar for anindo87

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"); …

Member Avatar for anindo87
0
96
Member Avatar for Acegikmo

Acegikmo, getImage and getCodeBase are methods of Applet class. [code=java] Image image = new ImageIcon("test.JPG").getImage(); ... [/code]

Member Avatar for llemes4011
0
111
Member Avatar for speedy gonzalos
Member Avatar for shobhitzone
Member Avatar for Nada_ward

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.

Member Avatar for Nada_ward
0
131
Member Avatar for nikhil31888

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.

Member Avatar for mrGee
0
116
Member Avatar for debolin

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]

Member Avatar for kvprajapati
0
97
Member Avatar for man4ish

Look at this article - [URL="http://www.ddj.com/cpp/184401639"]Creating STL Containers in Shared Memory[/URL]

Member Avatar for kvprajapati
0
216
Member Avatar for darab

CellEnter - Occurs when cell receive input focus. CellDoubleClick - It will be raised after CellEnter event.

Member Avatar for darab
0
71
Member Avatar for Donish

Donish, You must read [URL="http://msdn.microsoft.com/en-us/library/ms178472.aspx"]ASP.NET Page life cycle.[/URL]

Member Avatar for Donish
0
373
Member Avatar for nrobidoux

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 …

Member Avatar for nrobidoux
0
132
Member Avatar for kashn

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]

Member Avatar for kashn
0
152
Member Avatar for Lakshith

Use Formula field or select Format Object menu option of context menu. [code] if col1=1 then "A" else "B" [/code]

Member Avatar for kvprajapati
0
244
Member Avatar for love_dude1984

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]

Member Avatar for kvprajapati
0
110
Member Avatar for vineetjaiswal

Use GroupName property of radio button. It creates a group of radio buttons. Another control - [B]RadioButtonList [/B]can be used for same purpose.

Member Avatar for kvprajapati
0
106
Member Avatar for itzcrakalakin

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.

Member Avatar for kvprajapati
0
138
Member Avatar for anuj_sharma

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]

Member Avatar for kvprajapati
-1
107
Member Avatar for ndeniche

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]

Member Avatar for ndeniche
0
95
Member Avatar for Lakshith

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[] …

Member Avatar for kvprajapati
0
105
Member Avatar for Stefano Mtangoo
Member Avatar for Stefano Mtangoo
0
199
Member Avatar for Pacman21

class SendKeys and it's method are used to develop such a type of application.

Member Avatar for Pacman21
0
829
Member Avatar for dhawan.surinder
Re: Java

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]

Member Avatar for kvprajapati
0
86
Member Avatar for ishamputra

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]

Member Avatar for kvprajapati
0
310
Member Avatar for Nasa2014

Nasa2014, Read this article - [URL="http://www.developer.com/net/asp/article.php/3299641"]http://www.developer.com/net/asp/article.php/3299641[/URL]

Member Avatar for kvprajapati
0
100
Member Avatar for skumar.snl
Member Avatar for cam875

I have some links of api: [URL="http://www.savarese.com/software/rocksaw/"]RockSaw[/URL] [URL="http://www.wireshark.org/"]wireshark[/URL]

Member Avatar for kvprajapati
0
109
Member Avatar for benatschool

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]

Member Avatar for kvprajapati
0
150
Member Avatar for gauravmishra

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]

Member Avatar for kvprajapati
0
94
Member Avatar for charlweed
Member Avatar for wildgoose
0
236
Member Avatar for jaaam

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]

Member Avatar for k.d.m
0
167
Member Avatar for vinnijain
Member Avatar for Evil_genius82

If sorting is the only issue them fixed it with java.util.Collections.sort() method.

Member Avatar for cgeier
0
223
Member Avatar for SusanHAllen

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]

Member Avatar for kvprajapati
0
79
Member Avatar for fulcrum9

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 = …

Member Avatar for fulcrum9
0
232
Member Avatar for SeeTheLite

[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 …

Member Avatar for kvprajapati
0
97
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
0
125
Member Avatar for Keidi

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]

Member Avatar for kvprajapati
0
133
Member Avatar for jure.gregorin

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]

Member Avatar for kvprajapati
0
96
Member Avatar for veledrom

May be this will help you, [code=php] header("Cache-Control: maxage=1"); //In seconds [/code]

Member Avatar for veledrom
0
91
Member Avatar for BestJewSinceJC

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 …

Member Avatar for kvprajapati
0
417
Member Avatar for robben

robben, Did you find any solution? If 'no', then show us your current code work.

Member Avatar for kvprajapati
0
112
Member Avatar for enyeahgo

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]

Member Avatar for JamesCherrill
0
137
Member Avatar for BigDan531

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]

Member Avatar for kvprajapati
0
86
Member Avatar for swinefish
Member Avatar for cresol

The End.