|
CSIDL_DRIVES
My Computer—virtual folder that contains everything on the local computer: storage devices, printers, and Control Panel. The folder can also contain mapped network drives.
CSIDL_NETWORK
Network Neighborhood—virtual folder that represents the root of the network namespace hierarchy.
|
|
|
|
|
Thanks for your answer.
In my "My Computer" Folder the mapped Network Devices are missing and I don't know why. In the Windows Explorer they are shown but they arn't in the Collection I get with the help of
CSIDL_DRIVES
I only get my local Drives.
So I'm interested under which circumstances my net devices are shown. I already read some Microsoft pages but it didn't help.
CU
Dave
|
|
|
|
|
|
Hi, I would like to know the ability of set up project:
- Between Package and deployment tool in VB6 and Install shield, which one is better?
- Between Setup and deployment project in VB.NET and Install shield, which one is better?
Please give me some comment because I have a problem with the project that I want to deploy to the user.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
I have an MDI Parent form, I am trying to display an image on the background, I need the image centred in the middle of the screen, and not repeating.
The BackgroundImage of the form just repeated the image when the form was resized, so I tried putting a PictureBox on the form only to find that any opened forms show under the image???
Thanks,
Craig
|
|
|
|
|
here's one way,
MDI Resize Background picture
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2588&lngWId=10
|
|
|
|
|
Does anyone know if its possible to use a custom class as a property for a custom control?
i.e
When you set the forms location in the property editor, it has a little cross next to it, which is essentially the a Point Class.
Point.X
Point.Y
I have tried to do this but it just grays out my property if i use a non standard class.
I combatted this by inheriting from ComponentModel.Component, which enabled me to type in the fields but the propertys set code doesnt get called for some reason.
Thanks for your help!
|
|
|
|
|
hi guys
i would like to code in vb.net so that all mondays of a year would be put in one combo box.
could anyone give me a hint? and how to code it.
thanks in advance
|
|
|
|
|
I had a quick go at this and my VB is a little rusty, so there is probably a more optimised way:
Const MondayDayOfWeek As Int32 = 0
Dim dtCurrent As DateTime = DateTime.Now
dim currentDayOfWeek as Int32 =Ctype(dtCurrent.DayOfWeek , Int32)
Dim TodayMondayDiff As Int32 = currentDayOfWeek - MondayDayOfWeek
Dim tGetToMonday As New TimeSpan(TodayMondayDiff, 0, 0, 0)
Dim dtt As DateTime = DateTime.Now
dtt = dtt.Subtract(tGetToMonday)
Do While (dtt.Year = dtCurrent.Year)
ComboBox1.Items.Add(dtt.ToLongDateString())
dtt = dtt.Add(New TimeSpan(7, 0, 0, 0))
Loop
Hope that at least gives you a starting point.
UPDATE:
Oops, that's for Mondays until end of year.
Try this instead:
Const MondayDayOfWeek As Int32 = 0 ' Monday dayofweek = 0
Dim dtStart As DateTime = New DateTime(DateTime.Now.Year, 1, 1)
Dim currentDayOfWeek As Int32 = CType(dtStart.DayOfWeek, Int32)
Dim TodayMondayDiff As Int32 = 0
If (currentDayOfWeek > 0) Then
TodayMondayDiff = currentDayOfWeek - MondayDayOfWeek
End If
Dim tGetToMonday As New TimeSpan(TodayMondayDiff, 0, 0, 0)
Dim dtt As DateTime = dtStart
dtt = dtt.Add(tGetToMonday)
Do While (dtt.Year = dtStart.Year)
ComboBox1.Items.Add(dtt.ToLongDateString())
dtt = dtt.Add(New TimeSpan(7, 0, 0, 0))
Loop
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG blog:: brokenkeyboards "It'll be a cold day in Hell when I do VB.NET...", Chris Maunder
|
|
|
|
|
thanks simon ... i've got it ... thanks a lot
|
|
|
|
|
if you wanted to do it in a comically stupid manner:
Dim i as long
For i = 1 to 52
Combo1.AddItem "Monday"
Next
You could be even more adventurous
For i = 1 to 52
Combo1.AddItem "Monday " & i
Next
Sorry Couldn't resist
"If i was king cigarettes would be free."
|
|
|
|
|
Hi,
I have a large file in one of my projects, that behaves as if DebuggerStepThrough is set. But I have removed every DebuggerStepThrough attribute from the file. I want to be able to step through the code, but it won't even stop when I set breakpoints. If I use the Stop command, I get a message saying "There is no source code available for the current location."
This file is not in my main project in the solution, but I can step through code in other non-main projects. Does anyone know any other settings to check, or have any idea what could cause this problem?
Thanks
David
|
|
|
|
|
Check to see that you Have Not declared a variable named 'System' as string. If you have, the class will look for methods in that variable, not at the namespace level.
In the IDE Menu go to: Project -> Properties -> Common properties -> Imports and check that "System.Diagnostics" is in the System Imports Box.
Every form and user control should have a line like this in the " Windows Form Designer generated code " region.
<system.diagnostics.debuggerstepthrough()> Private Sub InitializeComponent()
|
|
|
|
|
let's try that again, the line should read:
Every form and control should have a line like this in the " Windows Form Designer generated code " region.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
|
|
|
|
|
hi
the type "any" in API make error in VB.NET so what is best type that correct this problem
|
|
|
|
|
take a look here:
Windows APIs
http://www.mentalis.org/vbtutor/vbdotnet.shtml
|
|
|
|
|
|
Find the Last Day of a Month
http://abstractvb.com/code.asp?A=965
|
|
|
|
|
When trying to use Ctype to convert an object to a custom class, i have encountered a problem.
Even though when i call the getType method , im told that both the object that im trying to convert and the destination variable are the same type, however when i call the ctype function, i get a Specified Cast not valid message.
Any Ideas?
Thanks for your help!
|
|
|
|
|
:(Hi All! I am Kunal Mukherjee from Kolkata(Garia Station), India. I am facing a problem while coding in VB.Net. If you can PLEASE HELP ME!! Here goses the problem:
Suppose I am binding all the controls on my form to a dataview. But when I want to add a new record or if I want to mofify records and then update the datasource(database) then i am facing a problem. The dataset is getting updated but the datasource is not. I am using the dataadaptor's update method. But in all examples I found that if they are using dataview then they are using sql statements for update and insertion of records. What I want to know if I can use the update method of dataadaptor's to update the datasource, even if I use the dataview object. But if I go as per logic then whatever I have done is correct. Because changes made to the dataview automatically gets reflected on the datatable it is attached with. so when I use the update method of the dataadaptor then the records whose state has been changed should get updated in the datasource. Well that's as per my knowledge is concern. If you know how to solve this problem then please help me.
Also tell me that do I have to write sql statements for INSERT, UPDATE, or DELETE through the dataadaptor.
|
|
|
|
|
hi all, could you tell me how i can make a treeview to be right to left as in arabic, i work on vb6.0 hope its easy to be done
Thanks alot
Metal Man
|
|
|
|
|
The easiest way to do it in VB6 is to use a 3rd party component. Although the TreeView control does have a RightToLeft property (in VB.NET, not available in VB6), the TreeView is drawn left to right, while the test is draw right to left. It makes the control a bit difficult to read in R-t-L languages.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi man, thanks alot but i dnt understand what do u mean by 3rd party, at the end do u mean that i cant make it right to left on vb6
Thanks alot
Metal Man
|
|
|
|
|
"3rd party" means a control written by someone else besides yourself or Microsoft.
It could be done in VB6, but not easily. The technique is very poorly documented, unless your using VB.NET.
Your best bet is to use a control that's already been written and has support behind it if you run into problems.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|