|
I stand corrected.
Kevin
|
|
|
|
|
lfpmx wrote: just using commands, like if, select case, strings, or cycles.
What on earth are cycles ?
The point of a class is that it gives you the info you need to complete an assignment. Ask your class mates if they are able to do the work. If so, then consider doing some extra work to catch up, and paying attention in future, or consider dropping the class and taking up pottery or something instead.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: What on earth are cycles?
I guess that they are loops.
---
b { font-weight: normal; }
|
|
|
|
|
Christian Graus wrote: The point of a class is that it gives you the info you need to complete an assignment.
And I always thought classes are used to group related variables and functions.
Christian Graus wrote: Ask your class mates
You probably mean internal classes?
Christian Graus wrote: consider dropping the class
But beware that the designer only allows classes inheriting from Component to be dropped onto a form.
Robert
|
|
|
|
|
hi,
Please check for the following:
if this.text = "" then
lable.visible = False
end if
for i = 1 to 10
i > 0;
i++
Success is 99% failure
|
|
|
|
|
Hello,
I have a problem...i have a messenger like MSN in which when the user clicks the cross(close) sign on the main window after signing in, the application does not exit, but hides to the system tray. This works fine, on the "On closing" event, i canceled the closing process and hid the form with Me.hide or me.visible = false.
When the user opens a new chat window, and then presses the close sign, the main messenger form hides perfectly but it also hides the chat forms open! I want that the main form hides only adn the chat forms remain in view...how do i go abt doing that? The main messenger form opens the chat window...
|
|
|
|
|
The other windows close as the main window is their parent. The easiest solution is to make them siblings, I would think.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
Is it possible to make sure that your form is alway's topmost?
I have a situation where a side-bar gets 'topmost' my form.
With regards,
Jurgen
|
|
|
|
|
tessers wrote: Is it possible to make sure that your form is alway's topmost?
Set the TopMost property to true ...
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
Thanks for the answer, but what if another application have the topmost property set to true and starts after my application?
With kind regards,
Jurgen
|
|
|
|
|
Then that window would be on top of yours, but still your form remains on top of other windows.
To make your form really ALWAYS on top, you sould check it periodically using a Timer ( Or maybe I guess OnPaint Event of your form).
|
|
|
|
|
Oke, thanks Mohammad. I will give it a try.
|
|
|
|
|
I am a beginner to visual basic, but i wanted to know where do i start when trying to build an application for sending a general email.
jgreen29
|
|
|
|
|
How can I see what threads are currently running in my vb.net 2005 project?
thank you
|
|
|
|
|
I have an SQL Function, How can I excecute this function through vb.net???
This function takes a character value and retrieves a date value:
for example : when I excecute the function in the SQL:
select Function_Name('14/06/2007') from dual;
the result will be: 14-jun-2007
and so, plz if any one can tell me how to do this in vb.net, it will be veru helpfull to me.
Kind Regards
|
|
|
|
|
Use the function in an SQL query, for example: "select Function_Name('2007-06-14') as SomeDate".
---
b { font-weight: normal; }
|
|
|
|
|
so do u think it will be just like an sql query which contains a select statement??????
|
|
|
|
|
obarahmeh wrote: so do u think it will be just like an sql query which contains a select statement??????
Isn't that what he said?
To run a function in SQL you need to use a SELECT statment. To get one to run in your .NET application you need a SELECT statement.
|
|
|
|
|
Ei guys, I would like to share a problem with you. I am doing a project that requires me to print a letter-like report which consists of the ff. part:
---------------------------------------------------------------------------------------------------
___________ [Main Reference No]
___________ [ Additional Reference Nos ]
___________ [Date]
___________
___________ [Heading (The recipient]
___________
___________ [Greeting]
______________________________[Opening Letter]__________________________
____________________________________________________________________________
____________
____________
____________[List of Items from a Database Record
____________
______________ __________________ __________________ ______________
______________ __________________ __________________ ______________
______________ __________________ __________________ ______________
[Rows of Records from the database with 4 Columns]
______________________________[Body of the Letter]_____________________
___________________________________________________________________________
__________________________________[Closing]_____________________________
____________________________________________________________________________
___________________ _______________________
___________________ [Signatures] _______________________
___________________ _______________________
----------------------------------------------------------------------------
REQUIREMENTS:
- The main part of the letter (Opening, Body and Closing) requires to be dynamically generated. That is the user is free to choose what format he wants. (Font Type, Font Size, Font Styles (Bold, Italic and Underlined), Alignments, Bullets, etc. I've develop a program for this.
- If the report has more than one pages, the rest of the pages(except page 1) should have a HEADING that is made up of the Recipients Name, Main Reference No, Date, Page No and a line, then print whatever is left from the previous page. See illustration.
----------------------------------------------------------------------------
_________________ [Recipients Name]
_________________ [Main Reference No]
_________________ [ Date]
_________________ [Page No]
_________________ [A line]
;PREMAINING CONTENT
----------------------------------------------------------------------------
Proprietary reporting tool such as crystal reports, if Im not mistaken, doesnt support this kind of reporting. Correct me if Im wrong coz Im a bit new to Crystal Reports and if it indeed does support that reporting, then its gud news, and Im very eager to know it. But since, I assumed its not possible with Crystal, I turned my attention to the printing classes provided by the .Net Framework.
I have read two articles from Microsoft Library's .Net Development Articles and Columns. The first one was discussing about and extended RichTextbox class inherited from the RichTextBox class of the .Net Framework. This control offers one very important feature, the Print Method, which directly prints the content of the RichTextBox, with all its formatting into the PrintDocument. Exactly what I needed for the first requirement.. On the other hand, the second article was again about an extended classes, this time, inherited from PrintDocument and PrintEventArguments classes. It provided functionalities like writing text into the document (using graphics.drawstring), tracking of X and Y coordinates of the imaginary cursor on the page, and added some events for purposeful tasks.
Thanks to the author of those articles.
COMBINING THE TWO IDEAS
.
After studying the two articles, I came up with an idea to combine them. What I wanted to achieve with this is that at the printpage_event where the actual printing of contents is done, I want to print a text on the page using the write function of the second extended class or simply using the graphics.drawstring method and then print the content of the RichTextBox keeping all the format made by the user, and again print another using the former to display database records with rows and columns and vice-versa.
THE PROBLEM
-The problem is, the texts I've written using either write or drawstring methods didnt appeared on the page. It seems the contents of RichTextBox that were also being printed have covered them. So I have to think for another idea.
I came up with putting all the contents of my report to the RichTextBox control and from their, do the formatting or layouting. But another problem is Im having difficulties aligning rows of records in tabular format and the HEADER Im talking about on the Requirements couldnt be printed with this approach.
Is there any way I can achieve the expected output? Im hoping and believing I can get solution from the ideas of good and experienced programmers/developers here. Im thanking you in advance for any ideas you can give and for the time you've alloted reading this long query. Many thanks.
Oops, I forgot to mention.. I am using VB.NET 2003(.net framework 1.1). Thanks Again.
programming_lesterbryan.cuenca@yahoo.com.ph
|
|
|
|
|
I am Doing Datagrid Editing.While i am updating Data it is not showing any error but doesn't display Syntax Error Also .This is My Code i have placed
Datagrid_UpdateCommand
----------------------
Dim conn As SqlConnection
Dim MyCommand As SqlCommand
Dim strConn As String = "Data source=B4-2F-128-HTB2\SQLSVR; user id=sa; password=; Database=New_Cart"
Dim txtQty As TextBox = e.Item.Cells(3).Controls(0)
Dim strUpdateStmt As String
strUpdateStmt = " UPDATE ProductDetails SET Qty =@Qty " & _
" WHERE Pcode = @pcode"
conn = New SqlConnection(strConn)
MyCommand = New SqlCommand(strUpdateStmt, conn)
MyCommand.Parameters.Add(New SqlParameter("@Qty", txtQty.Text))
MyCommand.Parameters.Add(New SqlParameter("@Pcode", e.Item.Cells(1).Text))
conn.Open()
MyCommand.ExecuteNonQuery()
MyDataGrid.EditItemIndex = -1
conn.Close()
BindData()
Siddu
Software Developer
|
|
|
|
|
How to use this CopyMemory() of kernel32.dll in Vb 2005 for Printing a Document.This function Stores the Buffer Data which is to be printed?
Rekha
|
|
|
|
|
I want to print the documents one after after the other sequentially and also every document should start with a new page. How this can be done?
Very Urgent
Rekha
|
|
|
|
|
At the end of the first page set e.HasMorePages = True and the PagePrint event will fire again - print the second page at that stage and so on.
|
|
|
|
|
How to add new rows automatically depending on a new row entry in the Data Grid. The new rows must be added below the currently entered row automatically (depending on a column value). The datagrid is bound to a table in MS-Access 2000 Database.
-Madhu
|
|
|
|
|
add to rows count of datagrid property
|
|
|
|