|
I am having a sudden problem in VS 2005 with Resizing my controls in a windows form. I can not resize any controls. I can move them but not resize them. I rebooted my machine but I stil can not resize anything. I do not reall any unusal events. Does any one have any ideas.
It only seems to one particular Project.
Thanks
-- modified at 10:43 Saturday 26th August, 2006
|
|
|
|
|
Following code is working.But want to change the keycode.
In vb6 keycode=0 was working.How do it in VB.NET.Can anybody help me.
Private Sub text1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles text1.KeyUp
If e.KeyCode = 13 And btnstat = 1 Then
MsgBox(e.KeyCode)
End If
End Sub
|
|
|
|
|
Do you mean somthing like sending a tab, instead of a carriage return?
Private Sub TextBox1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp
If e.KeyCode = Keys.Return And btnstat = 1 Then
SendKeys.Send("{TAB}")
End If
End Sub
|
|
|
|
|
I have to program a scenario like this.
I have the cluster server and the user running the service.
I need to query if the user is a member of a group xxxx on the nodes.
On the node say NODE1,
Group - xxxx has the below members
--TEST1\Domain Admins -- (again a group named 'Domain Admins'
in TEST1 domain)
--TEST1\Admin -- (user called Admin in TEST1 domain)
>From cluster machine, I connect to "NODE1" using wmi. The below two
queries succeed.
a.SELECT * FROM Win32_GroupUser WHERE GroupComponent =
"Win32_Group.Domain='NODE1',Name='Domain Admins'"
b.SELECT * FROM Win32_UserAccount WHERE Domain='NODE1' and
Name='Administrator'
But the below two queries fail. These are similar to a and b but with
different domain "TEST1".
My program fail even though Group xxxx has TEST1\Domain Admins.
c.SELECT * FROM Win32_GroupUser WHERE GroupComponent =
"Win32_Group.Domain='TEST1',Name='Domain Admins'"
d.SELECT * FROM Win32_UserAccount WHERE Domain='TEST1' and
Name='Administrator'
Even wbemtest.exe succeed for a and b queries but fail for c and d from
the cluster server.
But when I run wbemtest.exe on the "NODE1" directly then all the
queries succeed.
How do I make wmi queries succeed for different domains from the remote
computer?
I need to write a VB.Net program for this. I will be adding this code
to existing VB.Net application.
|
|
|
|
|
First of all, let me state that I am new to multithreading.
I am working on a project that makes constant queries to a network device via a tcp connection.
These queries can generally take about a third to a half a second to complete.
As it stands I am creating several (4-5) separate threads that loop and make queries then report the result data to my main thread. Each thread maintains it's own tcp connection to the device.
Each of the threads is set to sleep for an entire second each loop cycle, each of the threads is set to lowest priority.
Yet CPU usage is through the roof. And i'm using a modern 3+ ghz machine. Why is my application eating up so much CPU time?
Is there a cure for this, am I doing something wrong?
Please help.
-- modified at 19:01 Friday 25th August, 2006
|
|
|
|
|
Fixed.
Problem had nothing to do with multithreading. Code was getting stuck in a while loop. My own dumb fault. A single call to System.Threading.Thread.Sleep inside the while loop brought CPU usage down from 85-100% to 12-18%.
|
|
|
|
|
Hi,
I want to get results from a database, and then add some more info to that, and write all of that info to a text file on the local client 'C drive'. Anyone that knows how to help me?
|
|
|
|
|
Didn't I answer this the other day ?
Getting data from a database is well documented. I assume if you have a DB, you must know how to do this.
To write info to a text file, it's something like My.FileSystem.WriteAllText.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Didn't I answer this the other day ?
I am not to sure. I have been having problems with internet and code the last few weeks, but it feels like I am getting on top of things again.
Christian Graus wrote: To write info to a text file, it's something like My.FileSystem.WriteAllText.
Ok, excellent, will check the help files for info on this.
|
|
|
|
|
Please tell me how can add text in grid in particular row,col format.Like using textmatrix in vb for adding text.
|
|
|
|
|
Hai
please tell how to get the wizard to create user control. as in vb6 add in manager is there any wizard for creating user control. i want for dotnet 2003 and 2005. pls help me. thanks.
|
|
|
|
|
I am not to sure what you mean, but if you mean, create a ASCX (user control) for a website/application.
You go in the solution explorer in Visual studio:
Right click Solution -> "Add new Item"
Select "Web User Control"
|
|
|
|
|
I have COM object written in C# that exposes connection points and deployed as out of process server.
I wrote VB6 application that supplies handler for the events fired by this COM object.
To do that I added reference in my VB project to type library generated for C# COM.
Next I used WithEvents statement in my VB code to declare variable of the events firing type exported from the COM.
The application works fine. I can consume the events from the C# COM in my VB6 code.
Problem arises when I stop my VB application.
The delegate that implements the event in C# remains assigned and exception is thrown when attempt is made to call it.
When you implement Event Sink say in C++ you use Advise – Unadvise paradigm to assign and clean up your handlers.
What you supposed to do in VB6?
Any help will be appreciated.
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
You are right.
But you replied to the question in all the forums. As a result,
the question does not appear in "Unanswered questions" list in none of the forums, so will hardly get a chance to be answered
Sincerely,
Elina
Life is great!!!
Enjoy every moment of it!
|
|
|
|
|
I'm a visual basic beginner but i have project which have to be done with some visual basic programming. I do not really know how to use visual basic, however, i need to write a program that help me to capture / download the images that captured by the webcam in the website into my computer. Anyone of you can help me? Your contribution is appretiated.
estin
-- modified at 13:04 Friday 25th August, 2006
|
|
|
|
|
|
hi guys,
I am getting a problem using datagridview in VS2005, hope that I will get a good response soon. When I use a DatagridView and add columns to it so DataGridView automatically adds a RowPointing column to itself. Is there any that I can hide that RowPointer columns.
Hope for a fast response.
Regards
Ali Raza
|
|
|
|
|
Not sure what you mean by RowPointing column.
If you mean the RowHeader, you can choose not to display it by setting the DataGridView.RowHeaderVisible property to False.
|
|
|
|
|
Thanks for yours response Keith. If u add any column to datagridview u'll see that a null column automatically add to datagridview whose purpose is to point the selected row. You can check this by simply adding a column to datagrid view.
|
|
|
|
|
Thanks for yours response Keith. If u add any column to datagridview u'll see that a null column automatically add to datagridview whose purpose is to point the selected row. You can check this by simply adding a column to datagrid view.
|
|
|
|
|
I am using System.Diagnostics.StackTrace().GetFrame(1).GetMethod.Name and I am getting inconsistent results when I run this in debug mode versus release mode.
For the debug mode it is working how I expect it to, but for the Release mode some of the functions are not shown in the StackTrace. I am using the 2.0 framework. Anyone have any idea what might be going on?
Thanks in advance.
-- modified at 10:52 Friday 25th August, 2006
Mike Lasseter
|
|
|
|
|
Nevermind. I see that it is the way it intended to be.
Mike Lasseter
|
|
|
|
|
hi all of u
i want to import information from an xml file to my base (oracle) , & i don't know how .
thanks
(& excuse my english i speak frensh )
|
|
|
|
|
Read the XML into a Dataset, and then update Oracle from the Dataset using .NET's Oracle Data Provider.
|
|
|
|