|
Hi,
great post!
1. this clearly is NOT a VB/VB.NET question, hence wrong forum.
2. this is way too long
3. did you care to check your post? all < and > signs are missing, hence no one can
copy and test your code, assuming anyone would be inclined to do so.
|
|
|
|
|
Hello,
I'd like to ask for a little help. I'd like to have code to get all the icons from the system tray and interact with them. If anyone can give me some guide or some sample it would be a great help. I'm using vb2005/2008.
Thanks a lot;
GQ
|
|
|
|
|
Hi,
I did an article on systray icons; it is C# code but the same can be done in VB.NET
|
|
|
|
|
Yeah, i saw that but had troubles when trying to code it in vb.net. Is there any way to create a class from your sample app and give me the source. It would be really appreciated and of course if you want i give you the credits whenever i use the code.
|
|
|
|
|
Hi,
AFAIK you could take the exe file and use Reflector to turn it into a VB.NET source file,
then change whatever you want to change.
|
|
|
|
|
i receive errors concerning the string builder over here:
Public Function ReadString(ByVal size As Integer, ByVal ptr As IntPtr) As String
Dim localAddress As New StringBuilder(size)
|
|
|
|
|
no more help?
well, thanks... :S
|
|
|
|
|
i am making setup vb application. i want to add crystal mearge module using by install sheild express.
|
|
|
|
|
I suspect you need an install shield express forum, and I suspect they will tell you to buy install shield.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi
i want to save the excel file sheet in sqlserver 2005 via asp.net
pls respond it immediately................
spriya
|
|
|
|
|
Shanmugapriya.G wrote: i want to save the excel file sheet in sqlserver 2005 via asp.net
Please post to the asp forum then
Shanmugapriya.G wrote: pls respond it immediately
Why? Where is your code that doen't work. The idea is you write some code, and if you really cannot figure out why it doesn't work, and cannot find an answer from Google, THEN post it here and someone will try and assist. Otherwise, employ a coder.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
i am a bigginer so i want to know how can i let someone download a file from my site via VB.Net
N.Asgari
|
|
|
|
|
use following statement
my.Computer.Network.DownloadFile("www.YourWebSiteAddress.com/FileName","c:\")
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hi ...
Here i am working on the windows application with vb.net coding.Right now i am giving the navigation to using full path like ("C:\abc\abcproject\user.html") but i wanted to give up from my project ..all my folders which are required path in my project .like user folder contains user.html....can anbody help me to solve this problem..
Your's Loving
Charan
|
|
|
|
|
use following statement
Dim Path As String<br />
Path = Application.StartupPath<br />
or<br />
Path = CurDir()<br />
above statement return the path of the folder which contains assembly or EXE.
Hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hi Rupesh Kumar Swami,
Thanks for alot.It's working.
Charan
|
|
|
|
|
Please don't post to multiple forums. I answered this in the Windows Forms forum, which I also suspect was the wrong place as it looks like an web programminmg question - .html is generally web pages!
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi..
It's Ok will not do next time..
Charan
|
|
|
|
|
Check box column getting unchecked when I am sorting column in datagridview.
Can any one help me?
Regds.
Suman
Imports System
Imports System.Data.SqlClient
Public Class Form1
Dim str As String
Dim con As SqlConnection
Dim da As SqlDataAdapter
Dim ds As New DataSet
Dim dt As DataTable
Dim dv As DataView
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
str = "Integrated Security=SSPI; User Id=sa;Initial Catalog=MAS08; Data Source = suman"
con = New SqlConnection(str)
con.Open()
str = "select * from unitmaster"
da = New SqlDataAdapter(str, con)
da.Fill(ds, "unitmaster")
dt = ds.Tables(0)
dv = New DataView(dt)
Dim colCheckbox As New DataGridViewCheckBoxColumn()
' Size the column width so it is wide enough to display the header
colCheckbox.AutoSizeMode = DataGridViewAutoSizeColumnMode.ColumnHeader
colCheckbox.ThreeState = False
colCheckbox.TrueValue = 1
colCheckbox.FalseValue = 0
colCheckbox.IndeterminateValue = System.DBNull.Value
colCheckbox.DataPropertyName = "Checkbox"
colCheckbox.HeaderText = "Checkbox"
colCheckbox.Name = "Checkbox"
'colCheckbox.ReadOnly = True
dgv.Columns.Add(colCheckbox)
dgv.DataSource = dv
End Sub
End Class
|
|
|
|
|
So your checkbox works up to the point of when you are looking at the data in your datagrid and you manually sort the data, you lose your check mark that was placed in the check box?
If that is the case, then you most likely will need to remove the functionality of your data grid (cant be manually sorted or resized etc.etc) and write your own sorting function that scans the check box's to see if they have a check first before you allow your datagrid to resort.
|
|
|
|
|
Anyone ever done reading through a particular folder using app config??
|
|
|
|
|
Sorry, I don't understand your question. App.config is just to hodl your user/application config paraneters. You can store the folder you want to scan in there, the same as any other config setting.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Ya.. That is the question i do not know how it actually works. I refer to my colleague project i saw him using app.config to scan the folder but i dun understand how he do it. I have another way to scan a particular folder but my boss wanted me to use app config. By looking at my colleague project i knows wat to type in the app config tab to get wat i wan but i do not know wat code to type to call out the code i key in on my app config tab to scan the folder on my main source code tab. Hope u understand i know is a bit blur but tis is the best i can explain.
|
|
|
|
|
Assuming you have stored the folder you want to scan as an application setting called FolderToScan in app.config, you read it like this
Dim lookin As String = My.Settings.FolderToScan
App.config is just a place to store suer and application settings, it does not do anything.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
thanks.. So wat u mean is that by using those code i am able to browse the folder...?
|
|
|
|