|
I mean like symfony, Zend in PHP. That framework has libs and structure and we can apply that framework into project
|
|
|
|
|
.Net is a Framework. there are lot of in built classes are there.
What do you want?
SSK.
|
|
|
|
|
Vri SSK wrote: .Net is a Framework. there are lot of in built classes are there.
What do you want?
He already answered that question: "I mean like symfony, Zend in PHP"
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
The OP wasn't asking about .NET framework. He's interested in frameworks that he can have work with the .NET framework. Look at his reply
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
i wonder how can i get bits stream from mp3 data, everyone please help me..
how ican open the mp3 data
-- modified at 22:12 Friday 20th July, 2007
|
|
|
|
|
What do you want ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
please clearly explain what is your problem?
SSK.
|
|
|
|
|
i would like to open the mp3 data, i wanna see the structure inside the mp3. such as the binary bit and etc, because i wanna create the mp3 steganography wiht low bit encoding system.
please help me.
|
|
|
|
|
Hi,
I am using vb.net in mine project, I have to create gridview user control and I want to move up and down a record to a different position in the same Gridview.Is it possible to implement this feature in gridview please help me its urgent and suggest the logic which i have to implement.
-- modified at 0:29 Friday 20th July, 2007
Ashish K. Vyas
-- modified at 2:56 Friday 20th July, 2007
|
|
|
|
|
I believe you need to impliment drag and drop logic There's nothing built in.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi all please do help me
i have a gridview and i have filled it with the help sqldatasource.It contains 5 columns one of them is ber_id.
I have also enabled the edit update delete buttons...
now the question is when i edit the row i wanna limit the ber_id column that it should allow the user to type 7 characters only...
i have tried javascript but was not able to achieve this
how can i achieve this ?
|
|
|
|
|
Please read the forum guidelines.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
The least likely reason you're having trouble : javascript is broken
The most likely reason you're having trouble : your javascript it broken.
You need to post some code. You should also be able to set the maximum characters on a textbox directly, however.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello,
I have a combo box in my datagridview.
The user want to select an item form the combo box which could be either 'Ordered', 'Delivered', and 'To be Ordered'.
I want an event to fire based on what the user selects.
Currently I have used the cell validating event. However, this doesn't work because the user has to select an item, and then select another cell for the event to fire.
I am wondering what is the best event to use, so if the user was to click 'Delivered' it will automatically fire an event, without the user having to click into another cell.
<br />
Me.dgvPendingOrders.EndEdit()<br />
If (e.ColumnIndex = cbCol.DisplayIndex) Then<br />
'If the value in the cell is DBNull then do not process this value<br />
If Not (Convert.IsDBNull(Me.dgvPendingOrders.CurrentRow.Cells("StatusPending").Value)) Then<br />
status = Me.dgvPendingOrders.CurrentRow.Cells("StatusPending").Value<br />
If (status = "Delivered") Then<br />
'Do something here<br />
end if <br />
end if<br />
end if
This is my code so far, if anyone has any suggestion or code examples, i would be most gratefull.
|
|
|
|
|
Maybe I am off base here, but I am pretty sure the combobox should fire a selectedindexchanged event. Why don't you just use that?
Ben
|
|
|
|
|
Hello,
Thanks for the reply.
However, the dataGridView combobox does not have a selectIndexChanged event.
Anymore suggestions would be most helpful.
Steve
|
|
|
|
|
hi! there's an index change in the combobox... maybe you didnt declare it as withevents
do you use namespace for it?if so, can you paste your code to make it clear...
|
|
|
|
|
Hello,
I am a bit stuck with my timer control. My timer control works in the main thread. Now i have other threads running doing some stuff. This second thread needs to enable the timer. Well the timer.Enabled is indeed true, but i don't get events, it doesn't tick.
I read along the web to use the InvokeRequired. Well, i can't figure out how to use it. Can someone please put me on the right track.
Thanks in advance.
|
|
|
|
|
You need Control.InvokeRequired and Control.Invoke when you want to access a Control from
within a thread that did not create the Control (normally the main or "GUI" thread).
Most timers run their event in some thread, and hence need Invoke to touch Controls;
by design Forms.Timer does not.
If you want to know more about it, read up on it in MSDN, some good articles on CP, or
Google. There is a simple example (C#) burried inside my Sokoban article.
|
|
|
|
|
Hello,
Thanks for your answer. It is indeed quiet simple. I read the following article on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconServerBasedTimers.asp
And I replaced my Windows Timer to a Server Timer, problem solved.
Thank you.
ESTANNY
|
|
|
|
|
Hello! I wrote an application for our HR department so that they can enter employee information (name, title, company cell, extension, etc.), and then magic happens in the background that causes the Active Directory user account to be created, Exchange mailbox generated, home directory created, and even an Outlook signature file is generated. It then emails our IT staff to provision a workstation. It works great, although I'm running into a weird problem.
My application uses impersonation to perform all of it's tasks under a limited account (account name is "createnewuser". It specifically only has access to create folders in our home directory share, Outlook signature file share, and create user accounts and set specific AD attributes). Everything works and all of the tasks are performed by the limited account properly except my impersonation context drops after the owner of the home directory is set. Detail follows:
Here is the code I am using for impersonation (unfortunately, I don't recall where I got it, or I'd attrib):
----------
Imports System.Security.Principal
Imports System.Runtime.InteropServices
Imports System.Web
Imports System.Web.Security
Public Module Impersonation
#Region " API Declarations "
Public LOGON32_LOGON_INTERACTIVE As Integer = 2
Public LOGON32_PROVIDER_DEFAULT As Integer = 0
Public impersonationContext As WindowsImpersonationContext
Declare Function LogonUserA Lib "advapi32.dll" (ByVal lpszUsername As String, _
ByVal lpszDomain As String, _
ByVal lpszPassword As String, _
ByVal dwLogonType As Integer, _
ByVal dwLogonProvider As Integer, _
ByRef phToken As IntPtr) As Integer
Declare Auto Function DuplicateToken Lib "advapi32.dll" ( _
ByVal ExistingTokenHandle As IntPtr, _
ByVal ImpersonationLevel As Integer, _
ByRef DuplicateTokenHandle As IntPtr) As Integer
Declare Auto Function RevertToSelf Lib "advapi32.dll" () As Long
Declare Auto Function CloseHandle Lib "kernel32.dll" (ByVal handle As IntPtr) As Long
#End Region
Public Function impersonateValidUser(ByVal userName As String, _
ByVal domain As String, ByVal password As String) As Boolean
Dim tempWindowsIdentity As WindowsIdentity
Dim token As IntPtr = IntPtr.Zero
Dim tokenDuplicate As IntPtr = IntPtr.Zero
impersonateValidUser = False
If RevertToSelf() Then
If LogonUserA(userName, domain, password, LOGON32_LOGON_INTERACTIVE, _
LOGON32_PROVIDER_DEFAULT, token) <> 0 Then
If DuplicateToken(token, 2, tokenDuplicate) <> 0 Then
tempWindowsIdentity = New WindowsIdentity(tokenDuplicate)
impersonationContext = tempWindowsIdentity.Impersonate()
If Not impersonationContext Is Nothing Then
impersonateValidUser = True
End If
End If
End If
End If
If Not tokenDuplicate.Equals(IntPtr.Zero) Then
CloseHandle(tokenDuplicate)
End If
If Not token.Equals(IntPtr.Zero) Then
CloseHandle(token)
End If
End Function
Public Sub undoImpersonation()
impersonationContext.Undo()
End Sub
End Module
---------------
Here's the code that I am using to perform my tasks (I have excluded all of the active directory account creation stuff because that all works great)
-----------------
Imports System.DirectoryServices
Imports System.IO
Imports Microsoft.Win32.Security
Imports ActiveDs
If impersonateValidUser(ADLogin, ActiveDirectoryLegacyDomainName, ADPW) Then
(.... a whole bunch of stuff that creates the AD account, exchange mailbox,
sets variables such as the username for the new user, home directory path, etc..not
shown here, avail on request...)
If Not Directory.Exists(m_HomeDirPath) Then
Dim mySecPrincipal As WindowsUser
Dim myProtectedResource As SecuredObject
Directory.CreateDirectory(m_HomeDirPath)
mySecPrincipal = New WindowsUser(m_ADLegacyDomainName & "\" & m_Login)
myProtectedResource = New SecuredObject(m_HomeDirPath, SecuredObjectType.FileObject)
myProtectedResource.Permissions.SetAccess(mySecPrincipal, AccessRights.FileFullControl, AceInheritanceFlags.ContainerInherit Or AceInheritanceFlags.ObjectInherit)
myProtectedResource.Owner = mySecPrincipal
End If
end if
--------------------
As you can see, the program has previously determined the path to the home directory for the user. If that directory doesn't exist, it goes ahead and creates it. It then creates an instance of WindowsUser (mySecPrincipal) and SecuredObject (myProtectedResource). It sets the permissions on the new directory appropriately, however when it gets to
--------------------
myProtectedResource.Owner = mySecPrincipal
--------------------
the owner of the directory is correctly set to the new user (referenced by mySecPrincipal), however, when this command executes, my impersonation context is dropped and the process reverts back to the logged in user (and therefore, any code executing after this line is run under the context of the logged in user instead of the intended impersonated user). I never call undoImpersonation() until way later in the code.
In other words, before setting the .Owner property of myProtectedResource, Environment.Username = "createnewuser" After setting the .Owner property of myProtectedResource, Environment.Username = Logged In User.
I've been racking my brain trying to figure this out, but I can't figure out why setting the owner of a file system object would affect the impersonation context of the process doing it. It doesn't make any sense, unless I'm missing something really crazy.
Thanks for any help!
|
|
|
|
|
I'm writing a VB.Net app that takes the IP address and stores it into a string...
I want to validate the string to see if the first three characters of the IP address match the first octet of the router.
right now i have this function:
Shared Function GetIPAddress() As String
Try
Dim oAddr As System.Net.IPAddress
Dim sAddr As String
With System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName())
oAddr = New System.Net.IPAddress(.AddressList(0).Address)
sAddr = oAddr.ToString
End With
GetIPAddress = sAddr
Catch ex As Exception
MsgBox("You are not connected to the internet", "Not connected")
End Try
End Function
can't remember how to split the string up...
|
|
|
|
|
this code place your ip in array
<br />
dim mys () as string<br />
dim res as string<br />
<br />
res = GetIPAddress()<br />
<br />
mys= res.split (".")<br />
<br />
|
|
|
|
|
Hi,
I working on a login site. I have a master page and login page, I want to pass the values from login page to master page and display the link button according to the value passed from login page.
Can any one help me on this?
Shrihit
|
|
|
|
|
You can use Session variables.
You could do something like
<code>Session("Username") = Username.Text
Session("Password") = Password.Text ' This one should be encrypted and not plaintext</code>
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|