|
thanks Leeland for your comment, but i should not use the ftp protocol.
i have just use sockets in vb.net...
|
|
|
|
|
how can i check if the date 28/5/2006 > date of today
|
|
|
|
|
hello amarni
u use this function
DateDiff()
this function help you.
thanks
vipin paliwal
|
|
|
|
|
Amarni wrote: the date 28/5/2006
Thats my Birthday!! 28 on the 28th
You didnt mention the language, but .NET allows you to compare 2 DateTime instances using the exact operator you used... >
<br />
DateTime jcBirthday = new dateTime(2006,5,28);<br />
DateTime today = DateTime.Now;<br />
<br />
bool isJCBirthdayInTheFuture = (jcBirthday > today);
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
happy birthday to you
by the way my birthday id 12/5/1983
thank you for the answer
Amarni
|
|
|
|
|
Hi,
I have a serious SplashScreen-Problem with .NET 2.0.
Whenever I try to define a SplashScreen for my App. after the SplashScreen disapears the following Error rises:
System.NullReferenceException wurde nicht behandelt.
Message="Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt."
Source="System.Windows.Forms"
StackTrace:
bei System.Windows.Forms.Control.WaitForWaitHandle(WaitHandle waitHandle)
bei System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
bei System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
bei System.Windows.Forms.Control.Invoke(Delegate method)
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.HideSplashScreen()
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.MainFormLoadingDone(Object sender, EventArgs e)
bei System.EventHandler.Invoke(Object sender, EventArgs e)
bei System.Windows.Forms.Form.OnLoad(EventArgs e)
bei System.Windows.Forms.Form.OnCreateControl()
bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
bei System.Windows.Forms.Control.CreateControl()
bei System.Windows.Forms.Control.WmShowWindow(Message& m)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
bei System.Windows.Forms.ContainerControl.WndProc(Message& m)
bei System.Windows.Forms.Form.WmShowWindow(Message& m)
bei System.Windows.Forms.Form.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bei System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
bei System.Windows.Forms.Control.SetVisibleCore(Boolean value)
bei System.Windows.Forms.Form.SetVisibleCore(Boolean value)
bei System.Windows.Forms.Control.set_Visible(Boolean value)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.Run(ApplicationContext context)
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
bei com.bosch.de.st.bt.vtools.ASPC.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 81.
bei System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
Has someone an Idea?
Thanks,
Chris
|
|
|
|
|
I have no idea what "wurde nicht behandelt" is, but my initial guess is that one of two situations is occurring.
1) You're trying to access the form after it's closed.
2) You're trying to dispose it after it's been set to nothing.
the NullReference typically means that you're trying to do something with an object that no longer exists. If this isn't the case, then please include a few lines of code before and after you encounter this error.
|
|
|
|
|
Hi 2 all
I need a source code of Hospital Management System in VB.NET and with DataBase Desing.
Thanx in advance
Regards,
Arfan Qadir
|
|
|
|
|
|
Ive got a button on a form and am trying to get the flashwindow api to
work with the form , however it seems i don't understand it! As i have never done an api call im not too surprised.!!
Declare Function FlashWindow Lib "user32" Alias "FlashWindow" (ByVal hwnd As Long, ByVal bInvert As Long) As Long<br />
<br />
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
End Sub<br />
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
FlashWindow(1, True)'what are the arguments this call should use?<br />
End Sub
no error when i click button, just nothing happens?
Any help will be appreciated.
|
|
|
|
|
For all thinks DllImport, first place to look is http://www.pinvoke.net[^]
This search[^] on that site brings up both FlashWindow and FlashWindowEx information, along with source code in C# (which works as ive tried both).
However, in simple answer to your question, the first parameter is the Handle of the window you want to flash, and the second should be true to flash the window once.
So assuming your Button1 is on a form:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
FlashWindow(this.Handle, True)' these are the arguments you should use!
End Sub
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
-- modified at 6:48 Wednesday 24th May, 2006
|
|
|
|
|
|
if i insert date in textbox how can i know if the date is correct or not
thats it
i entered this date 12/5/206
when i want to enter the date in the database this date will conflict with time date so that i want to check it before inserting it in the database
Amarni
|
|
|
|
|
use
isdate() function
thanks
vipin paliwal
|
|
|
|
|
hello all,
i want to create a crystal report with the help of ado.net how can i do this . pls help with code
thanks
vipin paliwal
|
|
|
|
|
How can i set value for Column1 when value of column2 changed on a row? . I need your help, Plz help me.
Thank you very much.
|
|
|
|
|
you need to utilize the after_Update event from the datagrid. The arguments taht are passed include the row and column as ordinals. Then all you have to do is access the information in column 2, manipulate it and change the info in column1.
One gotcha to watch out for is that you need to specify which columns you want the event to do work on. You can do this by adding a select...case liek this
select e.datagridcolumn (not sure if this is the actual name of the parameter passed)
case 2
Make changes to column 1
else
do nothing
end select
|
|
|
|
|
hello,
please can any one tell me how i can remove multiselection from this TreeListView control.
Regards
Irfan Siddiqui
programmer
|
|
|
|
|
Read this article[^], it might give you some idea to disable multi select in treeview.
|
|
|
|
|
Hi
I am using DataGridView of VS .NET 2005 to represent my data in a grid. In that I have configured the combo box to represent my data. My question is how can I browse thru the combo box content with the keyboard key strokes rather then the mouse? Basically to make more user friendly I have to allow my user to navigate the Data grid view with key board also. Presently when I click keyboard down arrow key over a combo box it is moving to the next cell in the grid rather then navigating the contents of the combo box.
Thanks & Regards
Arunagiri
|
|
|
|
|
I'm currently working on an application where I have about 4,000 files in a single folder. The files are text and are presented in a row-column format. Each file is about 1,000 to 4000 lines long. The format is laid out as follows:
A B C D
123 456 789 123
321 654 689 985
055 596 856 999
What I'm looking to do is read the file and determine if the value in the last row of column C is the highest value in the entire column. If so I'd like to perform a series of calculations, probably in excel and then close the file. If not I'd like to stop reading the file and proceed to the next file in the folder.
Is there a way I can read the files without opening them? Any reading on the subject would be appeciated. Thanks.
George
|
|
|
|
|
You always need to open a file before you can read its contents.
If your data is in a fixed format, then maybe a Random Access read will do the job to retrieve the last line of data. From that you can then determine whether or not to read then entire file sequentially or load it into Excel or whatever you want.
Search for "random access file vb" in Google and on the Code Project for more info on random files in VB.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
If I'm understanding this correctly, just reading the last line won't suffice. You need to actually go through the entire file just to see if you need to do work or not.
If that's the case, use streamreader to read each line individually and do a comparison each time.
*** Untested Code below ***
<br />
Private Sub ProcessFile(ByVal nameoffile as string)<br />
Dim filereader as IO.StreamReader<br />
Dim strLine as string<br />
Dim intColumnC as integer<br />
Dim intHighestNumber as integer<br />
filereader = new io.streamreader(nameoffile)<br />
Do<br />
strLine = filereader.readline<br />
intColumnC = (add formatting to meet your file's layout to get columnC)<br />
If intColumnC > intHighestNumber then<br />
intHighestnumber = intColumnC<br />
End If<br />
Until filereader.peek = -1<br />
<br />
If intColumnC = intHighestnumber then<br />
'Add code here to process the file<br />
End If<br />
End Sub<br />
If you need to loop through the files, then you'll need to add a IO.Directory item to parse then add something liek this:
<br />
Dim fileName As String<br />
Dim files As String()<br />
Dim dirApp As String = System.AppDomain.CurrentDomain.BaseDirectory()<br />
files = IO.Directory.GetFiles(dirApp, "*.sql")<br />
For Each fileName In files<br />
ProcessFile(fileName)<br />
Next<br />
HTH
|
|
|
|
|
Hi,
Please i want to play music in ma application i want this music play in the load of the app. the music have to be an .mp3 or .rm
is it an easy way to do that ?? even if it is diffecult i will understand with a little explanation
aaah , i forgot !! the music can play just in the load of ma application i mean when i see the first form loading i want to hear that music or beep or whatever it won't be long 3 seconds 2 i don't know something like that
thank you very much
try to be good if you can't be the best
|
|
|
|
|