|
you're problem is the folowing:
today we are the 31th and while you don't display the day the control still has it in his 'memory'
so when you try to go to a month with only 30 day's (for instance june) you are actualy trying to go to '31 june 2007' and that date doesn't exist so he can't display it and gives you're error.
If you really don't want to show the day then I suggest you catch the 'valuechanged' event and check the day
if day=31 then
if month = june then
day = 30
end if
end if
hope this helps
|
|
|
|
|
Can anybody tell me how to make the startup form invisible. The following code snippet in the included MSDN help displays the form for a while and then the form is closed automatically.
' Visual Basic
Sub Main()
' Instantiate a new instance of Form1.
Dim f1 as New Form1()
' Display a messagebox. This shows the application is running,
' yet there is nothing shown to the user. This is the point at
' which you customize your form.
System.Windows.Forms.MessageBox.Show( _
"The application is running now, but no forms have been shown.")
' Customize the form.
f1.Text = "Running Form"
' Show the instance of the form modally.
f1.ShowDialog()
End Sub
reman
|
|
|
|
|
f1.hide = hides the form (however when the form does an new action after the hide it will apear again)
so you might want to use
f1.visible = false
you can put this code in the load but if you want to make sure you're form is never displayed it might be beter to do it in the activated event
hope this helps
|
|
|
|
|
Hi,
this is how I do it (example is C#):
[STAThread]
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Form1 form1=new Form1();
Application.Run();
}
So don't hand over your main form to Run() since that would show it, no matter
what you do to the form's properties.
And be careful to deal with all normal exits PLUS the sessionending stuff
(which normally Run would handle).
|
|
|
|
|
Hi,
It seems that your are trying to build a SplashScreen, if this is what you want:
Go to Project > Add New Item > Splash Screen ... add your touches + Coding
Go to Project > ProjectName Property > Application tab > Splash Screen Drop Down List and select the added form (this will be launched first)
hope this helps
|
|
|
|
|
|
hi all
i need to use a slider on the ruler control but i have no idea how to do that will some one help me on the same
any kind of help will be greatful
thnx in advance
|
|
|
|
|
|
|
to use it in vb.net you will have to convert the code to vb.net
to make a new control for you're personal use make a usercontrol (the same way you would make a new form just choose usercontrol)
when you build you're project the usercontrol will apear in the toolbox
|
|
|
|
|
hello frnds,
i can share a folder using VB.Net, but can i add a groups/User to shareing ????
if any one have code then please tell me.....
any helpful link...???
thankx in advance.
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
You will need the following Imports statements in your class:
Imports System.Security.AccessControl
Imports System.IO
Imports System.Reflection
Then, the following code would add the "Users" Group to the Sharing on the Folder containing your Application. For other folders just set the appropriate value for the Location variable and set the user variable to the group or user you wish to add.
However, a cautionary note. You will need Local Admin rights to run this code.
Try
Dim user As String = "Users"
Dim location as String = Path.GetDirectoryName(Assembly.GetExecutingAssembly.Location)
Dim rule As FileSystemAccessRule
rule = New FileSystemAccessRule(user, _
FileSystemRights.FullControl, _
InheritanceFlags.None, _
PropagationFlags.NoPropagateInherit, _
AccessControlType.Allow)
Dim security As DirectorySecurity = Directory.GetAccessControl(location)
Dim modified as Boolean = false
security.ModifyAccessRule(AccessControlModification.Set, rule, modified)
rule = New FileSystemAccessRule(user, _
FileSystemRights.FullControl, _
InheritanceFlags.ContainerInherit OR InheritanceFlags.ObjectInherit, _
PropagationFlags.InheritOnly, _
AccessControlType.Allow)
modified = false
security.ModifyAccessRule(AccessControlModification.Add, rule, modified)
Directory.SetAccessControl(location, security)
Catch ex As Exception
End Try
I used this in a Custom Installer Action, but now I have changed to using WIX to write my installers, which has custom actions to set folder security built in.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
|
|
|
|
|
hey, thankx many for your great help
but hwo can i use this code ???
means where should i give the folder name to which i am going to add the group
please help....
thankx once again
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
I wana make an application that should recognise voice and start the appropriate exe file (programe). How can i do this? I m a beginner in voice recognition. Don't know what to do? Have collected material on SAPI 5.1. Any code example ??? for novice? or material to read?
|
|
|
|
|
Voice recognition is a huge topic. There's a Microsoft SDK, is it SAPI ? either way, those docs are your best bet for more info.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i have a program which is to un at the client end. currently what i am doing is installing the .net framework an then installing the application.Is there any way to integrate the .net framework with the application so that there does not occur any need to install the .net framework manually.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
No - best you can do is an MSI which knows to download and install .NET seperately, or a C++ installer that runs the .NET installer, then runs your MSI
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi, I developed an application that will display an information on the form. But the information that I prefer to display contain a merge cell like we done in Microsoft Excel. Currently I design in a list view but I feel that list view could not allow me to do a merge cell. I'm using VB 2005. Could anyone suggest me which control should i use on the form to display an information with a merge cell ability?
|
|
|
|
|
Roath Kanel wrote: Currently I design in a list view but I feel that list view could not allow me to do a merge cell.
No, it doesn't.
There is currently no standard control in the toolbox that will let you do this with minial effeort. You'd have to find a third party Grid or DataGrid control that supports this (I don't know of any) if you want it to just be "drop in and play".
THe only other option you have to to take an existing control and add this support to, say, the DataGridView control, and supply your own custom rendering code to draw the cells merged together. You would also have to add properties to a Cell class, or whatever class your parent control uses, to support telling your rendering code who to draw the cells.
|
|
|
|
|
Thank you very much for your reply. I will try check DataGridView control.
|
|
|
|
|
I was wondering if its possible to set the visibility element of an HTML table, using the aspx.vb file. I know you cant set the ID and call it like that. Just wondering if there is any good way to do this (preferably without JS). What i'm doing is setting certain tables to be visible based on who logs in.
Thanks,
Nate Lindley
|
|
|
|
|
This is a question for the ASP.NET forum. It really has nothing to do with VB.NET or C#.
|
|
|
|
|
And here I thought I just caught a cross-poster I could flame!
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Whoa there! Take a deep breath, put down the flame thrower and take two steps back.
|
|
|
|
|
Easy, easy now
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|