|
You could probably search the registry or program files directory for something like "Norton" or "McAfee".
|
|
|
|
|
Until XP Service Pack 2 came out, there was no standards for manufacturers to follow, so every one puts their registry keys in various places and each has different values and formats for data, including version information.
Unless you tell your app how to find each version of each package you want to support, you're going to have a difficult time with this.
The post XPSP2 era has the standard layed out by the Microsoft's Security Center. This information is available through WMI in the root\SecurityCenter namespace, but documentation on the classes and methods in this namespace is nearly non-existant. You'd have to get a tool such as WmiStudio to do some investigation on your own on how these classes work.
|
|
|
|
|
Hi all,
I'd like to know how i can print a form as an image (with color) in vb.net, using Visual Studio 2003. I found the PrintForm control of Microsoft for VS 2005 but it does not support VS 2003. Any help, please?
--Zaegra--
|
|
|
|
|
I battled this problem too a while back didn't find a solution but did find a work around with may be good enough.
The way I did it was that I took a snapshot of the form and then saved (or print) it.
the downside to this is that the form has to be active and there can't be anything above it.
its like pressing the printscreen button on your keyboard only just from your form (or a panel or something like that)
if you want the code too do this just email my (I'd post it here but can't seem to find a attachment button )
Like I said this is a work-around and there will almost definatly be better ways to do this but due to lake of time I settled for this and it worked fine for me soo...
-- modified at 9:29 Monday 2nd July, 2007
Probably better give my email : tom.deketelaere@gmail.com
|
|
|
|
|
Hi all,
Is there any way to search for a string and modify entire line of text file using VB.net ?
Thanks
Sridhar...
|
|
|
|
|
|
Load the text file into memory, search for and replace what you want using normal array and string operations, then write the modified file back out.
If your file is too big to fit in memory, you'll have to use other techniques described in this article[^].
|
|
|
|
|
hi everyone,
1 m newbie for Drawing class .i created PNG through programmatically.Everything in fine Except Width & height of PNG. i draw a PNG based on string, input by User
at starting time I fix the size(height & Width) of PNG. but even for single character it takes same size as i specified. whether there r any option to remove White pixcel (where red ,green,blue equal to 255 for row from top or bottom ,and for any column from Left or Right)
any help will be appreciated
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
You already asked this question and you already got your answer. You cannot reduce the size of the image because PNG is already a compressed format.
|
|
|
|
|
sorry sir for asking same question once again.
i m newbie in Drawing class . so i don't described my problem in correrct manner.so i post same question once again.
by the way i find the solution to reduce the PNG image to 150 Bytes(before it takes above 1KB for single word of some character)
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
Hi,
Actually, We are receiving CSVfiles over FTP,when we receive a CSV file, we have to read the file information (number of rows in the file)after that we have to parse the CSV file and we have to compare both row count in the header and number of rows in the CSV file if both are equal then we have to insert that file into database other wise we have to reject it.
Here my problem is I know how to parse CSV file, Now I want to know how to read the CSV header file, the problem is I haven't look at a CSV file with header thats why I am unable to continue. do the need full help
Thanks and Regards,
sudhakar venati,
Mob: 0 984 55 989 71.
|
|
|
|
|
There is no header file for a CSV file. There is a header row, which would be the first line of the CSV file. You read it and parse it the exact same way you would any other line in the file.
|
|
|
|
|
can any one tell me how can i make a proceduers in vb2005
and how can i call it from any other place
thanks
|
|
|
|
|
Private Sub MyProcedure()
<BODY>
End Sub
Now call this MyProcedure() from any event inside the form:
Private Sub Form_Load()
Call MyProcedure
End Sub
If you want this Procedure to be accessible in the whole project, you will have to declare it as Public.
Hope this helps....
The name is Sandeep
|
|
|
|
|
thanks u very much
it helped me a lot
|
|
|
|
|
hi,
I want to display report on VSPrinter component of Vb6.0.
Pls send me the code if u r having???
GIRISH
|
|
|
|
|
There's no such object as VSPrinter that comes with VB6. If you're using a third party control, you'd have to go to the manufacturers site for support on it.
|
|
|
|
|
I want some Demos and tutorials of Crystal reports in vb 6.0.
Pls send me the links for the same.
Thanks !!!
GIRISH
|
|
|
|
|
If you have installed Crystal Report in your machine, then no doubt you will get the Help with it.
The name is Sandeep
|
|
|
|
|
Hey guys, I'm having an issue with the windows CheckedListBox control. I set it to only be able to select one row at a time, however it still allows multiple checked rows, just not multiple highlighted rows, anyone know of a way to be able to only check a single row?
Thanks for any help,
Pablo
Apparently it's not OK to start a bonfire of Microsoft products in the aisles of CompUSA even though the Linuxrulz web site says so
|
|
|
|
|
Polymorpher wrote: however it still allows multiple checked rows
This is the correct behaviour, since selected items are the highlighted, not the checked ones. IMHO you have to explicitely uncheck the previuos checked item(s) (the CheckedListBox.CheckedIndices will be handy for the purpose) to obtain the aimed result.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I want to convert VB.Net .
Vb 6.0 code
m_strSql = "Select Top 0 From TableName"
aCmd.CommandText = m_strSql
aRec = aCmd.Execute
Select Case aRec.Fields(0).Type
Case ADODB.DataTypeEnum.adVarChar
MsgBox "String"
Case ADODB.DataTypeEnum.adSmallInt
MsgBox "Integer"
end select
Dim dt As DataTable = New DataTable
Using reader As IDataReader = db.ExecuteReader(m_strSql)
dt.Load(reader)
End Using
Select Case dt.Columns(0).DataType
?? case system.char ??
MsgBox "String"
end select
system.char is why can't be use as an expression.how can i know dataType ???
thanks all.
|
|
|
|
|
There may be an easier way but you can convert the type name to a string and compare using that
eg
Select Case typeof(myobject).ToString
Case GetType(String).ToString
Return "This is a string"
Case GetType(Integer).ToString
Return "This is a number"
Case else
return "Unhandled type: " & typeof(myobject).tostring
End Select
What that is doing is getting the string definition of the 'myobject' and then comparing that to the string values of the types of integer, string, etc
There is probably a better way of doing this but it should work OK.
|
|
|
|
|
Hey all:
I have written a code that will export my data from Datagrids to Excel. It is taking sometime to write the data in excel file. I thought it would be better if I could provide some visual feed back to user like in progress bar or any other when my application writes data in Excel.
Can any body help me how to set the inteval and how can know that excel application is opened from the code?
Others type of suggestions for achieving my tasks is highly appreciated.
|
|
|
|
|
Hi,
Don't know if this will help, But I have used this a few times in excel to show a progress in the status bar...
Sub StatusProgress()
'
' Progress Application Statusbar
'
Dim intIndex As Integer
Dim sngPercent As Single
Dim intMax As Integer
intMax = 100
For intIndex = 1 To intMax
sngPercent = intIndex / intMax
ProgressStyle sngPercent
DoEvents
'------------------------
' Your code would go here
'------------------------
Sleep 100
Next
Application.StatusBar = False
End Sub
Function ProgressStyle(Percent As Single)
' Progress Style
' Application Status bar
' Pulsing
'
Dim strTemp As String
Dim intIndex As Integer
Dim intLen As Integer
intLen = 21
intIndex = Int((Percent * 100) Mod intLen)
strTemp = String(intLen, txtPg7a.Text)
If intIndex > 0 Then
Mid(strTemp, intIndex, 1) = txtPg7p.Text
End If
Application.StatusBar = "Processing " & strTemp
End Function
Cheers,
Stefan.
All answers have a question? All code has an end.
|
|
|
|