|
Do you mean, for example, that when you press down on control 1 it takes you to control 4, and when you press down on control 2 it also takes you to control 4?
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein
I look at Microsoft, and turn to my poster on the wall saying: "Bang head here in case of stress".
|
|
|
|
|
No I want when i am on control 1 and press down arrow key then it goes to control 4 and press right arrow key it goes to control2.
means movement according to my key.
Thanx
Khatri Mitesh
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
|
|
|
|
|
Surely all you need is this bit of code in the control 1 key down event:
If Keys.Down Then<br />
Control4.Select()<br />
End If
And in the control 4 key down event:
If Keys.Down Then
Control2.Select()
End If
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein
I look at Microsoft, and turn to my poster on the wall saying: "Bang head here in case of stress".
|
|
|
|
|
Hello,
Is it possible to use control of another exe.and How can it possible.
Please help.
I want to delete the process from taskmanager.So how can i access the
control of Taskmanager
Thanks
<httf>mailto: anubhava.prodata@gmail.com
|
|
|
|
|
Im not going to say anything.
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein
I look at Microsoft, and turn to my poster on the wall saying: "Bang head here in case of stress".
|
|
|
|
|
You don't use Task Manager to do this. You use the Process class. I suggest reading up on that class and its Kill method.
|
|
|
|
|
My purpose is not killing the process. I want to hide the process from task manager.
Thanks
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
|
There are many softwares(Like : Keylogger,Virus,Antivirus,Windows Processes,etc) which are not shows in task manager.
mailto:anubhava.prodata@gmail.com
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
Anu..... S/W Developer wrote: There are many softwares(Like : Keylogger,Virus,Antivirus,Windows Processes,etc) which are not shows in task manager.
Actually, they do show in the Task Manager. You just have to know where, and how, to look. Remember seeing a bunch of svchost.exe processes?? Guess where all those missing processes are being hosted...
|
|
|
|
|
this is my problems:
I am using visual basic 2005 and using axwebbrowser for my program i have
a problem with script errors poping using silent=true it blocks also internal warning messages
of ie and so prevents normal navigating of the axwebbrowser i have found other way to stop it but
it works with webbrowser not axwebbrowser the problem with webbrowser is with pdisp of
newwindow i have read this http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2928914&SiteID=1
but did not find the answer this NewWindowExtended does not have pdisp in it. i read it all but did not find the answer
so i have 1 problem for each of the microsoft ie webbrowser and axwbbrowser .i want help with:
1.script error stoping for axwebbrowser (not webbrowser)
2. pdisp for newwindow webbrowser(not axwebbrowser it does not need one)
please answer with visual basic 2005 code only ,i am searching for this for months....
thanks meirb
|
|
|
|
|
Sheets("Orders").Range("A2:G200").Select
I have this code in a macro in a module on one workbook. I know the sheet is there, and the code will actually run every now and again but most of the time when i go to run the macro it gives me a 1004 runtime error, Select Method of Range Class Failed, I can't understand why this code will run only sometimes, its like there is a bug in the excel. Its simple straight forward code but it just won't go.
Karma
|
|
|
|
|
One problem could be that you have not defined the workbook where the sheet Orders is. So if the topmost workbook is not containing such sheet, it will fail.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
please explain why the following code snipped cannot work:i am trying to assign a sql data/records to a textbox for my GUI
Dim dr As Dataset.cashierRow
me.textbox1.text()=dr.cashierId.toString ??????
|
|
|
|
|
You received numerous answers yesterday to this topic. Don't spam the board with the same question.
You can find the answer(s) here.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
Because your dr object doesn't have a property or method called "cashierId".
|
|
|
|
|
Hello,
Im trying to follow this tutorial on this site:
http://www.codeproject.com/KB/vb/CustomAppAutoUpdate.aspx?fid=431225&fr=1#xx0xx[^]
I have added the code to my project and i get as far as the autoupdate.exe program opening up and then nothing happens for a few seconds and then i get this error:
Microsoft .NET Framework
Unhandled exception has occured in your application.
Object reference not set to an instance of an object.
Can anyone shed any light on why this may be?
|
|
|
|
|
I've never used his code, and don't plan on it any time soon.
You're going to have to ask him why the code bombed. Basically, that error means that you tried to execute a method or property on an object that didn't exist. Essentially, you did this:
Dim myTB As TextBox = Nothing
myTB.Text = "This will throw the Object reference not set to an instance of an object."
|
|
|
|
|
You might be best off asking the author of the article in the forum at the bottom of the article. They may reply to you.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
yeh thanks ive emailed him so hopefully he will come back to me :S
this doesnt help suggest where about the error is does it?
in killappexe() for example?
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at WindowsApplication1.updateModule.KillAppExe()
at WindowsApplication1.autoUpdate.Timer1_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
|
|
|
|
|
Hi i am new here and also new to vba(just started to learn a few days ago).
i have and excel spreadsheet name generating new exchnage rate.xls.
I am trying to figure out how to extra certain cells ( example : b4 to b50 and e4 to e50) and also adding in the title into each respective cells ( example : under b4 to b50 the title will be currency )and save it into a new excel sheet.
I already got the new excel sheet up.The thing i am stuck with is the cells and title part.Any help would be greatly appreciate.My codes are as below.Thanks =D.
my codes
Option Explicit
Public Sub Revaluation()
Dim NewName As String
Dim nm As Name
Dim ws As Worksheet
Dim fname As Variant
If MsgBox("Copy specific sheets to a new workbook" & vbCr & _
"New sheets will be pasted as values, named ranges removed" _
, vbYesNo, "NewCopy") = vbNo Then Exit Sub
With Application
.ScreenUpdating = False
' Copy specific sheets
' *SET THE SHEET NAMES TO COPY BELOW*
' Array("Sheet Name", "Another sheet name", "And Another"))
' Sheet names go inside quotes, seperated by commas
On Error GoTo ErrCatcher
Sheets(Array("Exchange rate")).Copy
On Error GoTo 0
' Paste sheets as values
' Remove External Links, Hperlinks and hard-code formulas
' Make sure A1 is selected on all sheets
For Each ws In ActiveWorkbook.Worksheets
ws.Cells.Copy
ws.[A1].PasteSpecial Paste:=xlValues
ws.Cells.Hyperlinks.Delete
Application.CutCopyMode = False
Cells(1, 1).Select
ws.Activate
Next ws
Cells(1, 1).Select
' Remove named ranges
For Each nm In ActiveWorkbook.Names
nm.Delete
Next nm
' Input box to name new file
'NewName = InputBox("Please Specify the name of your new workbook", "New Copy")
' Save it with the NewName and in the same directory as original
ActiveWorkbook.SaveCopyAs ThisWorkbook.Path & "\" & NewName & "Revaluation.xls"
'ThisWorkbook.Path & "\" & NewName & ".xls"
ActiveWorkbook.Close SaveChanges:=False
.ScreenUpdating = True
End With
Exit Sub
ErrCatcher:
MsgBox "Specified sheets do not exist within this workbook"
End Sub
|
|
|
|
|
Hello All
I am Using Vb.net 3.5 in my windows application
I have a String.
Dim Name as string
Name="F1 Help"
I want to show 'F1' as Underline and 'Help' as Bold. through my vb.net code.
I am using Strings.Format mathod , But this mehod unable to convert a text into Bold or Underline
I am doing "Strings.Format("F1", "{0}")
Please, tell me what is the correct format of this function.
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
You can't do this using String.Format. How the fonts a rendered depend on the control that will show the text. Since you want both parts of that phrase rendered differently, you'd have to render them seperately.
You have a couple of choices. The first is creating a custom control that renders the text yourself. The second is creating a usercontrol that has a couple of label controls in it, each label showing one part of the text, and using different font properties to achieve what you want.
|
|
|
|
|
No Control I am using
Just Format the some parts od the String and show it in to the grid.
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
I'll say it again. You cannot do what you want using String.Format, or any other string manipulation techniques. This will ONLY happen when the text is rendered by some kind of control. For most controls, you cannot mix font styles, so this would prohibit you from using a single control to do this. The only control in the ToolBox that can render different fonts at the same time is the RichTextBox, but that control is a bit too heavy for your requirement.
|
|
|
|