|
|
Creating the child form as you created the container. Just select the MDI Parent frmMain add another windows form and call it frmChild, or whatever you like to call it. That's it. Then do you coding from there.
bravo659
|
|
|
|
|
Hello
Can anyone tell me that "How can i attach BITMAP to a BUTTON Control". I just want to change the appearance of BUTTON in VB.NET.
Plz help me Urgently.
Regards,
Eshban
EsHbAn BaHaDuR
|
|
|
|
|
Do you mean like: adding the bitmap to the background image property in the property box?
or
programmatically like: Button1.BackgroundImage = Image.FromFile("Button1.bmp")
|
|
|
|
|
Hi, my boss ask me to develop an application that could share the calendar on the network. It is easy for them to browse the calendar when the director want to know which staff is busy or free before he set the appointment. Can any one give me some idea about this application? Should I use windows form application or ASP.NET application to build this application in my local area network?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
IMHO, by the requirements your listed, I'd do it in an ASP.NET app. That way you don't have to install anything on the clients and you can access the thing from any machine connected to the network.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to develop this application in ASP.NET too but the problem that I face is configuring asp.net in the computer. I have some expereince that I install IIS very properly (I also test it run properly by typing "http://localhost/" in the run dialog box) then I install VS.NET 2003. But when I create ASP.NET web application it display error message Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services I try to read and solve the problem by read Ms knowledge base but I could not solve the problem. Do you have any idea about that?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Hi, I have some problem while prepare to develope another application for the user. An application that I develop is relate to database. I'm not sure that whether I should use Vb.net or Vb6. I also not sure that I should use Ms access of SQL server. There 1300 record that prepare in be record in the database system. The record is the information the children and its relate other information such as family, study, health... Can any one give me some advice?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
IMHO, VB.NET and SQL would be the better choice. Even though VB6 is still around, there's lots of code you have to write in VB6 that already comes written for you in the .NET BCL.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
If I choose SQL server, I worry when I deploy an application to the client machine. I don't kown which is the best method that I sould deploy SQL server to the client machine.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Oh! You didn't specify this little tidbit. Are you saying that each client will keep it's own data locally? Each client machine will not share it's data with every other machine in a common database?
If this is true, then you could use MSDE or Access. In my opinion, MSDE is a better choice than Access. If you have to upgrade to a central SQL Server system, you won't have to rewrite your SQL code like you would if you used Access.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
According to my plan, I have to establish a SQL server database on the server. Then each client must store the information on that database because the information is not private. The information is the schedule for each person to set out when they are free or busy. It is easy for the other people (espeically Program Director) to check before they made a cotact whether it is possible or not (whether the person we need to contact is free or busy).
Do you think it is possible to do that? Using VB.NET and SQL server, but I'm worry at the time that deploy an application to the user. I'm not sure how to do that!!
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Wait a minute. You just switched to another application. Now your talking about a scheduling app where if someone arranges a meeting, they can first check to see if the attendee's schedules are free?
There's already off-the-shelf applications that can do that without you spending months of development time on it. It's called Microsoft Exchange Server and Outlook. Barely any deployment is necessary if the client machines already have Office installed.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Oh, I'm sorry I should reply to here[^] but I confuse. Ok anyway, I don't want to use exchange server and my boss don't want me to spend the money on this case. He just know that I could do or not, so I have to try hard to work around this problem.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Hi guys
I have used the FolderViewer from the VB.NET PowerPack but the network devices are not shown in it.
The FolderViewer uses the SHGetFolderLocation Function to get the contents of the "My Computer" Folder.
Public Shared Function MyComputerFolder() As ShellFolder
Dim result As Integer
Dim pidl As IntPtr
result = ShellApis.SHGetFolderLocation(IntPtr.Zero, ShellApis.CSIDL_DRIVES, _
Nothing, Nothing, pidl)
If Not result = 0 Then Return Nothing
Return New ShellFolder(pidl)
End Function
Why are the network devices not shown? I read in some different HelpFiles, that net devices may be shown. Under which circumstances are they shown?
Thank you for Help.
CU
Dave
p.s. I hope this isn't OffTopic
|
|
|
|
|
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
|
|
|
|