silentC's Q&A profile
Visual Basic Num Lock. This doesn't work on my PC. :-(
I have a button in my program called NumLockBTN and I want to give it the ability to turn the Num Lock on the keyboard 'ON' or 'OFF'. Can this happen Thanks, QWERTYtech Hi, Sendkeys.Send("{NUMLOCK}") is supposed to work, but for some reason doesn't on my PC otherwise i would get the NumPad values instead of the other ones. Regards, S_DS ...Show All
Windows Forms cONTEXTmeNU ON lEFT cLICK
Hai, How can I have ConextMenu on LeftClick.... easy way: do not associate the contextmenu to the control. in the click event of the control, write this: Private Sub TabPage2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabPage2.Click Me .ContextMenuStrip1.Show(sender.MousePosition.X, sender.MousePosition.y) End Sub ...Show All
Smart Device Development Proxy Connection
hi! i have some problem with the setup of proxy of my smartphone. i want to direct all the traffic of all my programs of my smartphone to a specific port of the smartphone. can i do it how can i setup a proxy connection to the same smartphone to a specific port (how can i setup the proxy to do this ) Not sure if this is possible. How would you identify the proxy with the name Not sure if localhost would work. Besides, you have to have a proxy server type program listening to a specific port on your smartphone. --Manav ...Show All
Windows Forms Draw on top of Image
Hello. I have a custom control that loads a large image and displays it on screen (using scrollbars). The problem is that I want to draw on the visible part of the image (the part that is currently on screen) and I want to be able to modify the things that I'm drawing (i.e. if I draw a line on top of the image, I want to be able to remove that line later). I did something like this, with the help of this forum: (where Image image = Image.FromFile("picture.jpg"); ) protected override void OnPaint( PaintEventArgs e) { e.Graphics.SmoothingMode = SmoothingMode .AntiAlias; Rectangle src = new Rectangle (-AutoScrollPosition.X, -AutoScrollPosition.Y, this .Width, this .Height); Rect ...Show All
Internet Explorer Development An error when calling COM method in Javascript
I am trying to call a COM method in Javascript It works fine is IE6, but does not work in IE7 or Firefox.. Code is like this In asp file, I loaded the ActiveX object <OBJECT id="aActiveXCtl" height="0" width="0" classid="CLSID:xxxxxx" VIEWASTEXT> <PARAM NAME="_Version" VALUE="65536"> ... </OBJECT> In javascript, I tried to call the COM method using document.myForm.aActiveXCtl.foo("xxx". "xxx", ....) Got the error "document.myForm.aActiveXCtl.foo is not a function".. Anybody can help me Thanks a lot!! ...Show All
Visual C++ C++/CLI dll will not load in C# project (repost, with more info )
I have written some code to create high dynamic range images in C++. I need to call this code from C# now, so I've wrapped it using C++/CLI. I've tested it, and it works well. I sent it to my employer, and he got this error: ************** Exception Text ************** System.IO.FileLoadException : Could not load file or assembly ' HDRLib , Version=1.0.2144.16487, Culture=neutral, PublicKeyToken =null' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1) File name: ' HDRLib , Version=1.0.2144.16487, Culture=neutral, PublicKeyToken =null' ---> System.Runtime ...Show All
Gadgets using webservices in a gadget
Hi, Has anyone have an example of using a web service in a gadget Thanks in advance, rudgr Hi, you can use wbservice bahavior http://msdn.microsoft.com/workshop/author/webservice/using.asp which is old news but it works in simple cases or you can use XMLHttpRequest object or just use some already made soap client library like this one: http://www.codeplex.com/Wiki/View.aspx ProjectName=JavaScriptSoapClient Niko ...Show All
SQL Server No rows were deleted
My SQL 2005 table has 7 exact redundant records. I opened it in a data sheet view and selected these rows and tried to delete them. No keys are defined and null values are allowed. Error says: The rows values updated or deleted either do not make the row unique or they alter multiple rows (7 rows) Help: Why error message and How to delete these 7 rows That would work if he would have not mentioned that the rows are exact the same. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server Is it possible to create clustered index for multi tables within a SQL Server 2005 database within a query?
Hi, all, I am having up to serveral hundred tables within a SQL Server 2005 database, up to 200 of them are without any clustered index. Is it possible to create clustered indexes for all of them together in a same query :) Thanks a lot for any guidance and advices for that. With best regards, Yours sincerely, Yes, it is possible with WHILE loop and dynamic SQL (with either sp_executesql or EXEC statement) that calls CREATE INDEX. However, the tricky part is you have to specify the column(s) for each table to be included in the index in the CREATE INDEX statement. So if you have a way to programmatically get the table names and the index column(s) for each table, it is easy to do the rest. ...Show All
Visual C# HowTo:Change Default Project Folder
Hi All, When i create a Project using VS2005, by default a folder with the namespace gets created. for e.g. When i create a project with name Test.Test1.Test2.csproj and namespaceTest.Test1.Test2 under C:\MyProjects\ A folder with name Test.Test1.Test2 gets created, How can i avoid this i want to create the project as C:\MyProjects\Test\Test.Test1.Test2.csproj Any pointers would be great. Apologies if this is wrong category. Thanks, Swarup The default root directory for projects and solutions can be set under Tools\Options -> Projects and Solutions. You can also set the default location to store your settings and where to store custom templates you create. Michael Taylor - 1/17/07 http://p3net.m ...Show All
Visual Studio Express Editions Visual basic express... can it do this?
Can it make an FTP program If so i want the prgram to have 2 sides an upload side and a download and i want it to save the username/password so all i do is browse for the file and click go. Is it possible Please let me know as much as you can, thanks! :) The FTP server portion would be the hard part, the framework has no support for that. Take a look at this source code . Beware, this is not a typical source code download site... ...Show All
Visual C++ How to detect USB drive
HAi, i want to detect only USB drives in the system both removable and CDROM .I am getting the drive letter from the GetLogicalDrive() ,and identifying by using GetDriveType().But from the removable drive list i want to identify only usb drive .Also i want to detect USB cdrom from List of CDrom drive. Dijesh This is off topic for this forum, and you should try asking this in the MSDN newsgroups :- http://www.microsoft.com/communities/newsgroups/default.mspx But you could use the following article as a base :- http://support.microsoft.com/default.aspx scid=kb;EN-US;Q305184 That's for CD drives, but you could use a similar technique. Look up IOCTL_STORAGE_QUERY_PROPERTY , ...Show All
Visual Studio Express Editions I want to add progress bar
I want to add progress bar in form which display how much program is proceeded I have to functions like A(), B() my coding looks like this A() 'statement 'statement 'statement while B() end while 'statement 'statement end sub so i want to know where i put progress bar function which follow completion of fucntion A() please guide me how can i written code for progress bar Try setting the ProgressBar's Style property to Marquee. Call its Refresh() method inside the loop. ...Show All
Visual C++ MFC ScrollBar
Hi i am making a SDI MFC application, In OnDraw in CTestView i am calling pDC->TextOut() with very long text, I want i can scroll to right to see the text incase it dont fits in window how can i do that Please if possible provide me with some sample code or some link Thanks for both of your view. I used the ScrollBar Feature i mean deriving from CScrollView. Actually my application is not going to display text its going to display some kind of big graph so best way was to use CScrollView. Thanks dude's , your views really helped. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Does LPD3DXMESH have built in values I can adjust manually?
I have my CUBE.x loaded into LPD3DXMESH object. Are there specific flags I can set for the entire object Like I want to translate/rotate/scale just this object in the view of my camera. I don't want these changes to affect any of my other loaded models. Are there local axises that I can alter Have you already take a look in the 6 tutorial examples in the SDK The 6 th one shows what you want to do. ...Show All
