|
In VB.Net, you can use perfmon.exe utility to get the number of expections.
In VB 6, you would use the errors collection of ADODB connection object and get errors.count
VB Prog
|
|
|
|
|
Respected Sirs
i m working in vs.net 2003 and making a windows application in vb.net.
i m not able to drag and drop the datagrid control on my windows form.
error is
"an exception occurred while trying to create an instance of system.windows.forms.datagrid".The exception was "external component has thrown an exception"
maybe my dll for datagrid has been corrupted.
plz suggest some remedy,as my work has been stopped.
|
|
|
|
|
First, close your project, then close Visual Studio and restart the machine. When everything comes back up, try opening your project again and dragging the control to your form.
If that doesn't do it, try reinstalling the .NET Framework 1.1[^].
|
|
|
|
|
I had this same problem a few months back, I had to reinstall visual studio as well as the framework. Try both. It worked for me.
|
|
|
|
|
hello frnds,
i have a little prob,can i add command button,Combobox to toolbar in word 2003,
If any one know the procedure then please tell me the steps i should follows...
thankx and regards,
koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
posting the same question again will definitely give u the result.
So keep posting.
|
|
|
|
|
Are mamau,
galati se post hua re...
i made a mistake while posting a quesation...
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
|
can i sucessfully install vs 2005 on Window Vista?
is there need of service pack ?
|
|
|
|
|
|
Hello Nilesh,
Windows vista already contains the framework of .net 3.0
u can install the VS2005 on vista with comfort.
regards,
koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
can i install the sql server 2000 enterprise edition as well?
|
|
|
|
|
You know you need Visual Studio SP1 plus another patch to run it properly on Vista?
|
|
|
|
|
koolprasad2003 wrote: can install the VS2005 on vista with comfort.
You make it sound as though you took a laxative.
You MUST install VS.NET 2005 Service Pack 1, AND the VS.NET 2005 Vista Update to get this to work. "Comfortable" is not the way I'd describe it.
|
|
|
|
|
Hai all
How i can get the first text in text box?
Eg textbox1.text="lijo";
here i need to get 'l' in one string.then second time i need to get 'i' in that same string and 'j' in third time.like that i have to get all characters.Plse help me. Thanks in advance.
|
|
|
|
|
you can use the Chars method to extract a given character from a string. For instance:
textbox1.Text.Chars(0)
gives the first character.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
you have to write following code::::::::::::::
int len= textbox1.text.Length;
string[] str=new string[len];
for(int start=0;start<len;start++)
{
str[start]="textbox1.text.substring(start,1)
}"
try="" this="" will="" work=""
thanks
now="" =""
<div="" class="ForumSig">Raghvendra Kumar Roy
|
|
|
|
|
Raghvendra Kumar Roy wrote: int len= textbox1.text.Length;
string[] str=new string[len];
for(int start=0;start{
str[start]=textbox1.text.substring(start,1)
}
try this this will work
Only if the VB compiler will appreciate your C# sintax
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Dim iFlag As Integer
Private Sub Command1_Click()
If Len(Text1) <> 0 Then
iFlag = iFlag + 1
MsgBox Mid(Text1.Text, iFlag, 1)
End If
End Sub
The name is Sandeep
|
|
|
|
|
is there any way to calculate that MS-Access is installed on the mcchine or not ?
|
|
|
|
|
Use the following function :-
Public Shared Function GetAssociatedProgram(ByVal Filename As String) As String<br />
Dim sFileComponents() As String = Split(Filename, ".")<br />
Dim sFileExtension As String = sFileComponents(UBound(sFileComponents))<br />
Dim objExtReg As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.ClassesRoot<br />
Dim objAppReg As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.ClassesRoot<br />
Dim sExtValue As String<br />
<br />
Try<br />
If sFileExtension.Substring(0, 1) <> "." Then sFileExtension = "." & sFileExtension<br />
objExtReg = objExtReg.OpenSubKey(sFileExtension.Trim)<br />
sExtValue = CType(objExtReg.GetValue(""), String)<br />
objAppReg = objAppReg.OpenSubKey(sExtValue & "\shell\open\command")<br />
Dim SplitArray() As String = Split(CType(objAppReg.GetValue(Nothing), String), """")<br />
If SplitArray(0).Trim.Length > 0 Then<br />
Return SplitArray(0).Replace("%1", "")<br />
Else<br />
Return SplitArray(1).Replace("%1", "")<br />
End If<br />
Catch ex As Exception<br />
Return ""<br />
End Try<br />
End Function
Then call it with :-
Dim app as stting = GetAssociatedProgram("my.mdb")
then check the stored value of app
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
Hi all,
Please let me know what is win32 api call equivalent to "Marshal.PtrToStringAnsi". I want to use this api call in VB 6.
Thanks in Advance,
AR Reddy
|
|
|
|
|
[DllImport("kernel32.dll", EntryPoint="RtlMoveMemory", CharSet=CharSet.Ansi)]
internal static extern void CopyMemoryAnsi(StringBuilder pdst, IntPtr psrc, IntPtr sizetcb);
thats the C# interop signature of the api call.
|
|
|
|
|
Hi,
I have used CopyMemoryAnsi, but I am getting "Overflow" error. Actually I need to copy the content from memory pointer to a string. Here is my call
Public Declare Sub CopyMemoryAnsi Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
Call CopyMemory(SName, iPointer, LOF(iPointer))
Please let me know what could be the reason for "overflow" error.
Thnaks in advance,
AR Reddy
|
|
|
|
|
Not a clue sorry ... I'm a C# developer I just patrol around here incase theres any generic .net framework answers I can give.
|
|
|
|