|
The problem of me is that I couldn't redraw the menubar,because the mainmenu is made up of menuitems,I couldn'd measure the size of the top rectangle the mainmenu located at, so I cann't draw the office2003 menubar color on the top of the form.
|
|
|
|
|
dyh2222 wrote:
because the mainmenu is made up of menuitems
You expected something different?
dyh2222 wrote:
I couldn'd measure the size of the top rectangle the mainmenu located at
Why would you want to?
dyh2222 wrote:
so I cann't draw the office2003 menubar color on the top of the form
I take it your trying to ownerdraw the entire Office 2003 menu bar?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Structures support event handlings ?
|
|
|
|
|
How to create Shared Procedures, Static procedures, Shared Properties, Shared events. An example will be very much appreciated
|
|
|
|
|
Public Shared Sub SubNameHere
End Sub
Public Shared Function FuncNameHere
End Function
Public Shared Event EventNameHere()
Public Property NameOfProp()
Get
End Get
Set(ByVal Value)
End Set
End Property
Public Structure StructureName
Dim TestStructure As String
End Structure
Not sure on the static
hope that is what you meant
"If i was king cigarettes would be free."
|
|
|
|
|
How to work on multiple columns in a listbox? Let say, I want two columns, Name and Roll should be displayed two columns in the listbox, values are stored in the database "student".
|
|
|
|
|
Apparently, I read recently that .NET does not support multiple columns in a listbox. I was trying to accomplish the same thing when I read about the this.
|
|
|
|
|
But there is a property Multicolumn with Listbox.
What is this ??
|
|
|
|
|
Sorry, my mistake. I was thinking of the combobox.
|
|
|
|
|
Suppose a Base Class C1, another class C2 inhriting C1, an other class C3 inheriting Class C2. I want to call instance constructor of class C1 into constructor of class C3
|
|
|
|
|
How can we reflect a dataset after altering the table. The generation of a new dataset is not working.
(I tried with MSAccess database)
|
|
|
|
|
How to change the column name of Datagrid from the default column name of the database to any other. Let say, the column name in the database in "Emp_name", and I want to change it
on the datagrid to show as "Employee Name"
Suman Singh
|
|
|
|
|
You will need to instantiate a DataGridTableStyle. DataGridTableStyle supports properties such column width, name....
|
|
|
|
|
Hello all,
I need to render multiple Reporting Services reports into a single PDF for output. Each report will retain its own headers and footers.
Current: (3 PDFs)
---------------------------------
Cover Sheet (1 page)
Sales Report (2 pages)
Accounting Report (2 pages)
Needed: (one PDF)
---------------------------------
Cover Sheet - Page 1
Sales Report - Pages 2 and 3
Accounting Report - Pages 4 and 5
Currently, I am using SOAP to render each individual report to PDF. My application allows users to choose which RS reports they want to output. Obviously, since there is no way of knowing which they will choose, I cannot solve this using RS.
3rd Party tools that require purchase ($) are totally out of the question for me, due to budget constraints. Anything free is good.
Please help!
Thanks very much.
|
|
|
|
|
I am making my own browser using Mozilla's ActiveX controls and I am having some trouble figuring out how to let someone set a homepage. i don't know how to work with writing to files and reading from them. someone please help me.(i'm using VB.NET)
OH! I would also appreciate any help on the URL textbox. Here is a situation:
While using my browser, i type in "www.google.com" and hit "go". I click on "news". i would like the address in the textbox to change automatically to "http://news.google.com/nwshp?hl=en&gl=us" instead of staying "www.google.com" how the heck do i do this?
Thanks
Blah
|
|
|
|
|
ok, i found out how to set the homepage through a file. so all i need help with now is the url thing.
Blah
|
|
|
|
|
So do you still need some help with file I/O?
|
|
|
|
|
I have a loop for a datagrid that shows all the amount rows added together in the caption.text of the datagrid. now i am going to change the loop because i dont need to add the rows, i need to subtract them. i know how to do that, but my question is that i have a textbox(textbox6) for which the user will need to enter a balance to show in the caption.text before the loop can subtract anything. any tips will be greatly appreciated.
this is what i have.
<br />
Dim t6 As Object<br />
<br />
t6 = TextBox6.Text<br />
For Each t As String In TextBox6.Text<br />
Amount += t<br />
Next<br />
<br />
Me.DataGrid1.CaptionText = "Current balance $" & t6.ToString()<br />
it is acting wierd. if i input 7 in the textbox then the data grid recieves only an addition of 1. if i input 9 it gets an addition of 4.why
Makniteasy
|
|
|
|
|
Sorry, but I dont get what you are trying to do...
You assign the Text of the textbox to the object variable t6 and print it out at the end. But in the loop you are only adding (I thought you want to substract something) values to the variable Amount.
And what is For Each t As String In TextBox6.Text supposed to do in your opinion? I dont think thats what you are really trying to perform...
|
|
|
|
|
I have an application where I first load a vb.net app that is going to run in the background. That app then starts another vb.net app that is the user interface (UI). Is there anyway I can send a message (or something) from my UI app to my background app so it can then start a process?
If so, how would that be done?
|
|
|
|
|
Dial the Net Automatically
i Need to connect to the Net? without display a connection dialog box.
i neet to force dial access to the Net, without any form of user intervention
|
|
|
|
|
Hi I am trying to call a Function from a Sub routine that basically does a WMI check and puts the results into a Variable.
Then from the main Sub routine Display the variable in the HTA app.
I'm sure the WMI function works ok but I'll be damed if I can get the variables to be displayed in the HTA app.
Here is a sample of the code Iam running, any help would be appreciated. Thanks
' ********* GET OS FUNCTION **********
Function GatherInformation
On Error Resume Next
Set objWMIService = GetObject("winmgmts:\\" & sComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM win32_OperatingSystem", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)
For Each objItem In colItems
strOperatingSystem_InstallDate = objItem.InstallDate
strOperatingSystem_Caption = objItem.Caption
strOperatingSystem_ServicePack = objItem.CSDVersion
strOperatingSystem_WindowsDirectory = objItem.WindowsDirectory
strHTML = strHTML & objItem.Caption
strHTML = strHTML & strOperatingSystem_Caption
Next
Set objWMIService = Nothing
GatherInformation = True
DataArea.InnerHTML = strHTML
End Function
' ********* END OS FUNCTION **********
' ******* PUT HTML IN THERE ***
Sub Display
strHTML = strHTML & strOperatingSystem_Caption & "hello"
DataArea.InnerHTML = strHTML
End Sub
' ********************************
' ********* Main Subroutine ***********
Sub MainSub
On Error Resume Next
DataArea.InnerHTML= " "
sComputer = ComputerTextBox.Value
If sComputer = Empty Then
strHTML = strHTML & "Please Enter a Computer Name "
DataArea.InnerHTML = strHTML
Else
If IsConnectible(sComputer,"","") Then
strHTML = strHTML & "Ping Successful"
If WMIPing(sComputer) Then
strHTML = strHTML & strOperatingSystem_Caption & "hello"
strHTML = strHTML & "WMI Connection Successful" & " "
Call GatherInformation
Set objWMIService = Nothing
GatherInformation = True
strHTML = strHTML & strOperatingSystem_Caption & "hello"
DataArea.InnerHTML = strHTML
Else
strHTML = strHTML & "WMI Connection Fail"
End If
Else
strHTML = strHTML & "Ping Fail"
End If
DataArea.InnerHTML = strHTML
End If
End Sub
|
|
|
|
|
pn1995 wrote:
Set colItems = objWMIService.ExecQuery("SELECT * FROM win32_OperatingSystem", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)
Get rid of the wbemFlagReturnImmediately flag. It'll cause the ExecQuery call to retrun immediately, without waiting for any actual data to come back. You're variables are then getting assigned blank strings because, obviously, you didn't wait for the ExecQuery call to return any data!
[EDIT]
Replace it with the wbemFlagReturnWhenComplete instead. It'll cause the call to block until some actual data is returned.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for replying but I tried both getting rid of the wbemFlagReturnImmediately and also trying replacing it with wbemFlagReturnWhenComplete but both still did not help in me being able to display any data from the variables. Any other ideas?
|
|
|
|
|
I have some data in a datagrid. i filled it before. than i want to delete a record from database. after my delete command it is deleted from datagrid but it is not deleted from database because after i start the program i can see it on the datagrid again. what might be problem?
while i add a record on the same database i'm not seing that problem.
Thank you.
|
|
|
|