|
Search the articles for "Task Manager Extension". There's one project that adds similar functionality to the Task Manager. The problem is that this project is written in C++. So, you'll have to analyze the code and write equivilent code in VB.NET.
There no NO VB/VB.NET examples of doing this anywhere on the 'Net that I have ever found.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm wanting to start programming in c++ anyhow, so should be a good start for me to have an actual project. I have googled around the world a couple times and found nothing also.
Thanks for the help
Gerry
|
|
|
|
|
I have multiple *.config files that I need to write to but (somehow) they have all been set to ‘read only’. Can anybody tell me how, in my code, I can uncheck the read only option before attempting to write to the file?
Thanks
Brad
|
|
|
|
|
Brad Fackrell wrote:
uncheck the read only option before attempting to write to the file?
System.IO.File.SetAttributes("c:\test.txt", IO.FileAttributes.Normal)
|
|
|
|
|
You're looking for the FileInfo[^] class and it's GetAttributes and Set Attributes methods.
It's nice that you put this functionality into the app, but there are also cases when the suer WANTS the config files read only. It would be better if you added an option to turn this functionality on/off.
It would also be better if you figured out why your development copy is ReadOnly in the first place.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks Dave.
I like the idea of being able to turn it on and off.
As for why it was read only, I have no idea what happened but I do know that is should NOT be read only and everybody was yelling at me to ‘just do something’. So, for now, I will just force it back to normal.
Brad
|
|
|
|
|
Hi guys
ArrayList objArrayList=new ArrayList();
objArrayList.Add("a");
we are adding values through Add property but i want to add value same as array so plz tell me how it is possible?
int[] onjAr=new int[]{1,2,3,4,5,6,7,8,9};
can i add value in this format e.g- {1,2,3,4,5,6,7,8,9}
|
|
|
|
|
Asking C# question in Vb.net forum...........Good Idea!
Anyways.....try this
int[] arr={1,2,3,4,5}; <--
it will declare an int array 'arr' having 5 locations......and you can access the values by providing the index
_mubashir
|
|
|
|
|
hi guys!
need a litle help...
i want to retreive only the current time of the system in 12 hour format through sql statement. can any one help me
i tried using "select time=convert(varchar,getdate(),108)"
but it retrieve date in 24 hour format can any one help me..
i only want to retrive time not date..
bi
abhinav
|
|
|
|
|
It would have probably been better to post this in the SQL forum [^]
This is a bit of a hack but it should work:
SELECT RIGHT(CONVERT(VARCHAR,GETDATE(),100),7)
The man who smiles when things go wrong has thought of someone he can blame it on.
If you tell a man there are 300 billion stars in the universe, he'll believe you. But if you tell him a bench has just been painted, he'll have to touch it to be sure.
-- modified at 8:17 Thursday 6th October, 2005
|
|
|
|
|
i think u right ...
by the way thanks a lot it is working ..
bi
abhinav
|
|
|
|
|
I am using a 'Required Field Validator' for my Dropdown list but it doesn't work , if I do not select any thing from the list it still saves the form and I guess that is necause it assmues the first entry in the list as selected always no matter what the first item is.
I also tried using 'Range Validator' to see that the item selected from the dropdown is between 2 & 10... item no 1 in the dropdown is 'Please Select' , but that is not working as well..
does anyone have an idea as to which validator will work to see that the user HAS selected an entry from the dropdown else the form will not save.
Thank you for your precious time invested in answering this query.
Aartee.
...HE is watching Us All!
|
|
|
|
|
use the custom validator -
private void CustomValidator1_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args)
{
if ( !dropdown.SelectedIndex == 0 )
args.IsValid = false;
}
|
|
|
|
|
Hi guys
is there some body could help me with ISAM problem ? I have one form which is contains a crystal report viewer but when I run this form I always get error message " Could not find Installable ISAM ", Here is I show you my listing code :
Dim dasuminv As OleDb.OleDbDataAdapter
Dim con As New OleDb.OleDbConnection(Koneksi("E:\Data\BTH.mdb"))
Dim dtsuminv As New DataTable()
Function Koneksi(ByVal strdatabase As String) As String
Dim Kalimat As String
Kalimat = "Provider=Microsoft.Jet.OLEDB.4.0;"
Kalimat &= "Datasource = " & strdatabase & ""
Return Kalimat
End Function
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
range1.CustomFormat = "dd-MMMM-yyyy"
range2.CustomFormat = "dd-MMMM-yyyy"
Try
dasuminv = New OleDb.OleDbDataAdapter("select* from suminv", con)
dasuminv.Fill(dtsuminv)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
I don't know how to fixed this matter, could you please to help me ASAP
thank you for your assist
Best regards
I C E
|
|
|
|
|
I am very new to programming and I'm trying to learn VB.NET 2003. Every time I try to create a new project I get an error message that says "Automation server can't create object". What do I need to do to correct this?
Thank You,
Larry J. Williams
|
|
|
|
|
hi there,
this link might help u
Solution
<< >>
-- modified at 20:03 Wednesday 5th October, 2005
|
|
|
|
|
Greetings!
I want to switch controls (panels) visibility by using their respective names (in variables). How can I get there from here:
Public prefPanel As Panel = New Panel()
Private Sub uxcPreferencesForm_Load(....) Handles MyBase.Load
prefPanel = Me.uxcGeneralPnl ' Startup Panel
prefPanel.Visible = True
End Sub
Private Sub uxCatagoryTree_AfterSelect(....) Handles uxCatagoryTree.AfterSelect
prefPanel.Visible = False ' Hide Current Panel
Dim path As String = uxCatagoryTree.SelectedNode.FullPath
Dim arrPath As Array = path.Split("\")
Dim panl As String = "uxc" ' Formulate new Panel's name
For i As Integer = 0 To (arrPath.Length - 2)
panl += arrPath(i).ToString.Substring(0, 3)
Next i
panl += arrPath(arrPath.Length - 1).ToString + "Pnl"
prefPanel.Name = panl ' HERE IS WHERE I GET LOST
prefPanel.Visible = True ' Show New Current Panel
uxHeadingLbl.Text = panl 'path
End Sub
The panels are all created (and designed) at compile time - they are invisible. Is there a way to handle this switching?
Thanks,
Karen
Nooobie to OOP and VB.Net 2005
|
|
|
|
|
VB code:
strConditionDates = "((Mission_Date >= #" & txtDate1 & "#) AND (Mission_Date <= #" & txtDate2 & "#) AND (Mission_Code = '" & Me.ListBoxMission_Code & "'))"
Set rstMissions = CurrentDb.OpenRecordset("select distinct FK_Mission_PK from [sql_équipage des missions] where ((FK_MISSION_PK is not null) AND" & strConditionDates)
With the debugger strConditionDates takes the following value:
"((Mission_Date >= #2005-01-01#) AND (Mission_Date <= #2005-10-05#) AND (Mission_Code = 'AI 165 C'))"
tx
Acheo
|
|
|
|
|
I don't know much SQL but if your code is an exact copy...
"...SION_PK is not null) AND" & strConditionDates)"
put a space between the AND and the quote, or add a space to the front of strConditionDates.
|
|
|
|
|
I can see that the sql statement is malformed.
Currently reads:
"select distinct FK_Mission_PK from [sql_équipage des missions] where ((FK_MISSION_PK is not null) AND((Mission_Date >= #" & txtDate1 & "#) AND (Mission_Date <= #" & txtDate2 & "#) AND (Mission_Code = '" & Me.ListBoxMission_Code & "'))"
Should read:
"select distinct FK_Mission_PK from [sql_équipage des missions] where (FK_MISSION_PK is not null) AND (Mission_Date >= #" & txtDate1 & "#) AND (Mission_Date <= #" & txtDate2 & "#) AND (Mission_Code = '" & Me.ListBoxMission_Code & "')"
|
|
|
|
|
How to find no of pages printed this job
How to find no of copies Make in CD Writter
-- modified at 12:58 Wednesday 5th October, 2005
|
|
|
|
|
I have a button on a form that calls an instance of another form, but when this form is closed by the user it need to clear a textbox on original form.
I am having a problem clearing textbox?
The code I use to call instance of form is:
Private Sub btnDrift2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDrift2.Click
Dim Drift2 As frmDrift2
Drift2 = New frmDrift2
Drift2.Show()
End Sub
The code on the second form to clear textbox is:
Private Sub frmMap_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
Dim Snow As frmSnow
Snow = New frmSnow
Snow.tbxMapStatus.Text = ""
End Sub
Any Help?
|
|
|
|
|
Replace all the code in the sub of the second form with this:
frmSnow.tbxMapStatus.Text = ""
|
|
|
|
|
I get the blue line
States:
Reference to a Non-Shared Member Requires a Object Reference.
|
|
|
|
|
You can have a try using module to give name for both forms as:
public drift2 as new frmDrift2
public snow as new frmSnow
then in the those two program you donot need NEW again!
you can just directly to use drift2.show() and snow.tbxMapstatus.text ="" it works fine!
I am Entry level person
|
|
|
|