|
Replace Environment.NewLine with a space.
---
b { font-weight: normal; }
|
|
|
|
|
yes, a dll can be changed to an exe, if we provide it the main entry function
I found this answer at some site.Is the about statement true.
If yes please explain.
Thanks
|
|
|
|
|
Only if you have the source code and can add the appropriate code to make the .EXE you want, either a console app or a Windows Forms app.
If you don't have the source for the .DLL, it's impossible to do. You're only option is to write an .EXE wrapper application around the functionality exposed by the .DLL.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Sir,
In C++ exe we knows that there is a main() .So Window knows where to execute the code in the c++ output exe, I mean there is a starting point , that is the execution will take place from the main().Now my queston is , In the Vb.Net What is the starting point.I mean From which point the exe will execute the code.
Thanks.
|
|
|
|
|
|
I'm like at the Jr. level so I'll take a shot. It sounds like you named an object wrong. Check your naming conventions and see if you addressed the correct obj/control. Good luck
David
|
|
|
|
|
One of your members doesn't support something that's after it. What's the rest of the error message? It'll tell you which method is failing. All you have to do is look back one period and you'll find the object that doesn't support the method you're trying to call.
For example, it's possible that the Sections collection, which returns a Session object, doesn't have a Controls property. This is just an example. Since you only supplied the one line of code, it's impossible to tell what these objects are.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
batado yaar.
In pc emulator how we can write text files in vb.net?
plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Vikash Yadav
|
|
|
|
|
At CP we post only in English.
Thanks!
|
|
|
|
|
Hi,
i want 2 know that how i can write text files in emulator in mobile application in vb.net and how i can read text files as well.I need this answer as quickly as possible.
Your Friend
Janardan-09891383837
Vikash Yadav
|
|
|
|
|
You might want to ask this in the Mobile Development forum. I don't do mobile apps, yet anyway, but it should be no different than doing it on a normal desktop machine.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hello
how to use access application in the vb.net to build database and to make any operation on it .
thank you
sunset
|
|
|
|
|
That's a very vague question. Please be more specific.
|
|
|
|
|
Can someone please help me, I want to make glass buttons in vb.net 2005 express, Were do you start and how do you do it.
How will you spend eternity - Smoking or Non Smoking?
|
|
|
|
|
You would have to change your Windows Theme for that. Even then, the buttons wouldn't be the same on another computer.
|
|
|
|
|
At the very least, you'd have to supply your own code to draw the buttons. You'd have to inheirt from the Button class and override the Paint method, supplying the drawing code to draw the button in both the raised and pushed states. This has the added advantage of not being dependant on the machine having a theme installed.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
This might see might seem like a silly question, but I have never deployed a VB.Net application. My application has a database and the connection string
for that database is
"Data Source=.\SQLEXPRESS;AttachDbFilename=
C:\Documents and Settings\Me\My Documents\Visual Studio 2005\Projects\test1\test1\Database1.mdf;
Integrated Security=True;User Instance=True"
Now when I go to deploy my application and put it on another persons computer will the database still be there
even though the connection string ties it to the My Documents folder on my C: drive?
|
|
|
|
|
It will still be on your machine - yes, but not on the user's machine
Why don't you use some non user specific path like D:/Data or even better, store it in a folder under your application like
C:/program files/app name/Data
And in app.config, use "data\Database1.mdf" as the DB name and pre fix that with the application path?
When you are creating the installation package, you can instruct the installer to create the directory named "Data" under your application path and copy the database to it.
Hope this helps.
Shreekar
http://shreekarishere.blogspot.com
|
|
|
|
|
hi,
how do i rollback the actions that are performed in the install and uninstall methods of Installer Class?
do i use custom action for Rollback? or do i write the customized code for it in the Install/Uninstall methods?
my code is as below :
<runinstaller(true)> Public Class Installer1
Inherits System.Configuration.Install.Installer
Dim dirName As String
Dim regAsmPath As String
Dim args As String
dirName = Me.Context.Parameters.Item("DIRNAME")
regAsmPath = Me.Context.Parameters.Item("REGASMPATH")
args = "/tlb: Travelers.CS.CLREL.FTP.tlb " & Chr(34) & dirName & "Travelers.CS.CLREL.FTP.dll" & Chr(34) & " /codebase /silent"
Dim processStartInfo As New ProcessStartInfo(regAsmPath)
processStartInfo.Arguments = args
processStartInfo.WindowStyle = ProcessWindowStyle.Hidden
Process.Start(processStartInfo)
End Sub
i am using the installer class to do the registration of dlls and creation of type library.
what i want to do is, in case there is some exception in Process.Start() or if the RegAsm.exe is unavailable/corrupt etc. then the whole installation process must be rolled back.
hope i am clear in explaining my problem here
plz help.. its urgent!
thanx.
Najmun
|
|
|
|
|
how to insert the pic into the database table..
str_insert = "INSERT INTO SIS_TeachingStaff VALUES('TSMT2','V.RAJANIKANTH','LECTURER','TEACHING STAFF','Msc(Maths)','" & Emp_pic.Image & " '" '" & CByte(Me.opendialogbox.FileName.Length) & "' "
cmd = New SqlCommand(str_insert, conn)
cmd.Connection = conn
cmd.ExecuteNonQuery()
error is:operator '&' is not defined for types 'string' and 'system.drawing.image'
|
|
|
|
|
The error appears to be generated by a problem with the quotes between ...Image and CByte...
|
|
|
|
|
As pointed out, the error is because you are trying to concat a string and an image. What you need to do is convert the image into byte array and insert it into the database field. If you google for that, you should be OK.
Shreekar
http://shreekarishere.blogspot.com
|
|
|
|
|
sreekar please give code for converting the image into array byte...pl urgent.
|
|
|
|
|
I am trying to add a month view calendar that will display the time and description of the event within each day (using VB.NET 2005). My current attemt is to draw a series of rectangles and place text within each. I am able to create my calendar, put the day inside each box...so the calendar is there. My problem is placing a label, text, etc. within each box to display the event. I would also need to be able to double-click the item and open a form containg the detail for the item. If someone could point me in the right direction (even if it means starting over and taking a new path) I would greatly appreciate it.
Many thanks in advance.
-- modified at 21:55 Monday 16th October, 2006
|
|
|
|
|
You can create them dynamically in code. Declare the label outside of any subs using the "WithEvents" keyword - this will allow you to attach a double-click event to the label through making use of the AddHandler method.
You will have to add your own code to determine how many labels you'll need, I've just used a loop to demonstrate.
Private WithEvents lblEvent As Label
Private Sub MySub()'dynamically add labels
Dim i As Integer
Do Until i = 30
lblEvent = New Label
lblEvent.Text = "Event Label " & i.ToString
AddHandler lblEvent.DoubleClick, AddressOf lblEvent_DoubleClick
'add the label to a control
Me.Controls.Add(lblEvent)
Loop
End Sub
Private Sub lblEvent_DoubleClick(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles lblEvent.DoubleClick
'add processing here
End Sub
|
|
|
|