|
Hello. I have wrote this code in order to change the color of specific items in a listview(i specify the condition). It works. but i am getting 4 items on a single row.
I need to get each item on a different row. Anyone can help ?
Thank you.
Dim lvi As New ListViewItem()
lvi.Text = message
lvi.BackColor = Color.WhiteSmoke
ListView1.Items.Add(lvi)
For i As Integer = 0 To ListView1.Items.Count - 1
If Err Then
ListView1.Items(i).BackColor = Color.Red
Else
ListView1.Items(i).BackColor = Color.Green
End If
Next
|
|
|
|
|
What do you mean by 4 items on a single row? You should probably change your ListView.View property to Detail .
|
|
|
|
|
ListView1.View = View.Details didn't work for me :/
it didn't display anything
I added this to the code:
ListView1.View = View.List
i got a list. But when i changing the color, only the words are highlighted. i need the full row to be highlighted..
I m trying to figure that out.
Any help would be appreciated
modified 27-Jan-14 9:29am.
|
|
|
|
|
Member 10506215 wrote: didn't work for me :/
I don't know why it doesn't work for you, if other Views work, then Details should work too. Try setting FullRowSelect = true. Check if the foreground color is not white by mistake.
ListView shows items as rows only in Details View, in other Views, it shows items as icons.
|
|
|
|
|
It worked.
i changed the color of all the row. not only the the exact words.
But i had to add a column header(generated=true; Modifiers=friend and the width 207).
Thank you.
|
|
|
|
|
I have two classes in OS.tlb , i am able to import one of classes without any error but other one is not imported. in VB.net
sample code is like
Dim var1 = New OS.Openstaad.Staad
Dim var2 = New OS.Openstaad.StaadUI; // this is what throws error saying "COMException" 0x80040154
I have tried to make dll which show entry point not found.
This code works just fine through reflection.
Thanks for your help in advance.
|
|
|
|
|
Just noting that googling that error suggests that it occurs when the COM Object is not registered.
|
|
|
|
|
Friends iam designing an editor with richtextbox and I dont know How To digitally sign The application in windows,Help me....
|
|
|
|
|
|
Hello. i have a handheld(NORDICID-Windows CE). i need to read rfid with it. using visual basic 2008. How can i start?
Can anyone give me a link or a code sample to start with please.
Thank you.
|
|
|
|
|
Doesn't the device have an SDK with documentation?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
yes. It does. I worked it out and wrote my code successfully
Thank you for your response.
|
|
|
|
|
Hi...
I have created a Winforms application (UI) in Visual c++ VS 2008.
Now i need to port the same thing in WinCE7. How can i open the same UI in WinCE7. For that what should i need to do?
Else how can i create a User Interface in VS 2008 upgraded with VS 2008 sp1 and WinCE7 platform builder. The UI need to be developed in Visual c++.
Main problem is the .Net framework difference. Windows 7 uses .Net framework and WinCE7 require .Net Compact framework.
Thanks in advance
|
|
|
|
|
Member 10538515 wrote: Main problem is the .Net framework difference. Windows 7 uses .Net framework and WinCE7 require .Net Compact framework. You can only target a single framework for a single project.
Typically, one would write two UI's.
Member 10538515 wrote: How can i open the same UI in WinCE7 WinCE does not support all the controls that .NET does; you might be able to open them in the designer after changing the framework, but I doubt that it'd be possible to write a unified UI.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
how to download .net software n how to install
|
|
|
|
|
|
|
Clickety[^]
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
Go to the download site and read the instructions.
Veni, vidi, abiit domum
|
|
|
|
|
Hello
I am using HttpWebRequest to let my website users download big files from a remote server.
my website bandwidth is 1 GB (download speed)and the remote server is 1GB download too.
I want to download the files to the clients with speed of 1MB only so my bandwidth will not throttled for each request.
can I control the the download speed from the remote server for each request?
does request.GetResponse() is download the file in full bandwith?
can I throttled it?
would it be okay to try and throttle it with Thread.Sleep?
like this code:
Stream rs = req.GetResponse().GetResponseStream();
while (fileLength > 0)
{
if (Response.IsClientConnected)
{
int length = rs.Read(buffer, 0, 10240);
Response.OutputStream.Write(buffer, 0, length);
Thread.Sleep(20);
Response.Flush();
fileLength = fileLength - length;
}
else
{
fileLength = -1;
}
}
thanks for any help
Baaroz
|
|
|
|
|
The components will try to use as much bandwidth as possible.
Never did I have the problem to limit the speed. Thread. Sleep could work and its time adjusted, you can measure the current speed by determining the time taken per package sent.
|
|
|
|
|
These components run on the application stack and have no way to effect on the bandwidth which is controlled by the network stack. I'm not sure why you need to throttle the download speed.
Using Thread.Sleep might mimic throttling but can also lead to a connection disruption based on the timeouts set on the client and the server.
|
|
|
|
|
Friends,I am new to vb.net and i have started designing a editor the problem is that my application is not running without visual studio.If i install visual studio the application is running.
How to run on machines without visual studio?
Help me friends...
|
|
|
|
|
Without seeing the error message, everyone is just guessing.
No, you don't have to install Visual Studio. That's kind of like shipping the auto plant that built the car with the car!
You DO have to have the appropriate .NET Framework version installed on the machine though. Open up "My Project" in the Solution Explorer window and look at the "Target Framework" dropdown on the "Application" tab. That's the version of the .NET Framework that you wrote your code against and the version that must be installed on any machine that you want to run your app on.
|
|
|
|
|
I didnt get any error messages.when i double click the application the waiting cursor appears for a while and then hides.The problem is that the application not even running.
|
|
|
|