|
thanks
Could you please help me with the code since I have very less idea about the process class an all.
In order to maximise or bring the already running calc/any process to front
thanks
-----------------------------
I am a beginner
|
|
|
|
|
I'm not writing your code for you.
Check out the Process.GetProcessesByName method.
|
|
|
|
|
Dear all
i have this problem keeps coming often using inet control 12002 time out
can any body give me the solution .its very urgent...
i am using the inet control to download the data from remote server..
the main intention is to download the database rows from remote server to my local system which is in access database
plzzzzzzzzzzzzzzzzzzzzzzzzzzzzz help me
thanks in advance
|
|
|
|
|
Are you saying that you're trying to use an Access database on a remtoe machine, acrossed the Internet?? Since Access is a file based database, this is a very high security risk!
|
|
|
|
|
To add to Dave K's point. I have used Access over a company intranet and found the performance pretty poor even with dedicated links. Over the internet I'd think it's a non-starter.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
how to create codeing for search files in computer for using language for vb.net.
|
|
|
|
|
Simple:
Install visual studio
Create new project
Start coding.
More serious answer:
Look at the system.io namespace
system.io.file
system.io.directory
system.io.path
Without more information nobody can truly give you an answer.
|
|
|
|
|
Hi,
I would like to know if there is a possible way to set the folder name as the newly created file name??
I have a folder which contains n number of files.
I have appened all those files as single a new file.
Now I want to name that file with the name of the folder.
Any means to do it?
Thanks in advance
|
|
|
|
|
Check out FileInfo.Directory property. Might help you.
जय हिंद
|
|
|
|
|
Have you tried just creating the file with the same name as the folder in your program?
E.g. if input folder is C:\myStuff\myTextfiles\ then output file is C:\myStuff\myTextfiles i.e. no trailing \.
Don't know if it will work but worth a shot.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
Hi David,
My input folder is got from the FolderBrowserDialog.
The input folder path is not hardcoded.
In that case how to manage?
|
|
|
|
|
Use SelectedPath property and extract string after last "\".
जय हिंद
|
|
|
|
|
In that case just try using the SelectedPath from the FBD for both input path and output file - IIRC FolderBrowserDialog returns path without the trailing \.
As I said don't know if it will work, but don't see why not (you can have a file and folder with same name in Windows).
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
I think this piece of code might help:
Dim test As String
'This will get the Folder name from the selected path.
test = FileIO.FileSystem.GetName(FolderBrowserDialog1.SelectedPath)
'So if you had a folder path of C:\Program Files\SomeFolder\Program1 selected the above command should 'display Program1
I hope this helps.
|
|
|
|
|
Hi all,
Is it possible to create our own FolderBrowserDialog???
I have created my own MsgBox.
Code:
Sub MyMessageBox1(ByVal strMessage As String, ByVal imgImage As Image)
Dim frmMsgBx As New Form
Dim pbxMsgImage As New PictureBox
Dim lblMsgText As New Label
Dim btnMsgOK As New Button
With frmMsgBx
.MinimizeBox = False
.MaximizeBox = False
.Width = 50
.Height = 20
.AutoSize = True
.BackColor = Color.MediumAquamarine
.Text = "Saved"
.StartPosition = FormStartPosition.CenterScreen
End With
With pbxMsgImage
.Parent = frmMsgBx
.Left = 12
.Top = 12
.Width = 50
.Height = 50
.Image = imgImage
.SizeMode = PictureBoxSizeMode.StretchImage
End With
With lblMsgText
.Parent = frmMsgBx
.Left = 100
.Top = 20
.Width = 300
.Height = 20
.Text = strMessage
.TextAlign = ContentAlignment.MiddleCenter
End With
With btnMsgOK
.Parent = frmMsgBx
.Left = 175
.Top = 45
.Width = 75
.Height = 23
.Text = "OK"
.DialogResult = DialogResult.OK
BackColor = Color.MediumAquamarine
End With
frmMsgBx.ShowDialog()
Button3.Enabled = False
End Sub
/pre>
In the same way is it possible to create a new FolderBrowserDialog???
Thanks in advance
|
|
|
|
|
Yes, you can create your own folder browser dialog.
जय हिंद
|
|
|
|
|
Within a VB6 form frmMain with a button that have the following click sub
Dim Ace As Object
Set Ace = CreateObject("Access.Application")
Ace.OpenCurrentDatabase "c:\test.mdb", False
Set Ace = Nothing
unload frmMain
The test.mdb opens perfectly but it is not full screen. How can i open it with full screen?
Thanks in anticipation.
|
|
|
|
|
Try this ...
' Maximize the Access window:
oAccess.RunCommand(Command:=Access.AcCommand.acCmdAppMaximize)
I got it from the following article:
How To Automate Microsoft Access From Visual Basic .NET
http://support.microsoft.com/kb/317113[^]
|
|
|
|
|
Thanks mate
it works with a slight changed for VB6 ie
oAce.RunCommand acCmdAppMaximize
Cheers!
|
|
|
|
|
Hi Everybody,
My question is regarding using the LZO.NET library in a VB.NET project.
The code below is a small class "tester" which decompresses a Byte().
The problem is that the function is returning only ""
What is it that I could be doing wrong?
Abhay
===========================================================================================
Imports System.Net.Sockets
Imports System.Text
Imports System.IO
Imports System.Net
Imports System.Threading
Public Class Tester
'Here bteReceiveData is a Array of Bytes that are compressed using LZO.
Public Function Decompress(bteReceiveData() As byte) As String
oLzo = New Simplicit.Net.Lzo.LZOCompressor()
Dim cDecompressed As String
cDecompressed = Encoding.Unicode.GetString(oLzo.Decompress(bteReceived))
return cDecompressed
End Function
End Class
===========================================================================================
Abhay
StanSoft
|
|
|
|
|
Your best bet would be to find a discussion forum that uses that library, or contact the people who wrote it.
|
|
|
|
|
I have a application which was composed by VB 6.0 and SQL server. It is running well with all Desktop Laptops XP profession.
But now when I have a new laptop downgraded from Vista to XP, then the application does not work.
The message is : "Error 419: Permission to use object denied"
Could you please show me how to solve this problem.
Highly appreciated for your support.
Chau Ngoc Vo, Software develope
|
|
|
|
|
What you do depends on the object you're using. There is no "one fix for all problems" for this.
|
|
|
|
|
Hi,
I have create on button in Flash.
When i click that button. It will invoke one of my forms or let's say bring me to form2.vb .
Can any one guide me how to do this?
Thanks in advance.
|
|
|
|
|
Last I checked, you can't. The button clicks in the Flash "document" do not propagate up to your form. VB.NET will never know the user clicked the button.
|
|
|
|