|
you should use mouseleave event
|
|
|
|
|
That's what I said, but I recall it not worknig out for me at times, hence my suggesting an alternative.
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 )
|
|
|
|
|
I want to send this command to epp.registry.tryout.be at the port 33128. This is an EPP server which is to be connected through SSL connection
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
<hello/>
</epp>
This will generate a Greeting in the same (XML) format. I want to store that greeting to a string using some xml parser i am not sure.
Please help and provide the code in vb.net
Thanks
|
|
|
|
|
Hi
Using VBA for Excel - Office XP and 2003
We have an file on a network with a production schedule, that is accessed and modifeid by a couple of users. I am using the Workbook's BeforeSave event to prompt the person who is trying to save the Workbook to send an email to other useds advising them of the changes to the production schedule.
Two questions:
1) How can I get the current Users name? - Not to worry, I have found this!!
2) When I send the mail, I get a pop-up from Outlook saying that another program is tying to send mail, and you then have to click 'Allow for ? Minutes, and say yes. Is there any way to stop this pop-up? I dont mid if the email appears, and the user must clicjk 'Send', but also could not get the code for that. (I.e in the code below, I go myMailItem.Send - I tried myMailItems.Show, but this does not work.
This is the code I am using:
Dim response As String
response = MsgBox("Would you like to email Andrea advising of the the changes you have just saved?", vbYesNo)
If response = 6 Then
Dim User As String 'How do I get UserName ?????
Dim myOutlook As Object
Dim myMailItem As Object
Set myOutlook = CreateObject("Outlook.Application")
Set myMailItem = myOutlook.createitem(0)
myMailItem.Recipients.Add "<name@domain.com>"
myMailItem.Subject = "Production Schedule Changes"
myMailItem.body = "Hi Andi" & Chr(13) & Chr(13) & _
"Please see the latest changes in the Production Schedule" _
& Chr(13) & Chr(13) & "Regards"
myMailItem.Send
Set myOutlook = Nothing
Set myMailItem = Nothing
End If
-- modified at 5:30 Friday 11th May, 2007
|
|
|
|
|
Hello all,
I am cracking my brains for two weeks now on the following problem:
I have to update records on a table but i am now in the stiuation that i get the message "parameter @NummerNaam has no default value"
I have posted this question once, thanks for the tips.
I also read several documentation but still get stuck.
Below my code.
Thanks,
Bas
Dim command As System.Data.OleDb.OleDbCommand = New System.Data.OleDb.OleDbCommand("Update Agent" & _
" SET Nummer_Naam = @NummerNaam, Agentnummer = @AgentNummer, Agentnaam = @AgentNaam" & _
" WHERE(Agentnummer = @agentNummerOud)", dcAgent)
command.Parameters.Add("@NummerNaam", OleDb.OleDbType.VarChar, 20, "Nummer_Naam")
command.Parameters.Add("@AgentNummer", OleDb.OleDbType.Integer, 10, "Agentnummer")
command.Parameters.Add("@AgentNaam", OleDb.OleDbType.VarChar, 20, "Agentnaam")
Dim parameter As System.Data.OleDb.OleDbParameter = command.Parameters.Add( _
"@agentNummerOud", OleDb.OleDbType.Integer, 10, agentNummerOud)
parameter.SourceVersion = DataRowVersion.Original
command.Connection.Open()
command.ExecuteNonQuery()
command.Connection.Close()
|
|
|
|
|
You created four parameter objects, but you didn't assign values to any of the parameters. You can change that by doing something like this:
command.Parameters.Add(new OleDbParameter("@NummerNaam", OleDb.OleDbType.VarChar, 20, "Nummer_Naam")).Value = somevalue
command.Parameters.Add(new OleDbParameter("@AgentNummer", OleDb.OleDbType.Integer, 10, "Agentnummer").Value = somevalue
command.Parameters.Add(new OleDbParameter("@AgentNaam", OleDb.OleDbType.VarChar, 20, "Agentnaam").Value = somevalue
|
|
|
|
|
Hello Dave,
Thanks for the tip.
Now i get it.
I wil try this.
|
|
|
|
|
Hello Dave,
I tried, it works fantastic.
Thanks guru!!
|
|
|
|
|
Is it write to say that
an event is
private sub Form_Load(byval sender as system.Object,byval e as System.Eventargs)handes MyBase.Load
End sub
and functions is
private function abc()as string
end function
|
|
|
|
|
Nilish wrote: handes MyBase.Load
This bit means that this function will be called in response to an event.
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 )
|
|
|
|
|
private sub Form_Load(byval sender as system.Object,byval e as System.Eventargs)handes MyBase.Load
End sub
This Form_Load is a event handler for Load event. That means when the page load event fires this handler will be invoked.
Then, then function
private function abc()as string
end function
This is need to call as abc() for executing.
Gg
|
|
|
|
|
Private sub Form_Load... isn't an event. It's a procedure that handles an event. Any procedure can handle an event as long as it matches the signature of the event. A function returns a value while a procedure does not.
This is how you could define an event.
Public Event SomeEvent(ByVal sender As Object, ByVal e As System.EventArgs) The signature would be the parameters in the definition. I could also create an event like this.
Public Event AnotherEvent(ByVal someText As String)
In this case the procedure to handle this event would need to accept a string. Any procedure that does so can handle this event. It's good practice to create events that with the .net signature of (sender, e) where sender is an object and 'e' inherits from system.eventargs.
|
|
|
|
|
What is the meaning of List<AssemblyInformation>assemblies.Actually this code line belongs to C#.I am writing in this fomum because i wanted the equivalant syntax in vb.net.And one more thing what is the meaning of this line.
|
|
|
|
|
It defines a strongly-typed List of AssemblyInformation objects called assemblies . The VB.NET version would read:
Dim assemblies As New List(Of AssemblyInformation)
|
|
|
|
|
please can any one tell me :
how can i give access permission to Active directory user in vb.net
it's urgent
thankx in adv.
- Koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
koolprasad2003 wrote: how can i give access permission to Active directory user in vb.net
So, what permissions do you want to give this user? What you do is going to be very different for very resources. Also, which version of VB.NET are you using?
koolprasad2003 wrote: it's urgent
In a forum environment like this, the only thing that's urgent is if you have to go to the bathroom. Go ahead, we'll wait...
|
|
|
|
|
Hi-
I'm new here, trying to convert an asp project into asp.net, and tidying up as i go. I have a background of VB6, but have not coded for a long time. So have come up against many problems (so i expect to be active here for a while!)
And i am using the .net studio
The first query is trivial, it must be:
One problem i have is the adovbs.inc constants, which i have read ought to be in a class: but you cannot have public constants in a class, so to use enums.
I have found examples: but i cannot get them to work at all, however simple they look. Ideally, i will have a cls.ADOConstants that is separate to my clsDBRead: but even initally, i cannot get the code below (which is a class, clsDBRead) to see adUseServer, it is underlined in blue with "not declared"
---------------
Imports Microsoft.VisualBasic
Public Class Class1
Enum ADO_constants
adUseServer = 2
adUseClient = 3
End Enum
Public Function getKingdoms() As colKingdoms
MsgBox(adUseServer)
End Function
End Class
-------------------------
It has to be really trivial, but it is stopping my progress (to the next bit which is database access: i have controls bound to SQL statements no problem, but now i need to store the DB results in a dataset or class or collection: more fun! )
thanks -
aitch
--x---
|
|
|
|
|
aitch42 wrote: but you cannot have public constants in a class
Yes, you can.
aitch42 wrote: trying to convert an asp project into asp.net,
You'd do better to rewrite it in ASP.NET, there's no logical conversion possible, really.
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 )
|
|
|
|
|
thanks -but i couldn;t get them to work, and I also think that enums are more elegant than long lsits of constants anyway: so really, i'd like to know why the code i quoted cannot find the constant: especially as i want to remove that declaration and put it into a separate class.
So a class of Database access routines/methods/functions can access a class of public enums, which have grouped together public constants.
Oh, i ought not have said "convert", it *is* a complete re-write: my terms were wrong
I have 6 files so far, and will end up with about 60 i think, so i really want to get it right, right from the start. The asp version is a real mess, so I welcome the need to start again and build up a new clean project
If only i can get my public constants into a class of enums
It ought to be simple? I keep find samples that quote what I have done, but i get the "not-declared" wiggly blue line every time
aitch
--x--
|
|
|
|
|
Sorry, I see the problem. You can't just do the name. IF you have an enum called MyEnum and it has values of val1 and val2, you can't say val1, you need to say MyEnum.val1.
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 )
|
|
|
|
|
Hi, and thanks.
So i guess i really have a bigger question: WHat do you think is the best way to use constants in a VB.net app?
I have recently discovered i can use project-references to libraries as i did in VB, but could not do in asp: so the adovb.inc include can be replaced by a library/project reference rather than a need to copy in the constants into a class -
But for my own constants, where i thought enums would be a better way to structure their storage, i would then need to qualify every constant use which i don;t really want to do.
Given i will have 100's of constants, some of which make sense to be enums, (well, they are currently grouped together with sequential numbers), am I better off using enums that then need to be qualified, or constants?
Either would work.. but what is better?
Ditto, what is the *best* way to use adovbs.inc constants?
Though i have just ordered yet-another VB-2005 book, so maybe i had better wait till i have read that one before asking more queries... I find it very difficult getting back into a programming enviornment, that is "same same but different" to what i was familiar with a few years back
I need a work-environment and an expert and a template to get me started...
thanks -
aitch
--x---
|
|
|
|
|
I was doing the deployment in vb.net 2005 .
There are few things that i want to incorporate into my setup.
like my messages during the setup .As such .... I will not be able to do these implementation with the help of deployment wizard which is provided into the visual studio 2005
Can i do it manually .I want to start from the scratch.So which kind of knowledge should I acquire , so that i can accomplish this problem.
|
|
|
|
|
You need to write a C++ program that doesn't use .NET, so you know it will run on the target machine, which does the installation. You'll find it much easier to write a program which launches your MSI.
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 )
|
|
|
|
|
Christian , What is MSI
|
|
|
|
|
It's an installer program.
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 )
|
|
|
|
|