|
All of the books will tell you how to create a member variable, and how to change the value of a variable. That's all you're asking for here.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Take the variable public or private which you want to modify. For example
Dim Var1 as integer or
public var2 as integer
now add following code on click event of button
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
var1=var1+1
End Sub
|
|
|
|
|
You might not want to do this again. You essentially gave him 3/4's of the code he needs. Nice Job! He didn't learn a damn thing! Have fun doing his next assignment for him...
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hi!
I have a cuestion, i am creating forms in a access 2003, i know what this forum is to visual basic, but i usign vb to applications, this not vb completly but is similar.
Well, exist an method of get the handle id with the api functions?, i can't get the hwnd of controls in vb to applications, the function findwindow search the hwnd by title window, but controls are ignored, how i can get the hwnd to any control with api functions?, thanks very much fot your help.
|
|
|
|
|
how do i get crystal report to work on machine that doesn't have vb.net installed on it. I use the crystal report that comes with vb.net net, but it only works on my machine that has vb.net installed on it. can anyone help me or tell me what must i do to get it running on other machine with are without installation, ie. if i was to run just the exe file on that machine. what must i do, please help.
Nab
|
|
|
|
|
You need to have the crystal reports runtime on the machine you want to see the reports. If your using a setup kit to make the installation then add the crystal reports merge module.
Have a look at these two links Link 1[^] Link 2[^]
JustmeNick wrote: can anyone help me or tell me what must i do to get it running on other machine with are without installation, ie. if i was to run just the exe file on that machine
You will need to have the runtime installed on the machine, you could probably check if you get a separate installation of the runtime files.
Last modified: 4mins after originally posted --
|
|
|
|
|
Can any one give me information abt sql server 2005 (inbuild of VS2005)
such as
how better than other
Maximum size of database,table,row
|
|
|
|
|
You automatically get sql express with vs2005. This is not a full blown version of sql server.
Here's some basics:
Supports 1 CPU, but can be installed on any server
• 1 gigabyte (GB) addressable RAM
• 4 GB maximum database size
Here is a link:
http://www.microsoft.com/sql/editions/express/features.mspx[^]
sql 2005 and sql express 2005 both support an 8K row.
Hope that helps.
Ben
|
|
|
|
|
I've got a VB DLL (VB6) that displays a form with an MSHFlexGrid control that we allow the user to edit. We are displaying combo boxes, text boxes, and other controls to allow the user to edit the cell data when the user clicks in the cell. We've got code to adjust the size and location of the text box and combo box so it is as close to the size and position of the cell. What I'm finding, however, is that with some cells the size and position of the control is pretty close to the cell's size and location. In others, however, the position is noticeably off (as much as half the cell width and height). Here is the subroutine we are calling to position the text box. The code for positioning the combo boxes is similar.
Private Sub ShowMyTextBox(myText As TextBox)
On Error GoTo ErrHandler
Dim strTitle As String
strTitle = "frmSettings_ShowMyTextBox"
With myText
.Width = MSHFlexGrid1.CellWidth
.Left = MSHFlexGrid1.CellLeft + MSHFlexGrid1.Left
.Top = MSHFlexGrid1.CellTop + MSHFlexGrid1.Top
.text = MSHFlexGrid1.text & g_FirstTextChr
SelectText myText
.Visible = True
.SetFocus
.ZOrder 0
End With
Exit Sub
ErrHandler:
HandleErrorMsg strTitle, Err, IDS_ERR_MSG2, vbExclamation
End Sub
The SelectText line above just selects all the text in the text box. The HandleErrorMsg line is just a sub in a BAS module that logs error information to a log file.
My question: Is there a better way to position the control over the cell so the difference in the cell's size and position and the control's size and position isn't so noticeably different?
-- modified at 17:34 Friday 27th April, 2007
|
|
|
|
|
Is there a way to notify the user :
Low disk space (on HDD)
Regards
Ramy
|
|
|
|
|
Here is how you do that:
MessageBox.Show("Low disk space (on HDD)")
However, the answer to your question is so trivial, that I guess that you want something other than what you actually asked for. What do you really want?
---
single minded; short sighted; long gone;
|
|
|
|
|
Hello
I m having a string type variable consisting values in sequence
like 1,4,7,9
so how the value can be retrieve one by one to pass it to one function
say DoThis(value)
Any help would be highly appreaciated.
Thanks.
|
|
|
|
|
Use Split function to split the string by "commas".
convert the resultant array into integer and pass them to the function.
Regards,
Arun Kumar.A
|
|
|
|
|
Hey, name the subject as the correct wording.
Don't post with the subject as Urgent.
Try as Arun Kumar Said it will work fine.
Regards,
Satips.
|
|
|
|
|
Hi!
I've created a COM DLL in VC 6. When I use this in VB 6.0 it works fine.
But when I use it in VB.NET it gives me error which says "catastrophic failure"
Can anybody help me out?
Regards,
Nilesh
-- modified at 8:48 Friday 27th April, 2007
|
|
|
|
|
One possible problem is the threading model that VB.NET uses, try setting it to STA. Just a stab in the dark.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
please help me i cant debug and build my project it saved last time i was debugging and now when i go debug again i see no changes i made it shows me the debug before and the same when i go build, i tried to delete all files in bin/debug and bin/release but it don't works again please can someone help me?
Thank you wherry much!!!
|
|
|
|
|
Sounds to me like your code is broken, when it doesn't build, it will run the last version that built. Are you sure there are no errors ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
project is ok... i did it all i heaved to do is to delete "bin" and "obj" folders... but thx anyway. :->
|
|
|
|
|
Dear Gurus,
I am using Imageviewer OCX control in VB to have overlying images and
then save it to PDF through the control itself.. I am succesful .
But now the problem is when I give these PDF files to users they may
extract it and they should get separate images. not the flattened image.
How to achieve this while pdf generation? Any programming alternative ?
Kindly help.
Thank you,
vj
|
|
|
|
|
I'm trying to get two values from my form posted to the next page using PreviousPage.FindControl
1st. Am i missing something here with .NET? I have a simple form with two drop downs on that i want to post to another page. I know about post back, but i really want it to go to the next page. IS there a simpler way?
Isuue
-------
On default.aspx i have a button called id="ButtonAccomm" it has a value of PostBackUrl="~/Accommodation-Hotels-Bed-Breakfast.aspx"
This posts to the desired page.
I'm trying to bind the values of the two drop downs to
a) 2 labels on the page to confirm the values (Called id=DDAccomm and id=DDPrice)
b) A copy of the original form on the next page with the values set to the amounts posted
In the .vb of the next page i have tried this
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
ShortAccomm.DataBind()
Dim Label1 As New Label
Dim Label2 As New Label
Label1.Text = Me.PreviousPage.FindControl("DDAccomm").ToString
Label2.Text = Me.PreviousPage.FindControl("DDPrice").ToString
End Sub
But it doesn't work. What am i doing wrong?
Thanks in Adv.
Nick
|
|
|
|
|
Instead of trying to do like this,
use a button without any postback property
and on the button_click event
write something like this:
----------------------------------------------------
Use sessions to store the value of the 2 controls.
Response.Redirect("Page2.aspx")
----------------------------------------------------
In the page load event of the second page:
----------------------------------------------------
Use sessions to retrieve the session values.
----------------------------------------------------
Regards,
Arun Kumar.A
|
|
|
|
|
Good idea...
Can i not store the values in session variable anyway..? Even using a postback? Or post on?
|
|
|
|
|
And how do i get the value of th dropdown into a sesion variable?
|
|
|
|
|
Session("myTxt") = Dropdown1.Text ' to assign into session variable
myValue = CType(Session("myTxt"), String) 'to retrieve the session variable
Regards,
Arun Kumar.A
|
|
|
|