|
Thanks Robert. Your comments were what I needed. I appreciate them. I'm going to look into the datagrid control more. It sounds like it has more potential than I thought.
Thanks again.
Norm
|
|
|
|
|
Hi Guys,
i m making a simple Counter in Asp.net with using Session,its Function is very Simple,Mean
User click on Button and then TextBox show the Count with One Increment,
Every Thing is Going Fine,But Problem is, if User Press "Refresh" button from Browser,So it shows one increment in Count.
So how can stop this.
Code is :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Count As Integer
If Not Session("Count") Is Nothing Then
Count = Session("Count")
End If
Count += 1
TextBox1.Text = Count
Session("Count") = Count
End Sub
Thanx in advance
Sajjad
|
|
|
|
|
I fill a combobox with data comes from database. I want user can choose a null value but I don't want add a null value to database( impossible) help me
Then I kiss Ur eyes and thank God we're together
|
|
|
|
|
Add the value DbNull.Value to your combobox.
Then in your update you can use isnull(@param, '') to change it to blank.
|
|
|
|
|
how to disable a column in databound grid???somebody plizz help me....
besah
|
|
|
|
|
Create another datatable that includes only columns you want to bind to datagrid. then bind the datagrid to that table ( that's all I can do);P
Then I kiss Ur eyes and thank God we're together
|
|
|
|
|
You have to create TableStyles and ColumnStyles. Read the docs or search on CodeProject to find examples (it cannot be explained in 2 or 3 sentences).
|
|
|
|
|
My Question is :
I need to select word in RichTextBox and then to select frst next word in text until end of text,but my code select all word then i try to change my code and i got all word selected in text if somebody know how the code shall to look??
tnx
|
|
|
|
|
Dim Search, Where ' Declare variables.<br />
' Get search string from user.<br />
Search = InputBox("Enter text to be found:")<br />
Where = InStr(RichTextBox1.Text, Search) ' Find string in text.<br />
If Where Then ' If found,<br />
RichTextBox1.Select()<br />
RichTextBox1.SelectedText = Where - 1 ' set selection start and<br />
RichTextBox1.SelectionLength = Len(Search) ' set selection length.<br />
Else<br />
MsgBox("String not found.") ' Notify user.<br />
End If
This is maybe need to some body like me so tnx for quick help
|
|
|
|
|
Hi,
I keep getting "The path is too long after being fully qualified. Make sure path is less than 260 characters." when I run the following recursive directory search. Could you tell me how to fix it?
Sub DoRecursiveSearch(ByVal dirname As String, ByVal filespec As String, ByVal recurseDirs As Boolean)
Dim fname As String
Dim fi As FileInfo
For Each fname In System.IO.Directory.GetFiles(dirname, filespec)
fi = New FileInfo(fname)
msgbox(fname)
Next
' recurse on subdirectory if so requested
If recurseDirs Then
For Each dname As String In System.IO.Directory.GetDirectories(dirname)
lnDirCount = lnDirCount + 1
DoRecursiveSearch(dname, filespec, recurseDirs)
Next
End If
End Sub
|
|
|
|
|
Without remapping things I don't think you can. The path limitation is not part of VB but rather the OS. Try accessing the file manually at the filesystem level to see...
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
You can't fix this. This limitation is based in Windows, not VB or the .NET Framework.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
Using this article:
http://www.codeproject.com/useritems/ByPassAutomation.asp
I've managed to run MS Word from within a VB.Net form... All very nice.
The problem I'm having is this. My project spec involves me having a form with an explorer style navigation window to find files to open (treeview control). The treeview must be visible at all times so that the user can choose other files from the treeview rather than within MS Word using the File>Open dialogue.
Word runs correctly the first time with the file selected from the treeview. If I choose another file, word crashes out and I get Unhandled exception:
"An unhandled exception of type 'System.InvalidOperationException' occurred in system.dll
Additional information: Process has exited, so the requested information is not available."
Can some one give me an idea of how to get it so I can continue clicking within the treeview as many times as I like, having word close the current file and open the new one without the above exception occuring.
McS.
|
|
|
|
|
I use the following code to open Ms word and it could open many word file as you want:
' Open file directly into Ms word...<br />
Dim appWordRtf As Word.Application = _<br />
New Word.Application<br />
<br />
appWordRtf.Documents.Open(FilePath)<br />
appWordRtf.Visible = True
Try to use this code, if it is possible, could you post your code that error on this forum? GOOD LUCK
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Thanks for the response.
I'm having a problem with:
Dim appWordRtf As Word.Application = _
New Word.Application
It is saying 'Type Word.Application not defined'
The error received with regard to the intial post and its first response is:
"An unhandled exception of type 'System.InvalidOperationException' occurred in system.dll
Additional information: Process has exited, so the requested information is not available."
McS.
|
|
|
|
|
mcslemon wrote:
It is saying 'Type Word.Application not defined'
The error received with regard to the intial post and its first response is:
"An unhandled exception of type 'System.InvalidOperationException' occurred in system.dll
Have you add the reference of Ms word and office to your vb.net project yet??? If not then go to Project menu and click on Add Reference... Then go to the COM tab and find Microsoft Office x.0 Object Library then click select and find Microsoft Word x.0 Object Library and click select and click Ok. Then try to run your project again. Good luck
Note: x is the number of your Microsoft office version. If you use Office xp then x will equal to 10. You will see, Microsoft Office 10.0 Object Library.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Ok, I have the Object (Word.Application) working.
I still want to be able to load the application window into the Label as I stated in my original post using the example.
It would be great if someone could show me how to do this whilst using 'The man from SCN-COs' solution. I am having no luck on my own.
McS
|
|
|
|
|
Good day to you all and i hope you are well.
Not a direct code question guys, just in need of advice.
Imagine this scenario if you will,
You have a internet server with a SQL Server 2000 database and a client with a MSDE installation. Both are running the same database say MYDATABASE.
MYDATABASE on server is very large, say 100mb.
The client needs one table from the server to do the work they wish to do on their local machine.
They want to just get that one table (and all related obviously) updated on their machine as they don't need the full database as that would take ages (being 100mb).
How would you suggest passing that one table to the client, the client app updating the database on the local machine. Then, once they have done their work they re-connect to the internet server pass back the data they have added/updated and the server then updates accordingly.
Any help would be greatly appreciated.
My thoughts and ideas so far - DTS (not used this before though), dynamically formed SQL (clunky, unreliable).
Pleaaaaaseeee Help
Many Thanks
Harry
|
|
|
|
|
Hi,
Is it possible to do paging in VB.NET datagrid ?
I have search using Google and Yahoo but still couldn’t find any sample and references regarding this matter
Thank you very much in advance for any help and ideas.
Regards.
|
|
|
|
|
I've found code to display the name of the program that is currently running:
MsgBox(System.Reflection.Assembly.GetExecutingAssembly.GetName.Name)
and I've found code to display the sub routine I'm currently in:
MsgBox(System.Reflection.MethodInfo.GetCurrentMethod.Name)
Does anyone have code to display the class that the sub resides in?
Thanks for any input you can give!
Lost in the vast sea of .NET
|
|
|
|
|
Try:
System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name
|
|
|
|
|
Perfect!! Thanks!!
Lost in the vast sea of .NET
|
|
|
|
|
Hello All,
I want to send fax from a VB.Net form using rightfax.dll(version 8.5.0.103), can anyone pls provide me a insight of this by providing a piece of code or any article for the same.
your advice would be highly appreciated.
This is very urgent.
Regards
Pavan
|
|
|
|
|
Why don't you just Google for "rightfax vb"[^]...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i have urgent problem i don't know what i must do to solve it
the project that i work on consist of server and client application
it represent real Time system
and have three connections
on the client sied the problem is that:
i have found that the CPU usage is 100% this isn't the usaual case of the client
first :when i watch the threads from control panal-->performance i found that one thread go up
and take most resource
i don't know how to catch this thread
second :i note that if i put any break point to stop the applecation then let it run again
the CPU usage go down to a good level
ASwanee
|
|
|
|