|
Nick Seng wrote:
Did I say otherwise?
When you said the original file extension was .bas that was the implication. I have used BASIC language implementations where that is not the case and they have been equally as old as Microsoft themselves.
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
Well, it WAS a long time ago(about 15 years or so), and I could remember writing those basic codes:
10 Do something
20 do something else
30 Run
in those dinky ancient apple machines. I could've sworn the extension was .bas but I'm probably mistaken.
So, what is the extension?
"if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler.
|
|
|
|
|
I don't know what the original file extension was or even if the OS supported file extensions, or if the original creators deemed it necessary to give a file extension way back in 1964.
The point I was making was that as you said "IIRC from my Basic class ye so many years ago" that you were unlikely to have used the first version of BASIC (I'm guessing your first BASIC class would have been when you were around 13 to 15 [most schools don't teach programming earlier], give-or-take a couple of years, so that would put that class around 1992-4. Or about 30 years after BASIC was invented.
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
Hello,
Currently I'm working on an application with a simple datastructure. That simple that I use XML as datasource for the tables. Now reading, changing, adding, deleting and writing to and from the xml files goes perfect.
However this app also needs to export text files with fixed width. Also that is working, even with xml based specifications for exporting (fieldname and startpositiong). The only thing is that I would like to query the dataset/datasource with a select statement and export this query instead of the table. How can I do this?
Thanks so much in advance.
|
|
|
|
|
You may want to check out the collections class:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vaconCreatingYourOwnCollectionClass.asp
|
|
|
|
|
Hi
when i extract icon from exe or dll and try to save it with icon.save(--) method . icon color change from 32bit to
16 color so if anyone can tell me the way to save it in 32bit.there is VC# project ("IconBrowser") do this put i cant convert it to VB.NET
|
|
|
|
|
Does anyone know of a good website with tutorials on creating custom skins for windows forms using vb.net?
|
|
|
|
|
I am developing outlook Com Addin.
At loading mynotes.msg( notes ) to outlook,
I also want to launch this note. NoteItem as member function called
Display, however it doesn't do anything. The following is the exact code
from my app for launching loaded note(msg file). Something wrong with my
code or know workaround to launch this loaded note item?
Dim objNameSpace As Outlook.NameSpace
Dim objMAPIFolder As Outlook.MAPIFolder
Dim objNoteItem As Outlook.NoteItem
Dim str_Body As String
Set objNameSpace = otlkDoc.GetNamespace("MAPI")
Set objMAPIFolder = objNameSpace.GetDefaultFolder(olFolderNotes)
Set objNoteItem = otlkDoc.CreateItemFromTemplate(str_FileName)
objNoteItem.Save
objNoteItem.Display
Set objNoteItem = Nothing
|
|
|
|
|
I am looking for a tutorial that would teach me vb.net online about the syntax and everything else you have to know about vb.net, it doesn't matter how long it is.
|
|
|
|
|
Check this out , offered from microsoft
http://msdn.microsoft.com/vbasic/atthemovies/
|
|
|
|
|
Im developing a Snap-in in VB6.0 (using the Snap-in Designer).
but the problem im facing is that:
Whenever I click on an Added Node (in the MMC Scope-Pane)I get the following Error Message
"The Selected Snap-In did not initialize properly"
and after that, the opened snap-in doesn't work correctly
Plz help me out
Im using
VB 6.0
MS Win2k
MMC 1.2
raheela
|
|
|
|
|
I found this error message in Here[^]. Please read it for further information.
Roath Kanel
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Thanx for replyin'
The link u send says :
"If a language other than English, French,
German, Japanese, or Spanish was selected in
Regional Settings, the message "The selected
snap-in did not initialize properly" was
displayed when you tried to start the
ePolicy Orchestrator console. Now,
regardless of the language selected, the
console starts. In addition, if the language
selected is something other than English,
French, German, Japanese, or Spanish, the
console displays in English."
but I have the "English Regional Settings", and still have this problem.
plz help me out
raheel
|
|
|
|
|
Hi everyone,
I have 2 quetions:
1. I want to know if there is a way giving a dataset to c.report at runtime, so it would take the data from there...
2.I have a general report and I want to change its sql query at runtime...
I use VB.Net 2003
Thanks
Roy.
|
|
|
|
|
you can create parameter fields and assign values to it in your VB code from the dataset.
Dim rpt1 As New ReportDocument
Dim tbCurrent As CrystalDecisions.CrystalReports.Engine.Table
Dim tliCurrent As CrystalDecisions.Shared.TableLogOnInfo
Dim pvCollection As New CrystalDecisions.Shared.ParameterValues
Dim pdvCustomerName As New CrystalDecisions.Shared.ParameterDiscreteValue
Dim obj_Report As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim Anndesc As New CrystalDecisions.Shared.ParameterDiscreteValue
rpt1.Load("C:\CrystalReport3.rpt")
' Set the connection information for all the tables used in the report
' Leave UserID and Password blank for trusted connection
For Each tbCurrent In rpt1.Database.Tables
tliCurrent = tbCurrent.LogOnInfo
With tliCurrent.ConnectionInfo
.ServerName = "AK"
.UserID = "X"
.Password = "Y"
.DatabaseName = "DB"
End With
tbCurrent.ApplyLogOnInfo(tliCurrent)
Next tbCurrent
pdvCustomerName.Value = dataset.tables(0).Rows(0)(0)
'frm_Viewer.crv_ReportViewer.ReportSource = obj_Report
'Me.crv1.
' Add it to the parameter collection.
pvCollection.Add(pdvCustomerName)
rpt1.DataDefinition.ParameterFields("@pra_id").ApplyCurrentValues(pvCollection)
pvCollection.Clear()
Anndesc.Value = "Announcement Description"
pvCollection.Add(Anndesc)
rpt1.DataDefinition.ParameterFields("@AnnDesc").ApplyCurrentValues(pvCollection)
' Zoom viewer to fit to the whole page so the user can see the report
Dim myrep As New CrystalReport3
crv1.Zoom(2)
crv1.ReportSource = rpt1
|
|
|
|
|
I am currently trying to make software to send bulk emails. As im running a website, im importing text files to import email addresses. The software is almost complete.
Im using SMTP to send the emails, the smtp server has been set as LocalHost which works fine as when I change it an error occurs.
using LocalHost, the software successfully completes its task by sending the email. However, the emails do not send, when i shut down the computer and im not connected it trys requesting information from the domain inwhich im sending the email to, I assume its trying to send the email but it wont send it. Ive only ever recieved one out of loads but it took about 30 minutes, ive also recieved one at the from address which I set saying it couldn't send the email due to some SMTP server error.
Can anybody help me sort this problem out, I want the emails to send instantly?
You can reply to this or email tonymaclennan@yahoo.co.uk
|
|
|
|
|
I am currently trying to make software to send bulk emails. As im running a website, im importing text files to import email addresses. The software is almost complete.
Im using SMTP to send the emails, the smtp server has been set as LocalHost which works fine as when I change it an error occurs.
using LocalHost, the software successfully completes its task by sending the email. However, the emails do not send, when i shut down the computer and im not connected it trys requesting information from the domain inwhich im sending the email to, I assume its trying to send the email but it wont send it. Ive only ever recieved one out of loads but it took about 30 minutes, ive also recieved one at the from address which I set saying it couldn't send the email due to some SMTP server error.
Can anybody help me sort this problem out, I want the emails to send instantly?
You can reply to this or email tonymaclennan@yahoo.co.uk
Thank You
Tony M
|
|
|
|
|
Hi,
I am developing email client in visual basic 6.0.
I can send mails using Winsock control in a system directly connected to the internet.
But if the system is connected to the internet through proxy server then I can send mails.
Please tell me the method to send mails through proxy server or give me some links from where I can find some guide line regarding that.
Thank you.
-Javed
|
|
|
|
|
The procedure would depend heavily on the type of Winsock Proxy support your proxy server supports, if its enabled at all (not likely!). You would have to send a formatted connection request to the proxy server (again, depends on the type of Winsock Proxy supported), and negotiate the connection with the proxy. Usernames and passwords may be required, so you'll have to deal with that also. Again, this will depend HEAVILY on the proxy server and you should consult the documentation on the server to find out what it's requirements are.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi guys,
I have my own class for uploading files via FTP. The file that I need to upload MUST BE encrypted due to security reasons. Does anybody know how to incorporate PGP in vb.net or does anybody knows how to use PGP with VB.NET?
Thanks alot
|
|
|
|
|
check this, it's in C# but i'm sure it can be converted to vb.net or give you an idea at least.
http://www.codeproject.com/csharp/gnupgdotnet.asp
|
|
|
|
|
I'm having a problem in how to implement context menu's
I have a main form that has a 2 listviews on it and a set of radio buttons.
the 2 radio buttons effect the contents of one of the listviews.
Depending upon the listview selected (and its contents in the case of the first listview) I want to create context menu's
I can create context based upon which listview called it but dont seem to be able to reference back to determine which radio button is set OR add a value to the function in the addhandler item when adding the event handler to the context menu item.
Any ideas on ways to implement this would be greatly appreciated. Basically want to make a framework where I can say create a context menu for a specific type - so that if that listview is used on different forms can simply call the CreateContextMenu Function which will create the menu with appropriate hookups to the procedures.
|
|
|
|
|
I'm assuming that since the values change based on what radion button is selected, and that you want to display a different context menu based on what is selected.
I'd suggest creatting 2 different context menu's in design view, then when a radio button is selected, change the listview.contextmenu property to the respective context menu.
|
|
|
|
|
That may work in this instance - but the concept is that I want something that is generic enough that I can re-use anywhere in app. Having to create many context menu's of different forms is not really what I want to occur.
So What I'd like is that I can Call a routine CreateContextMenu(byval MenuType as integer)
which would create a Context Menu for a specific type of Menu (Say Business Code, Order, Invoice etc.)
This adds Standard menu item such as "Open", "New" etc. which at the moment are calling functions called OpenFunctions and NewFunctions. which determine the actual real function to be called such as OpenOrder, OpenBusinessCode etc.
Determining which specific function to be called is handled by looking at a application level property which changes depending upon the listview currently selected.
Ultimately what I'm trying to do is pass a parameter into the OpenFunctions and NewFunctions procedures which are used to determine the specifc type of menu to create.
But that would involve when setting up menuItems making the AddressOf clause pointing to the function accept a paramater
So Ideally I'd like to do something like
Sub OpenFunctions(byval iType as integer)
Dim conMenu As New ContextMenu
Dim menuItem1 As New MenuItem
IF iType <> 0 then
menuItem1.Text = "&test"
conMenu.MenuItems.Add(menuItem1)
AddHandler menuItem1.Click, AddressOf OpenFunctions(iType)
else
throw new exception ("Invalid Type!!!")
end if
End Sub
But cant seem to get the following line .... to work
AddHandler menuItem1.Click, AddressOf OpenFunctions(iType)
I think this is the key - being able to pass the addressof a function with parameters.
|
|
|
|
|
Ok did some testing Here is what I'm going to suggest.
Since you are wanting to reuse the creation of these contextmenu's throughout your program, What I did, is create a class library within your project, create your function to create the contextmenu, and return the context menu. Here is what my class looks like
Imports System.Windows.Forms
Public Class Class1
Public Function createmenu()
Dim conMenu As New ContextMenu
Dim menuItem1 As New MenuItem
menuItem1.Text = "&test"
conMenu.MenuItems.Add(menuItem1)
AddHandler menuItem1.Click, AddressOf opentest
Return conMenu
End Function
Public Sub opentest(ByVal sender As Object, ByVal e As System.EventArgs)
MsgBox("Test for opentest worked")
End Sub
End Class
Make sure, on your Forms, you set reference for this class library,
My Form code looks as follows
Imports testing_contextmenu.Class1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim conmenu2 As New ContextMenu
Dim testing As New testing_contextmenu.Class1
conmenu2 = testing.createmenu()
ListView1.ContextMenu = conmenu2
End Sub
So I believe the easiest solution would be to create the class library, create your functions to create your menu's, and returrn those as I have done, Hope this helps, or gets ya in the direction you want.
|
|
|
|