|
can someone help me! i know that this is not a laptop forum but i have a laptop siemens and he went standby after 5 mins because i didn't move the mouse. how can i bring him back to normal pls?
Thanks for any help
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Correct place-forum for your problem is OS/SysAdmin.
Check properties of your PowerAdapter in Control Panel
|
|
|
|
|
Hi,
I need to call a dll function but have no idea how to declare the function in VB.NET
In the .h file, it is declare as follows:
int CALLBACK gscBsiGcReadTagList(
IN UTILCardHandle hCard,
IN unsigned char* usAID,
IN unsigned int unAIDLen,
OUT GCTag* pTagArray,
INOUT unsigned int* pnTagNb
);
In the C sample code, it is called as follows
void CreateDataInContainer()
{
long lResp = BSI_OK;
unsigned char usAID[BUFSIZ];
unsigned int unAIDLen=0;
char szLecture[BUFSIZ];
GCTag ucTag=0;
unsigned int unTag=1;
unsigned char usValue[500];
unsigned int unValueLen=0;
printf ("\ngscBsiGcDataCreate");
unAIDLen = sizeof (usAID);
GetContainerAID ( usAID, &unAIDLen);
GetString ("\nEnter Tag", szLecture, sizeof (szLecture));
sscanf (szLecture, "%d", &unTag);
ucTag = (char)unTag;
GetString ("\nEnter Data Value ", szLecture, sizeof (szLecture));
strcpy ((char *)usValue, szLecture);
unValueLen = strlen (szLecture);
printf("\nSize of value=%d",unValueLen);
lResp = gscBsiGcDataCreate(
hCard,
usAID,
unAIDLen,
ucTag,
usValue,
unValueLen
);
if (lResp != BSI_OK)
{
DisplayError(" ... ", lResp);
}
else
{
printf ("\n ... OK\n");
}
}
So, can anyone help me with the declaration and calling in VB.NET?
Thanks!
Chen Wu
-- modified at 1:33 Friday 7th April, 2006
|
|
|
|
|
hi
i m making a project could u help me.
i want guidance.......
i have to make a CategoryMaster form in which every cateory have a Image.
& this point is confusing me.
how i will display the image dynmically...& in which control.....
because i have to display these images in 4* 4 matrix.
please give some suggestion.
|
|
|
|
|
You can put them in a picture box or paint them direct to the form.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hi
i'm storing these images in database actually these images are temlates so they have there own discription & price etc.
when i store the file name into the databse how ould i cal them.
please explain litte more
|
|
|
|
|
Is this VB6 or VB.NET?
"If i was king cigarettes would be free."
|
|
|
|
|
Hi All,
the tool i am using is mycos web chart and i have no idea how this chart renders the data.
here are my codes.
------
Try
'select the table with only distinct ID based
cmd = New SqlCommand("select distinct measure_id from measuredata m, textdata t where t.ScoreCardId = m.ScoreCardId", objConn)
Dim da As SqlDataAdapter = New SqlDataAdapter(cmd)
Dim dtId As New DataTable("MeasureId")
da.Fill(dtId)
'select all columns with ID
Dim cmd1 As SqlCommand = New SqlCommand("select * from measureData", objConn)
Dim da1 As SqlDataAdapter = New SqlDataAdapter(cmd1)
Dim dt As New DataTable("MeasureSource")
da1.Fill(dt)
Dim datarow As DataRow
For Each datarow In dtId.Rows
Dim myView As New DataView(dt)
Dim chart As New Mycos.MycosChartWeb
chart.ID = "chart" + dtId.ToString
myView.RowFilter = String.Format("Measure_Id='{0}'", datarow.Item("measure_Id"))
chart.DataSource = myView
chart.DataBind()
PlaceHolder1.Controls.Add(chart)
Next datarow
Catch ex As Exception
Response.Write("OOPs what went wrong:" + ex.ToString)
Finally
End Try
------
Now my problem is how to add data to those dynamically generated charts. i also need to assign the ID for each chart. how do i do that. and also i want those charts to displayed in specific area but not one by one in for loop. i dont know if anyone of you have done this. well if you have please help me
thanks
|
|
|
|
|
Is it possible to set the computer to hibernate rather than just turn off using VB?
many thanks
|
|
|
|
|
|
what details are avaliable about a web page when loaded up by VB? can you find the number of images on the page? I am new to non - excel/project VB code & would like to learn about some of the functionalities.
Many Thanks Guys
|
|
|
|
|
Hi
Its a bit a wide question. I hope I am give answer in the right direction, but you can way search through the HMTL
of the page and find all the tags "
|
|
|
|
|
Sorry...should have been
of the page and find all the tags "<IMG" on the pages...
Cheers
|
|
|
|
|
hello, i made a messenger which is for chatting. Now i want to send a file! how can i send a file (textfile) from the server to the client via IP?? can someone help me pls!
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Hi
Have a look at .Net Remoting.
http://samples.gotdotnet.com/quickstart/howto/doc/Remoting/nutshell.aspx.
There are also tuns of examples on the net.
You can binary stream the file to the client using Remoting
On the client you can save the binary stream on the Client machine.
Hope it helps
|
|
|
|
|
Hi guys,
i try to make a new shortcut with this code, but i take an Exception in line with #:
Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
What's the problem??
Please help me..
Code:
'com reference : Windows Script Host Object Model
Imports IWshRuntimeLibrary
Dim LinkPathName As String
Dim TargetPathName As String
TargetPathName = TextBox1.Text '& " +set dedicated 2 +exec kostas.cfg"
LinkPathName = "C:\Documents and Settings\All Users\Desktop"
Dim shell As New WshShell()
Dim link As IWshShortcut = CType(shell.CreateShortcut(LinkPathName), IWshShortcut) #in this line
link.TargetPath = TargetPathName
link.Save()
|
|
|
|
|
kostasdiktia2 wrote: LinkPathName = "C:\Documents and Settings\All Users\Desktop"
You need to have a name for your shortcut:
LinkPathName = "C:\Documents and Settings\All Users\Desktop\My Shortcut.lnk"
----------
There go my people. I must find out where they are going so I can lead them.
- Alexander Ledru-Rollin
|
|
|
|
|
oh Thanx..
Now, i have one more question..about the target of the shortcut..
i want the target has this look:
"C:/Program.../game.exe" +set dedicated 2 +exec kostas.cfg
no this: "C:/Program.../game.exe +set dedicated 2 +exec kostas.cfg"
to unlock some features of the game..
Please help me again in this theme now..
Thanx in advance..
-- modified at 18:14 Thursday 6th April, 2006
|
|
|
|
|
Dim target As String = """C:\Program Files\...\game.exe"" +set dedicated 2 + exec kostas.cfg"
The double quotes will let you put a quote inside the string.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanx but, I solve my problem with arguments!
|
|
|
|
|
Hello,
Can anyone help me to update the database using the values in textboxes. I have successfully written code to add new rows and to delete rows in the database by checking the values in the textboxes on the form. But my problem is that I am unable to update the database similarly.
I have created a table in MS-Access named "emp" containing two fields named "name" and "phone" with phone as primary key.
On the form I have made two textboxes with their DataBinding text property set for name and phone fields respectively of the dataset.
Also I have made a button to load the dataset. And yet another button on which I want to code for updating the database.
I have tried many codes but none of them works, when I load the dataset and then make some changes in the text of the textboxes and then click on the update button the respctive database is not updated.
If anyone has answer to this problem please inform me with code, this is very urgent and I m facing this problem for many days .
|
|
|
|
|
here is simple update command
Update emp set name = '" & Textbox1.Text & "' and phone='" & TextBox2.Text & "'"
|
|
|
|
|
Hi!Mohit Namdeo.
All steps right but not enough. When you input on textboxs then datas only update on dataset no update on database. so you must do that.
here code on button update
be sure the connection,dataset,oledb...are created.
private sub update_click(...)
{
oledb.update(dataset)
}
end sub
good luck
|
|
|
|
|
I use vb.net for in-house development of apps. Many of these apps are small in size, with few if any referenced dlls. I'd like my apps to be *totally* self-contained--that is, I want to be able to drag and drop the contents of the app's directory onto a new machine and have it run *with no installation procedures*.
In the past (vb.net 2003) this seemed relatively reliable, assuming that the dotnet framework was in place and that any referenced dlls or third-party components had their CopyLocal property set to TRUE. Since switching to vb.net 2006, this does not always seem to be the case. Apps that I have ported from 2003 to 2006, fail to run with errors like "The app encountered a problem....blah blah send a report to microsoft".
This does *not* mean that I require an app to be a single exe file--only that *everything* required for the app is contained within a single folder that can be moved from machine to machine.
Is there a 100% accurate manner of making an app totally self-contained in that it will run on a machine with the (proper) dotnet framework installed? If not, is there a manner in which a more accurate error report can be generated on a (non-developer) machine with a bit more useful information--such as exactly what is missing?
|
|
|
|
|
First, an app compiled on .NET Framework 2.0 CAN work on an older version of the Framework. BUT!!! Only if the app doesn't use functionality specific to the 2.0 version.
So, if your client machines have the 1.1 version of the .NET Framework, they can still run the 2.0 compiled code, ... to a point. This is probably where your problem is comming in.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|