Forum: Java 7 Days Ago |
| Replies: 3 Views: 201 >Why use abstract classes at all?
Sometimes you may want to declare a class and yet not know how to define all of the methods that belong to that class.
For example, you may want to declare a... |
Forum: C++ 7 Days Ago |
| Replies: 6 Views: 241 >How can I determine the size of the file so that I can read
all of the data bytes in the file?
fs->Length property.
array<Byte>^ bb= gcnew array<Byte>(fs->Length);... |
Forum: C# 7 Days Ago |
| Replies: 10 Views: 381 Change the order of statements:
clientinfoCommandBuilder = new OleDbCommandBuilder(clientinfoDataAdapter);
clientinfoDataAdapter.Fill(clientinfoDataTable); |
Forum: XML, XSLT and XPATH 7 Days Ago |
| Replies: 2 Views: 226 Try this,
Dim feedXML As XDocument = XDocument.Load("c:\Feeds.xml")
Dim bubba = From Feedmain In feedXML.Descendants("Feed") _
Where (Feedmain.Attribute("status") Is... |
Forum: C# 8 Days Ago |
| Replies: 2 Views: 229 Use XPath,
XPathDocument dc = new XPathDocument(@"file.xml");
XPathNavigator nav = dc.CreateNavigator();
XPathNodeIterator i =... |
Forum: VB.NET 11 Days Ago |
| Replies: 1 Views: 216 Use WMI (http://msdn.microsoft.com/en-us/library/aa394582(VS.85).aspx). Take a look at this thread - http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/7356d3d8-8e08-4dc7-9c3c-8dde3dddd455 |
Forum: ASP.NET 12 Days Ago |
| Replies: 2 Views: 285 Use this link - http://www.developerfusion.com/tools/convert/csharp-to-vb/
Dim photoStream As Stream = PhotoUpload.PostedFile.InputStream
Dim photoLength As Integer =... |
Forum: VB.NET 12 Days Ago |
| Replies: 2 Views: 251 Here is a common event handler,
.....
Private Sub EmnuExitMenu_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles EmnuExitMenu.MouseMove,... |
Forum: VB.NET 12 Days Ago |
| Replies: 2 Views: 181 >how to set an excel object to instance type?
Please try to be more specific. I think you want to create objects/instances of workbook, worksheet. Take a look at this article -... |
Forum: Java 12 Days Ago |
| Replies: 1 Views: 267 > am not famelier with this site and i dont know how to ask for help.
Please read member rules (http://www.daniweb.com/forums/faq.php?faq=daniweb_policies) and homework... |
Forum: ASP.NET 12 Days Ago |
| Replies: 2 Views: 226 Handle SelectedIndexChanged event and set AutoPostBack=true for DropDownList1. |
Forum: PHP 12 Days Ago |
| Replies: 15 Views: 450 You need to use DOM (http://php.net/manual/en/book.dom.php) api. |
Forum: C# 12 Days Ago |
| Replies: 10 Views: 381 Turn off AutoGenerateColumns property.
Take a look,
......
dataGridView1.AutoGenerateColumns = false;
DataGridViewTextBoxColumn c1 = new... |
Forum: ASP.NET 13 Days Ago |
| Replies: 2 Views: 227 Nested loop is a problem.
For i = 0 To 2
LabelArray(i).Text = word(i)
Next
or |
Forum: ASP.NET 13 Days Ago |
| Replies: 3 Views: 289 Property IsPostBack (http://msdn.microsoft.com/en-us/library/system.web.ui.page.ispostback.aspx) : It indicates whether the page is being rendered for the first time or is being loaded in response to... |
Forum: VB.NET 13 Days Ago |
| Replies: 4 Views: 326 Create a forumula field and use ChrW() to insert ASCII characters.
"Line1" + ChrW(13) + "Line2" + ChrW(13) + "Line3"
Make sure that your object Can Grow option is set to true. |
Forum: VB.NET 14 Days Ago |
| Replies: 4 Views: 376 You should have to use OwnerDraw listbox. Set DrawMode and handle DrawItem and MeasureItem event.
Here is a code snippet.
Dim data() As String = {"One" & vbCrLf & "Two", "Hello" & vbCrLf &... |
Forum: Java 15 Days Ago |
| Replies: 2 Views: 294 I think you might be aware of Globalization Development Kit (http://www.orafaq.com/node/21). Take a look at NLS FAQ (http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm). |
Forum: ASP.NET 15 Days Ago |
| Replies: 2 Views: 301 >So when i click login button, those 2 fields must be checked with database.
Use SQL Select statement with where clause.
>and if the information is correct it must login.
You have to use... |
Forum: VB.NET 15 Days Ago |
| Replies: 2 Views: 323 See this sample,
ListView1.Columns.Add("One")
ListView1.Columns.Add("Two")
ListView1.Columns.Add("Three")
Dim item As New ListViewItem("v1")
... |
Forum: VB.NET 17 Days Ago |
| Replies: 4 Views: 376 Try,
ListBox1.Items.Add(showAddress.DisplayAddress(vbCrLf)) |
Forum: VB.NET 17 Days Ago |
| Replies: 4 Views: 326 Use CanGrow (http://www.crystalreportsbook.com/Crystal_Reports_XI.asp?Page=2_6) option. |
Forum: VB.NET 18 Days Ago |
| Replies: 2 Views: 236 Read error description - http://msdn.microsoft.com/en-us/library/cb8za975.aspx. |
Forum: C# 19 Days Ago |
| Replies: 3 Views: 297 Hi!,
I think your account doesn’t have enough privileges to create the ldb file. Please have a look at this link - http://support.microsoft.com/kb/251254/en-us |
Forum: C# 24 Days Ago |
| Replies: 7 Views: 347 Think about common event handler for buttons,
...
private void Form1_Load(object sender, EventArgs e)
{
button1.Click += new EventHandler(commonHandler);
... |
Forum: ASP.NET 24 Days Ago |
| Replies: 2 Views: 408 Store root relative into (daabase) table.
string dpath="~/Images/" + txtPrdId.Text.Trim() + ".jpg";
and use absolute path to save the uploaded file,
string ufile=MapPath("~/Images/" +... |
Forum: C# 25 Days Ago |
| Replies: 2 Views: 358 Subtract two dates.
DateTime d1 = DateTime.Parse("11/18/2009 18:15");
DateTime d2 = DateTime.Parse("11/25/2009 01:35");
TimeSpan ts = d2 - d1;
Console.WriteLine("Seconds : {0} Minutes... |
Forum: VB.NET 25 Days Ago |
| Replies: 2 Views: 259 Clear() method clears entire area of drawing surface and fill it specified background color.
GraphicsDisplay = pboGraphics.CreateGraphics
GraphicsDisplay.Clear(pboGraphics.BackColor) |
Forum: C++ 25 Days Ago |
| Replies: 7 Views: 298 Thanks Narue.
I really appreciate your help. I apologize for the inconvenience. |
Forum: C++ 25 Days Ago |
| Replies: 7 Views: 298 Qualify string identifier with std (http://www.parashift.com/c++-faq-lite/coding-standards.html#faq-27.5)
#include <iostream>
int main()
{
std::string firstName;
std::string lastName;... |
Forum: C# 25 Days Ago |
| Replies: 5 Views: 396 >I have a windows application that prints a record in a given page size.
I don't think there is a big problem with windows application. Use crystal report or microsoft report. |
Forum: C# 25 Days Ago |
| Replies: 2 Views: 249 I assume that the field data type of ssk_matrah field is float.
if (oku4.Read())
{
if(!oku4.IsDBNull(0)) {
nSSKMatrahi = oku4.GetDouble(0);
... |
Forum: ASP.NET 26 Days Ago |
| Replies: 7 Views: 468 ControlToValidate property,
<asp:ListBox ID="ListBox1" runat="server"></asp:ListBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
... |
Forum: ASP.NET 26 Days Ago |
| Replies: 7 Views: 468 Use RequiredFieldValidator. |
Forum: C# 26 Days Ago |
| Replies: 8 Views: 364 >But do nothing.
I think FormClosing event is not handled properly. Add handler for Form's FormClosing event. (Look at property windows). |
Forum: JSP 26 Days Ago |
| Replies: 1 Views: 422 You may use the Commons fileupload (http://commons.apache.org/downloads/download_fileupload.cgi) package to upoad a file. |
Forum: Java 27 Days Ago |
| Replies: 1 Views: 280 Use split() method of String.
.....
String []items=null;
boolean found=false;
while (!found && (text = reader.readLine()) != null)
... |
Forum: VB.NET 27 Days Ago |
| Replies: 1 Views: 225 Use Controls collection,
TabControl1.TabPages("key or Index").Controls("key or index").Controls("key or index") |
Forum: C 28 Days Ago |
| Replies: 6 Views: 551 Hi,
Take a look at this article - http://linuxgazette.net/111/ramankutty.html |
Forum: C 30 Days Ago |
| Replies: 5 Views: 476 In C language, char (http://en.wikipedia.org/wiki/Primitive_data_type#Characters_and_strings)value is stored in 1 byte. A char type may contain a single letter, digit, control character or special... |