|
Well, probably not. I just don't have any idea of how to do it myself...(?)
|
|
|
|
|
and when I type the URL "http://b211/test.asp?id=1" the result is:
This is HTML
This is Visual Basic code
The parameter is equal to 1
|
|
|
|
|
Hi there,
Can anybody tell me how to change the column's color in DataGrid ?
I have tried, but didn't work.
Here below is my code.
There is an error at line ##. The error message is :
"An unhandled exception of type 'System.NullReferenceException' occurred in Badminton.exe
Additional information: Object reference not set to an instance of an object."
Thanks for help.
My code:
==================
Private Sub frmGridDisplay_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load
DbDA_Bad.Fill(DS_Bad)
Dim TS_Bad As New DataGridTableStyle
With TS_Bad
.MappingName = "Collection"
.HeaderBackColor = Color.YellowGreen
.HeaderForeColor = Color.Green
.HeaderFont = New Font("Microsoft Sans Serif", 10.0!,
FontStyle.Bold, GraphicsUnit.Point, CType(0, Byte))
End With
Dim kl_code As New DataGridTextBoxColumn
kl_code.MappingName = "bt_code"
kl_code.HeaderText = "Code"
kl_code.Width = 60
'====These two lines didn't work. There an erro :
## kl_code.DataGridTableStyle.BackColor = kl_color.YellowGreen
kl_code.DataGridTableStyle.ForeColor = kl_color.Tomato
Dim kl_m1event As New DataGridTextBoxColumn
kl_m1event.MappingName = "bt_m1event"
kl_m1event.HeaderText = "Event"
kl_m1event.Width = 175
TS_Bad.GridColumnStyles.AddRange(New DataGridColumnStyle() _
{kl_code, kl_m1event})
DGBad.TableStyles.Add(TS_Bad)
End Sub
|
|
|
|
|
'====These two lines didn't work. There an erro :
## kl_code.DataGridTableStyle.BackColor = kl_color.YellowGreen
kl_code.DataGridTableStyle.ForeColor = kl_color.Tomato
I hope you defined YellowGreen and Tomato in your kl_color class. Aren't those supposed to be:
'====These two lines didn't work. There an erro :
kl_code.DataGridTableStyle.BackColor = Color.YellowGreen
kl_code.DataGridTableStyle.ForeColor = Color.Tomato
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
Is there any way to write a code that will execute any time I click on the scrollbar buttons of the Combobox.
Is there any event that raises when I click on the scrollbar buttons of the Combobox or when I move the bar by draging it.
Thanks for any help (I really need it)
|
|
|
|
|
There is no event that fires when the scroll of a ComboBox changes. Only the DropDown event fires when the dropdown is displayed.
You'd have to write your own version of the control to get that kind of functionality. You'd override WndProc and watch for WM_HSCROLL and WM_VSCROLL messages, firing off an event that your application can use to get notification of those messages. Be warned! Those event can fire VERY quickly and any code you attach to them MUST run very quickly or else you'll degrade the performance of the control quite severely.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Please correct me if I'm wrong here...
Without exactly why you would want to do this, it seems to me that you'd be better off using a command button to accomplish this. Each click event should be able to scroll the Combobox down and fire your code incrementally.
Still coaxing software out of the can after all these years...
|
|
|
|
|
Typically, that error is generated by doing something like this:
Dim myArcObject As ArcObject
myArcObject.someMethod( some, parameters )
When you should be doing this:
Dim myArcObject As New ArcObject
myArcObject.someMethod( some, parameters )
Without seeing your code and the line the error pops up on, it's impossible to tell you what your doing wrong.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm trying to figure out how to code my program in VB.NET to Search all of the keys located in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ and search for a particular value. Once a key is found with that Value, I want it to return the name of the key where it found it. Anyone have any ideas? Where would I need to begin to do this? Any help would be greatly appreciated.
|
|
|
|
|
Just like any other simple tree search algorithm, you would have to write a recursive function (a function that calls itself), passing in the path you want it to search. Here's a little pseudo code to get you started.
Private Function SearchRegistryPath(ByVal rootPath As String, ByVal value As String) As String
' Start by opening the rootPath key that was passed in
' Iterate the values in this key
' If you find the value your looking for
' Close the rootPath key we opened
' Return rootPath
' End If
' Next
' Iterate through the keys in the rootPath that was passed in
' returnValue = SearchRegistryPath( rootPath & SubKey, value )
' If returnValue <> "" Then
' Close the rootPath key we opened
' Return returnValue
' End If
' Next
' Close the rootPath key we opened
' Return String.Empty
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Awesome, thx for the input.. This will be my first real delve into the Registry. I'm trying to get back into Programming and have quite a project setup for myself. I've not used VB since '98 and .NET is a little different. I'm sure I'll have some more questions later, but for now I'll try to do some tinkering around and build off of the pseudo code you gave. Thanks again!
|
|
|
|
|
Will this also work if I want to be more specific and say, rather than going by just the Value name, I want the Value's Data to be a specific string? I'm looking for a Key that Contains a Value called "DisplayName", but it's "DisplayName" has to equal "MyProgram", or whatever.
|
|
|
|
|
Sure, just pass the value as a third parameter to the function. Then when you find the value name your looking for, compare the value to the one you pass into the function.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I know this question comes up all too frequently on CodeProject. "How do I pass data from one form to another?" Well, here's an article on MSDN about working with multiple Forms in VB.NET!
Working with Multiple Forms in Visual Basic .NET: Upgrading to .NET[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm new to Vb.Net and I was just wondering, how do I have two forms pass dat....
Aaron Eldreth
TheCollective4.com
My Articles
While much is too strange to be believed,
Nothing is too strange to have happened.
- T. Hardy
|
|
|
|
|
Thanks Dave! Very helpful.;)
|
|
|
|
|
Do you realise you will have to post this once every couple of days, because once this has disappeared off the front page people won't see it any more. In fact, I'm not sure they even bother looking at the first page of posts on the forum before posting their question.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
My Blog
|
|
|
|
|
Yes, I do.
Maybe we can get a list of helpful articles NOT hosted on CodeProject listed on the front page.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
No kidding. Unfortunately, few people ever search the message boards before asking a question. If they did, they would find a wealth of info just on the forums. Not to mention Google or MSDN.
Aaron Eldreth
TheCollective4.com
My Articles
While much is too strange to be believed,
Nothing is too strange to have happened.
- T. Hardy
|
|
|
|
|
Colin Angus Mackay wrote:
In fact, I'm not sure they even bother looking at the first page of posts on the forum before posting their question.
he he he.. You're probably right! I'm a n00b to the board, but am very familiar with Forums and that is ALL too common. I'll admit that I didn't read ALL of the previous pages before I posted my question about Registry Searching, BUT I did use the Search feature..
|
|
|
|
|
JeremiahSA wrote:
I did use the Search feature
Well done. If only more people would at least make the attempt to find out for themselves. Usually when I've gone searching for information I find lots of other useful stuff on the way that I may not need at that moment, so I just make a mental note of where I saw it so I can go back for it if I ever need it (or if I'm just looking for something new to learn). If I ever do need it I know the infomation exists already and can get it reasonably quickly - or I've got a better idea of the search terms I need to use to find similar information.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
My Blog
|
|
|
|
|
Hi
Can anyone please tell me how can I convert a dataset into foxpro dbf file.
C, I have a grid which is associated with a dataset. There are options of exporting grid data to differenet format, like pdf, xml, excel etc. This grid provides the feature whereby all mentioned format's file can be created.
There is one more requirement of exporting the grid data into foxpro dbf.
Please let me know if anyone has an idea regarding this
Thanks in advance -
Somesh
Always I am here to share all my pleasures with Code
|
|
|
|
|
can some body mail me character segmentatio
code for OCR
saud
|
|
|
|
|
No... Because it's very dependant on your implementation of OCR. How does your implementation learn what a character image looks like? (Don't answer, I'm not really asking...) Don't know? Start digging into neural networks...
Look, if you want to write an OCR application, it's not as simple as pasting together code snippets from various apps and articles. There is no one method of determining the boundries of paragraphs, sentenances, words, and characters. This is something you going to have to do A LOT of research on before hand and then come up with your own implementation and design your app with the features you want to support and that you NEED to support based on your requirements.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
This is a piece of information for serious mobile application developers who tired of writing complicated code that runs only in one platform.A new language for creating mobile applications for PDAs is out, it is so simple that after programming in codewarrior and J2me this language will seem like childs play to you. Not only is it simple but the applications built using this tool run on all platorms ranging from PALM, POCKET PC, SYMBIAN,NOKIA . The language - GBasic comes bundeled with simulators for all platforms , IDE and sync server for for developing server side sync logic . The mobile application development tool is called GoDB.
www.consigntech.com/20.htm[^]
|
|
|
|