|
what type of information u want regarding database in vb.net
|
|
|
|
|
hi
can someone please help me on this. I am trying to create user profiles on don;t know where to start. I was thinking of using the windows registry but i don't know how to go about doing that.
help will be appreciated!
Thanks
Jero
Hola
|
|
|
|
|
You want to create Windows user profiles? You really can't do that in code. You can setup defaults for lots of things, but a user profile is only creatable when a user logs in for the first time.
Windows has lots of profile defaults in the registry, under HKEY_USERS\.DEFAULT and under C:\Documents and Settings\Default User. But, may applications also setup their own stuff when a profile is created, like IE and Office.
|
|
|
|
|
hi!
i want to extract 2 values from combobox of a form and print them in a crystal report during runtime
i m using dataset for crystal report binding
can any one help me in doing this asi m new in crystal report
bi
abhinav
|
|
|
|
|
i've got the same problem and I want to do it in vb6 as well., alos I want the values from a textbox and a label in the windows form...
Thanx
|
|
|
|
|
Hi
the same problem for me i am searching for 1 week but didn't get any response or result
if any one finds please let me know
|
|
|
|
|
Create two parameters in your crystal report.
Set the parameters via code before you load the report.
"People who never make mistakes, never do anything."
My blog
http://toddsnotsoamazinglife.blogspot.com/
|
|
|
|
|
Can someone please put me out of my misery. I have created a datagrid on a form which is linked to a table with four cloumns in it. I want to change the format of this datagrid by changing the widths, enabled properties etc when I load the form. I have tried loads of things and have been brought down to the level of just adding one column to a new tablestyle. The problem here is that it still displays the four columns. Below is the code I have put in the form load. After you finish laughing can you point out where I'm going wrong or point me to the idiots guide to datagrids,
Thanks in advance
Brian
Private Sub frmMembers_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim MyGridTableStyle As New DataGridTableStyle
Dim aCol1 As New DataGridTextBoxColumn
DataGrid1.DataSource = Me.DataSet11.Tables("tblMembers").DefaultView
With aCol1
.MappingName = "MemID"
.HeaderText = "IDxx"
.Width = 40
.TextBox.Enabled = False
End With
With MyGridTableStyle.GridColumnStyles
.Add(aCol1)
End With
OleDbDataAdapter1.Fill(DataSet11)
MyGridTableStyle.MappingName = DataGrid1.DataMember
DataGrid1.DataSource = DataSet11.Tables("tblMembers").DefaultView
DataGrid1.TableStyles.Add(MyGridTableStyle)
End Sub
|
|
|
|
|
For starters, I think when you databind, you get columns for each column in your data source, and I don't think the style gets set automatically. However, DataGridGirl[^] is the best resource I know of for info on datagrids, so I'd suggest looking over her articles for info.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have a datagrid that I populate from the sql table using a stored procedure. I rebind each time the user either adds, modifies or deletes. It refreshes correctly for adds and updates. However, if you delete item 3 of 5 items, it deletes the item 3 correctly but on rebind, it displays the last item twice. Delete item 2, and you now have (3) item (5s). I checked the sqlreader, it returns only the correct data. Its like the grid is not clearing the last item off. If you delete starting with the last item, it deletes correctly. ???????????
I am using the eventscommand methods.
Any ideas? Please help.
Bill
|
|
|
|
|
What are eventscommand methods ? I can't find anything with google ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Can somebody be kind enough to tell me what I'm doing wrong.
I cannot run my (vb.net) applications in any computer but my own. What am I missing?
What am I doing wrong?
I am new with vb.net, in fact I have never had any training at all,
all I have is books, and a lot of help from message boards.
what do i need to run my vb.net app. in different computers?
P.S. Please, do not be
an A.H. if you consider this insulting,
I do not need any lessons in life,
all I need is help with vb.net
|
|
|
|
|
Check to make sure the computer has the .net framework installed.
|
|
|
|
|
|
JimClark68 wrote:
P.S. Please, do not be
an A.H. if you consider this insulting,
I do not need any lessons in life,
all I need is help with vb.net
*grin* this made my day. FWIW, it seems a lot of people use the .NET framework and miss the bit where they need to distribute it with their apps. I don't see why the books fail to make this clear, but it's apparently the case.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
You've probably built the assembly on your machine whilst logged on with admin rights and thus don't see a problem. However running the code on a different machine (probably with a different userid) - even over the network - will result in a different set of permissions being applied. I've fallen foul of this myself.
There are many objects in .NET that are security conscious (spelling?) and the user running the assembly must be logged on with the correct access permissions etc.
Review your program for anything that could cause a security exception. Also check the framework security settings in the .Net config utility ( Start -> All Programs -> Administrative Tools -> Microsoft .NET <version> Configuration ).
...Steve
|
|
|
|
|
Thank you, Steve.
The problem was that I had the wrong version of framework, I was using ver. 1.0 When It should have been v1.1, on the other hand, I did not know that security play such a major roll in vb.net.
|
|
|
|
|
Can somebody tell me why? everytime I finish a project, I have such a hard time to run it in different computers? what am I missing? what am i doing wrong?
I am so embarrassed about asking these kind of questions, but I am new using vb.net, actually I had no formal training, or schooling, all I have is all kinds of books (not all the books are good) and a lot of good help from guys like you, on these message boards.
According to most of the books, one should be able to build a solution and run it anywhere, but everytime I do that; for instance, I try to setup my new app in a different computer and I have all kinds of problems. What am I missing?
Most of the computers where I tried to setup my app. have ".net framework" (according to microsoft that's all I need)but I still have all kinds of problems.
I do not think that I have to installed Vb.net in every computer, Do I?
P.S. Please do not be an A.H. if
you consider this to simple.
|
|
|
|
|
JimClark68 wrote:
Most of the computers where I tried to setup my app. have ".net framework"
But do they have the same version of the .NET Framework installed that you developed the app against? For instance, If you're using Visual Studio .NET 2003, you'll be using the .NET Framework version 1.1. If the computer only has the .NET Framework 1.0 installed, this could cause you some problems.
Other than that, there's really not much else you need to install, short of keeping the computers up to date with the latest security patches.
JimClark68 wrote:
I do not think that I have to installed Vb.net in every computer, Do I?
No, not at all.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank you Dave. You have been great help!
|
|
|
|
|
I am trying to write a tooltip that can display a hyperlink or change the color of one word in a string. This what I have
Dim MainString As String = "This word is a different color"
Dim stringToChangeColor As String = "word"
Dim range() As CharacterRange = {New CharacterRange(MainString.IndexOf(stringToChangeColor), stringToChangeColor.Length)}
Dim format As New StringFormat
format.SetMeasurableCharacterRanges(range)
format.FormatFlags = StringFormatFlags.NoClip
Dim region(1) As Region
region = e.Graphics.MeasureCharacterRanges(MainString, Me.Font, New RectangleF(0, 0, Me.Width, Me.Height), format)
Dim rec As New RectangleF
rec = region(0).GetBounds(e.Graphics)
Dim stringB As New StringBuilder
stringB.Append(MainString)
stringB.Replace(stringToChangeColor, " ", stringB.ToString.IndexOf(stringToChangeColor), stringToChangeColor.Length)
rec.Width = rec.Width + 10
rec.X = rec.X - 2
rec.Y = 0
e.Graphics.DrawString(stringB.ToString, Me.Font, Brushes.Black, 0, 0)
e.Graphics.DrawString(stringToChangeColor, Me.Font, Brushes.Red, rec.X, rec.Y, format)
' e.Graphics.DrawString(MainString, Me.Font, Brushes.RoyalBlue, 0, 20)
The problem I have is that I have to manually set the number of spaces in the stringB.Replace.
Is there another way?
Please help.
Thanks in advance
Mark Thibodeaux
|
|
|
|
|
My suggestion of the Rich Edit control will be no use in this case. I hope someone else may be able to help.
...Steve
|
|
|
|
|
Thank you for trying
Mark Thibodeaux
|
|
|
|
|
When connecting a combobox to a datasource like this:
ComboBox2.DataSource = DataSetMainWindowStatusCodes1
ComboBox2.DisplayMember = "statuscodes.name"
And then when you select an item in the combobox how can you automatically allow the record pointer in the combobox's datasource to move to that selected record?
|
|
|
|