|
Could it be a DataType error? If I'm reading your code correctly, you are adding all sizes into the box as strings, but when you set them:
sizeCell.Value = sizeRows(0)("Size")
are you sure the sizeRows(0)("Size") is a string? Would adding a .ToString and maybe some trim (and ToUpper if these actually contain alpha characters) fix the issue?
I'm guessing you checked this, but just in case you didn't, have you checked that your filter is returning one or two records all the time? You are setting the value to "" if the filtered rows come back with a count of 3 or more...
Other than that, nothing obvious jumps out at me. Sorry. Hopefully someone else can see something I missed.
|
|
|
|
|
The Data Types match but the issue seems to be happening during the initial value set during the data binding process before it ever gets to my code. It seems to be random and doesnt occur with all sets of data so this is very strange.
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|
Why does visual basic not display the namespace at the top of each code file like C# files do?
I am trying to make a namespace span multiple assemblies in VB, but since the namespaces are not visible i cannot simply go in and change them. The only way I have found to do this is to make the root namespace the same for each assembly (from the project properties window), and then make any sub namespaces from there.
Is there an option to see the namespace in a VB code file, or else a different way to share a namespace among assemblies without making all of their root namespaces the same?
Thanks,
Aaron
|
|
|
|
|
Above the class declaration you can simply type Namespace WhateverTheNameShouldBe and then after End Class place End Namespace . You might want to remove the root namespace if you do this unless you want something to show up as WhateverTheNameShouldBe.WhateverTheNameShouldBe.ClassName OR keep the root namespace and only add the different named namespaces if you require further organization.
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|
Thanks for the help, Cleako! You are very wise and kind. One problem, though:
I am using tableAdapters and other microsoft generated objects that will not allow me to edit their code-behind files. Or, if I do, the changes will be overwritten after a change in the designer. Is there any way to "override" the root namespace property when writing an individual class, or else is there a way to place all of my tableAdapters in a "sub namespace" without editing their code, say by placing them in a namespace folder or something?
Thanks,
Aaron
|
|
|
|
|
A co-worker of mine is working on a crystal report for our project. The report has text objects with set text that doesn't change and is not variable. The design uses mixed case text, however when the report is previewed or the VB.Net project that displays the report is run and the report is displayed in a Crystal Reports Viewer control, some of these text objects are displaying text in lower case. Is there a setting or property that can effect the case of text within a text object and where can I find this setting/property? We have looked all over and cannot find the source of this. Has anyone experienced something similar or have any ideas I could try to fix this?
|
|
|
|
|
I am doing research on Randomize Function of VB, and I'm generating random numbers. 10 in every 1 seconds and I'm running the program for 3-4 hours.(in short I'm gonna have more than billion numbers)
1) Now I want to create BAR chart using that data. How do I do that using VB.NET?
2) Is there anyway to Create Dynamic Line Graph?
Thanks in advance.
|
|
|
|
|
killerp wrote: 1) Now I want to create BAR chart using that data. How do I do that using VB.NET?
Use a third party library to draw the charts, like "ZedGraph". Just Google for it, and no, you don't need to use C# to use it.
killerp wrote: 2) Is there anyway to Create Dynamic Line Graph?
Google for "StripGraph .net" and you'll find some controls to do that too.
|
|
|
|
|
Most frustrating. The format of the website cannot be changed:
I have 5 web pages each with a form. These page forms have content the user can edit & redit.On the top of each page is a menu bar affording the user to toggle back and forth to any of the 5 pages viewing the respective content. Now say the user toggles to page 2, makes changes to the content, via a RadEditor, toggles to page 5, then retoggles to page 2 to see the changes he just made.
Here's the delema: During these edits/redits, the revised content CANNOT be posted as an update to the database. Only AFTER the user is satisfied with all the edits made, does he click button 6 for "Update All My Changes".
I cannot have one page with all the form elements listed via visible/not visible panels. I cannot use session objects, or cookies - there is just too much data. I heard about the cache object / application object but I do not know if it plays a part here. Also note there could be thousands of concurrent users taking this initially identical data content then editing it to each's own unique wants.
So in short, how can I have several editable web pages of form elements that allow the user to see the changes they made, even after clicking off and then back to that form without using a database update or items mentioned above. Remember, They will not let me hit the database until aff the edits on the 5 web page forms are complete. Thanks.
Update:
I have reevaluated the entire process.
I've decided to utilize the file stream object and have them edit their entire page.
Now, I have to figure out how to reiterate thru these modified forms to place the data into the db.
modified on Tuesday, February 26, 2008 4:38 PM
|
|
|
|
|
The only other option I can see, is using cross page postbacks to simulate having all the pages as controls on one page. In other words, writing a ton of code, which will be more error prone, to simulate doing what I've been telling you to do for days. Why can't you put it all on one page ? It seems to me like you're screwed, because you're looking for a magic solution, and rejecting every viable solution you've been offered.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have reevaluated the entire process.
I've decided to utilize the file stream object and have them edit their entire page.
Now, I have to figure out how to reiterate thru these modified forms to place the data into the db.
|
|
|
|
|
I need help find good resource material for programming in vb.net on the .net compact framework. I have project to create an inventory application on a pocket pc device. They use Microsoft Access to save their data. So far, I have found no information that shows if and how this can be done. The articles I have found on CP don't go into data access. May I haven't searched long enough.
Is it possible to access data from this device to Microsoft Access? Does anyone know I can get some step by step instructions?
Thank you
|
|
|
|
|
Hello,
The link below describes how to use Pocket Access:
http://msdn2.microsoft.com/en-us/library/ms837914.aspx
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Hi forum members ,
I want to write a VB code that read .pst(outlook) file
can any help me in that ?
should I convert the file in other extension first, or I can read it directly?
Regards,
mesho
|
|
|
|
|
You might wanna have a look at MAPI function.
|
|
|
|
|
thank you killerp very much
|
|
|
|
|
hi all,
i am not too much familier with registry programming. I want to simply create a key under any Root key as follows
dim regKey as RegisteryKey<br />
regKey = Registry.LocalMachine.CreateSubKey("testKey", RegistryKeyPermissionCheck.Default)<br />
regKey .Close()<br /> above code is too simple but it give error "The parameter is incorrect".
Please suggest me where I am wrong ?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
You're not allowed, by Windows, to create subkeys directly under HKEY_LOCAL_MACHINE. You have to create them in a subkey of the root key. Even then, you're limited to where you can do that.
Since you're new to this and don't really know what you're doing, I'd suggest doing your experimentation under HKEY_CURRENT_USER\Software\ instead. You'll minimize the damage you can do if you screw up.
|
|
|
|
|
Hello!
Does anyone know if it's possible to dynamically create Collections in VB6?
I wanted to dynamically create as many Collections as the user needs/wants.
Just like TextBox1(0), TextBox1(1), and so on.
Is it possible?
Regards
|
|
|
|
|
yes.
Dim x(13) As New Collection
x(1).Add "1,1"
x(1).Add "1,2"
x(2).Add "2,1"
x(3).Add "3,1"
Debug.Print x(1).Item(1)
Debug.Print x(3).Item(1)
it´s also possible to do this dynamically:
Dim x() As New Collection
ReDim x(13)
x(1).Add "1,1"
x(1).Add "1,2"
x(2).Add "2,1"
x(3).Add "3,1"
ReDim Preserve x(17)
x(17).Add "17,1"
Debug.Print x(1).Item(1)
Debug.Print x(17).Item(1)
|
|
|
|
|
Hi Thomas,
Thank you very much!
I declared in a module
Public m_Collection() As Collection
And in my form: (i needed to "Set" in order to work)
Private Sub Command1_Click()<br />
For i = 0 To 13<br />
Set m_Collection(i) = New Collection<br />
m_Collection(i).Add "1234"<br />
Next i<br />
End Sub
It work perfectly
Thanks!
Best Regards!!
|
|
|
|
|
Or simple way of doing it is, Changing Index to 0 for the component in Properties Window.
For Example,
Add & Select Text1, and goto Properties and in Index type 0.
Now when you want to create new one's just use following code, it's much simple.
<br />
Private Sub LoadTextBox()<br />
'Get the number of Textbox User wants or needs<br />
Dim itext As Integer<br />
itext = InputBox("Enter how many text box you want")<br />
<br />
'Now let's create and show them on form<br />
<br />
Dim i As Integer<br />
For i = 1 To itext<br />
Load Text1(i)<br />
Text1(i).Visible = True<br />
'the lines below show new created textbox rightBelow eachother, like Table<br />
Text1(i).Left = Text1(0).Left<br />
Text1(i).Top = Text1(i - 1).Top + Text1(i - 1).Height<br />
Next i<br />
<br />
<br />
End Sub<br />
Hope it helps...
|
|
|
|
|
Hi!
Thank you very much for replying!
Best Regards
|
|
|
|
|
Hi
to all
Please suggest me somthing how can i
edit the datagridview with populating combobox
Thanks in advance.
|
|
|
|
|