|
Hi..
i want my application to run from the right click menu of desktop... From where we refresh our desktop..that one.
Is there any installer that can do this... or shud have i to first write code for this
and call that application... during the installation of my default appplication.
I am using vb.net 2005
Plz help me out... need it urgently
|
|
|
|
|
Maybe this is a dumb question but why would you want to do such a thing?
|
|
|
|
|
I am sorry to say this, but you most likely have no option of doing so unless you patch(modify the resources) of explorer.exe. I suggest you rather add your program to the control panel. One way of doing this is by purchasing a third-party program that adds programs to the control panel. Another free option is to download this VBScript file. You need to edit it, because it was originally for placing TweakUI to the control panel. Please mail me with any questions or comments.
Best Regards
Richard Faulkner
|
|
|
|
|
I have one check box in a table.On selecting that check Box,All the check boxes in the grid view should get checked. The code is as follows:
Protected Sub cboApprove_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) handles cboApprove.CheckedChanged
Dim intCount as Integer
if cboApprove.Checked=True
for intCount=0 to gvSharedItemsList.Rows.Count - 1
Dim row as GridViewRow = gvSharedItemsList.Rows(intCount)
Dim cb As CheckBox = CType(row.FindControl("chkSelect"), CheckBox)
cb.Checked =True
next
End if
End Sub // This is not working
If the write the same code under button,then the click of that button,all the check boxes in the gridview are getting checked.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim intCount as Integer
if cboApprove.Checked=True
for intCount=0 to gvSharedItemsList.Rows.Count - 1
Dim row as GridViewRow = gvSharedItemsList.Rows(intCount)
Dim cb As CheckBox = CType(row.FindControl("chkSelect"), CheckBox)
cb.Checked =True
next
End if
End Sub // this is working
But the same thing is not happening when i checked the checkbox present in a table. In short, cboApprove_CheckedChanged is event is not firing... Please help me.....
Thanks and regards ,
Shyam
|
|
|
|
|
Hi there,
Can somebody tell me the utility of marshalas in vb.net 2.0.I mean for what purpose i should use it.
Thanks
|
|
|
|
|
This is used to tell the .NET CLR how to marshal arguments back and forth when doing interop between managed and unmanaged code, such as when calling into the Win32 API. You can find out more by reading the .NET Developers Guide - Interoperating with Unmanaged Code[^] section.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
ENvironment.
VB.net, SQl Server 2005, Visual Studio 2005, VB.net Stored procedures. I have defined a
public class foo
public index as long
public fname as string
public lname as string
end class
A sub wants to use this class as folows:
Public Shared sub doit(byval fname as string, byval lname as string)
dim myrecord as foo
myrecord.fname = fname
visual studio and vb tell me that my record is not initialized and may throw an exception if it is used without being
initialized. It does throw an exception. How do I initialize myrecord. I have tried
public class foo
public index as long = 0
public fname as string = "xxx"
public lname as string = "xxx"
end class
The compiler did not complain, but it did not solve the problem.
rkj
|
|
|
|
|
try this one
dim myrecord as new foo
this may help u.
|
|
|
|
|
That did work. Thank you very much!!
rkj
|
|
|
|
|
Greetings,
Currently im doing an invoice software in which it will automatically save all the data entered by the user into excel file. Then when the user click 'SAVE' button, the excel file will be saved. However, the size of the saved file is very big which is 1.46MB, but if the data is inserted manually into excel (without using the software), the size is only approximately 60kB. Does anyone know what's the problem? Please Help...
Your help is greatly appreciated. Thank you in advance.
|
|
|
|
|
u r using window or web application?
|
|
|
|
|
im using window
sory for the insufficient info juz now...
|
|
|
|
|
Hi, Im trying to get a VB.NET program to create a shared folder. I can
make the folder but I cant figure out how to make it as a shared
folder. Also I will want to set the permissions on the folder and on
the share. How can I do this using VB.NET code?
|
|
|
|
|
Use this,System.Security.Permissions so that we can set the Permission on the folder and also on the Sharing.
Regards,
Satips.
|
|
|
|
|
give me please for expamle using system.security.permissions
|
|
|
|
|
|
Thanks for ur kind attention.
But if u please explain with the help of an example how to create the shared folder.example means to say.... , tell us something about which classes should be used to create a shared folder on my machine or at the remote machine.
The link u provided... , did not have an enough infomation.
Thanks again Satips.
|
|
|
|
|
I want Get data 1 Colums to array
|
|
|
|
|
please elaborate ur query
|
|
|
|
|
First, the amount of description your porvided for your problem created lots of problems for the people who are here to help. Better watch that out in future.
Loop through all rows and columns in a dataset and put them in array.
Mubashir
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|
|
I am trying to get some detailed information about a user's computer, but I am having trouble finding any info for VB.Net. What I'm trying to find is the Static IP Address, Subnet Mask and Mac Address of a computer. I have pretty much come to the conclusion that this cannot be done with .Net, but with the Win32 API instead. Which would be best?
Also, I found a registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Reinstall that holds info about a pc's hardware. Is this key a standard source for hardware? Or is there a better way to get this info?
Thanks for the help!
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
MatrixCoder wrote: What I'm trying to find is the Static IP Address, Subnet Mask and Mac Address of a computer
Does this registry key exist on your computer:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Have a look through this key and it has most of the info you require.
If you can't find this key then:
Search the registry for your IP Address and it will eventually find the info you require.
Have you searched MSDN?
Hope this helps
|
|
|
|
|
It can be done in VB.NET. All you need to do is use the classes in the System.Management namespace and the Win32_NetworkAdapterConfiguration WMI class. Docs on the Win32_NetworkAdapterConfiguration[^] class.
I think you'll be a bit surprised about how many adapters are really there and that a single adapter can have multiple IP addresses.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Thanks Dave, this is just what I needed!
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
I have a project that is an update to a VB6 project. In the old VB6 code files were opened as a number and then when written to it was done like this.
Open strFileName For Output as #55
Print #55, strInputValue My question is whether or not the file was appended to or written over when opened like that? I know how to append to a file currently but I need to make sure I am reproducing the same behavior before I go doing something different with the current new code.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|