|
Hello All,
How can i do in order to change a permission for an user in a registry key.
How to do it programatically.
Thanks in advance...
Regards,
|
|
|
|
|
You'll probably have to do it through WMI Registry Classes
|
|
|
|
|
Hi
I added a datetimepicker to one column of datagrid. i got this by downloading generic datgrid user control from web. after i download that control, i got the 'calendercolumn' also as columntype. it is working. but when i am trying to insert one row thru datagridview to sql table' s datetime column, when i am clicking on the calender cell value itself it is giving me the following error. when i click continue it goes back to the cell and i can select the date the date and proceed. the data(including date) is saving properly. hw can i avoid (what eception to handle) to prevent from this error msg to come?
"to replace this default dialogue please handle the data error event...............
System.InvalidCastException was unhandled by user code
Message="Specified cast is not valid."
Source="GenericDataGridView"
StackTrace:
at GenericDataGridView.GenericDataGridView.CalendarCell.InitializeEditingControl(Int32 rowIndex, Object initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle) in C:\Documents and Settings\c0001014\Desktop\vs2005Projeler\GenericDataGridView\GenericDataGridView\GenericDataGridView.cs:line 504
at System.Windows.Forms.DataGridView.InitializeEditingControlValue(DataGridViewCellStyle& dataGridViewCellStyle, DataGridViewCell dataGridViewCell)
--- C:\Documents and Settings\c0001014\Desktop\vs2005Projeler\GenericDataGridView\GenericDataGridView\GenericDataGridView.cs
00000000 push ebp
00000001 mov ebp,esp
00000003 push edi
00000004 push esi
00000005 push ebx
00000006 sub esp,38h
00000009 xor eax,eax
0000000b mov dword ptr [ebp-10h],eax
0000000e xor eax,eax
00000010 mov dword ptr [ebp-1Ch],eax
00000013 mov dword ptr [ebp-40h],edx
00000016 mov edi,ecx
00000018 cmp dword ptr ds:[0371289Ch],0
0000001f je 00000026
00000021 call 7932D6AE
00000026 xor edx,edx
00000028 mov dword ptr [ebp-44h],edx
0000002b nop
0000002c push dword ptr [ebp+0Ch]
0000002f push dword ptr [ebp+8]
00000032 mov edx,dword ptr [ebp-40h]
00000035 mov ecx,edi
00000037 call 7A4A1A1C
0000003c nop
0000003d mov ecx,edi
0000003f call 7A45FF60
00000044 mov esi,eax
00000046 mov ecx,esi
00000048 cmp dword ptr [ecx],ecx
0000004a call 7A900AF8
0000004f mov esi,eax
00000051 mov edx,esi
00000053 mov ecx,3714BDCh
00000058 call 79125572
0000005d mov dword ptr [ebp-44h],eax
00000060 mov ebx,dword ptr [ebp-44h]
00000063 mov ecx,edi
00000065 call 7A462DF4
0000006a mov esi,eax
0000006c cmp dword ptr [esi],79105EF0h
00000072 je 00000080
00000074 mov edx,esi
00000076 mov ecx,79105EF0h
0000007b call 791F1CE6
00000080 add esi,4 ------------------------------------error
00000083 sub esp,8
00000086 movq xmm0,mmword ptr [esi]
0000008a movq mmword ptr [esp],xmm0
0000008f mov ecx,ebx
00000091 cmp dword ptr [ecx],ecx
00000093 call 7A8FCDF4
00000098 nop
00000099 nop
0000009a lea esp,[ebp-0Ch]
0000009d pop ebx
0000009e pop esi
0000009f pop edi
000000a0 pop ebp
000000a1 ret 8
|
|
|
|
|
i want to add a schema table in a treeview which contains the tables that the user selected from afiledialog's file table names
|
|
|
|
|
Write a procedure that changes all text styled in Heading 1 to Heading 3 in a Word doc
sukh
|
|
|
|
|
Why are you even doing a course in VB6 ? It's totally unsupported.
In any case, what you are doing is rude, self centred, and evidence that you're wasting your time with this course. I recommend dropping out and applying at McDonalds.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
You want to look up and learn VBA for MS Word. There are tons of stuff out there. Just google for it...
Chandra
|
|
|
|
|
Based on your last couple of questions plus past questions you are obviously looking for homework answers.
|
|
|
|
|
Most lists in VBA are 1 based. There is at least 1 case where 0 based indexing is used. What is this case?
sukhchain
|
|
|
|
|
This is pathetic. Do your own homework.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: This is pathetic. Do your own homework.
I've almost spilled my coffee :->
|
|
|
|
|
Based on your last few questions you are obviously looking for homework answers.
|
|
|
|
|
|
Hi. Did you have a question ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
what is boxing in Concept in .net?
Pavan Pareta
|
|
|
|
|
When a value type needs to be passed as a reference type ( typically as an object ), for example, in the non generic .NET containers, it needs to be put inside an object, hence 'boxing'.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I think this link on Microsoft's website will be halpful to you
http://msdn2.microsoft.com/en-us/library/25z57t8s.aspx
|
|
|
|
|
Thanks
its halpful for me...
Pavan Pareta
|
|
|
|
|
Hello,
I am developing a application where in I am calling a web page from vb6 application, now from vb6 i want to send that page by email.
I want to use IE - File/Send/page by email, functionality from vb6.
Please can anyone tell me how to capture IE - File/Send/page by email from vb6.
Regards
Raj
|
|
|
|
|
Hello, Im trying to figure out how to find the amount of data being sent and recieve by the internet (kB/s) and the time the connection has been active.
Pretty much the infomation that is contained the connection info window, but I need to access this infomation by declares only.
Thanks,
bob
-- modified at 1:39 Tuesday 7th November, 2006
|
|
|
|
|
To All,
This is something totally out of my league; but I wanted to know; so I was wondering if someone might point me in the right direction to get started...
What would I have to do to try and write my own VNC like control for a server/viewer much like this one? (http://cdot.senecac.on.ca/projects/vncsharp/quickstart.html)
I used that control in my project only to discover that (had I been paying attention) it was only a viewer control. I wanted to build an app that emulated VNC with file transfer capabilities; etc.
So.. where would I start? I don't want to try and re-invent the wheel; but I don't want to distribute two apps (a server like app that would allow me to get the remote computer's drive information and then spit that to my viewer control -- that in addition to having to send over a distro of VNC like Ultra or Tight VNC).
I'm at a loss guys; what would I have to learn?
Thanks all,
-Randy
|
|
|
|
|
Actually, this topic did interest me a while back as well, and i made some research.
I'm not sure there is a .NET VNC server implementation, but search Google for vnc activex server and you will find a commercial company that just released a beta of a vnc server activex control.
(I tested it and it works well)
i would be vary happy to find some project about a vnc .NET server
|
|
|
|
|
Hi, using VB net (2003) I Have 2 DataGrids on a Windows. Form(Tab Control with 3 pages) on page2 is DataGrid2, and on page3 is DataGrid3. Both DataGrid have 5 Rows and both first Columns are identical, ex: Normal Price is (Col. 0, Row 0), Credit Card is (Col. 0, Row 1), Discount 5% is (Col. 0, Row 2), Discount 10% is (Col. 0, Row 3), Discount 20% is (Col. 0, Row 4). What I need to do is when I click on any row of either DataGrid (highlighted meaning selecting a row) that the same row in the other DataGrid be selected. Is there a Way to do that programmatically, hope you can help me and thank-you in advance,.
|
|
|
|
|
It's not my best work by far but you get the idea
Private Sub Form2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim dsTbl As New Data.DataTable("test")
Dim dsRow As Data.DataRow
dsTbl.Columns.Add("col1", GetType(System.String))
dsTbl.Columns.Add("col2", GetType(System.String))
dsTbl.Columns.Add("col3", GetType(System.String))
dsTbl.Columns.Add("col4", GetType(System.String))
dsTbl.Columns.Add("col5", GetType(System.String))
Dim dstbl2 As Data.DataTable = dsTbl.Clone
For i As Int16 = 1 To 10
dsRow = dsTbl.NewRow
dsRow("col1") = Chr(65 + i)
dsRow("col2") = Chr(66 + i)
dsRow("col3") = Chr(67 + i)
dsRow("col4") = Chr(68 + i)
dsRow("col5") = Chr(69 + i)
dsTbl.Rows.Add(dsRow)
dsRow = Nothing
Next
For i As Int16 = 1 To 10
dsRow = dstbl2.NewRow
dsRow("col1") = Chr(69 + i)
dsRow("col2") = Chr(68 + i)
dsRow("col3") = Chr(67 + i)
dsRow("col4") = Chr(66 + i)
dsRow("col5") = Chr(65 + i)
dstbl2.Rows.Add(dsRow)
dsRow = Nothing
Next
Me.DataGridView1.DataSource = dsTbl
Me.DataGridView1.Refresh()
Me.DataGridView2.DataSource = dstbl2
Me.DataGridView2.Refresh()
End Sub
Private Sub DataGridView1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGridView1.SelectionChanged
If DataGridView1.SelectedRows.Count = 0 OrElse DataGridView2.Rows.Count = 0 Then Exit Sub
DataGridView2.Rows.Item(DataGridView1.SelectedRows.Item(0).Index).Selected = True
End Sub
Private Sub DataGridView2_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGridView2.SelectionChanged
If DataGridView2.SelectedRows.Count = 0 OrElse DataGridView1.Rows.Count = 0 Then Exit Sub
DataGridView1.Rows.Item(DataGridView2.SelectedRows.Item(0).Index).Selected = True
End Sub
|
|
|
|
|